Kaimana RGB LED Board thread, RGB animations and more! SRK Tech Talk 2013 Product of the Year!


#1141

@F8L_ERROR Go to the webkit and select your colors. Redownload that (panzer2kaimana folder in Documents/Arduino/libraries) and follow everything I’ve said to you up to this point. It works bro. After you get the code to verify, the next thing may be getting the com port to work. I have a few tricks for that too. Lemme know bro.


#1142

Are you extracting the folder into your arduino folder c:\users\youruser\documents\arduino? You should only need to open the ino file and the libraries will load automatically.

In short

Download the code
Copy the libraries and 8btnblabla folder to the arduino folder
Open the ino file that’s in the 8btnblabla folder
Load it


#1143

this seemed to work it verified and uploaded but it didn’t change my buttons it still looks like it has the old code, it didn’t leave a error but i copied and this after I uploaded it [details=Spoiler]Using library Kaimana in folder: C:\Users\F8L ERROR\Documents\Arduino\libraries\Kaimana (legacy)

C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER=“Unknown” -DUSB_PRODUCT=“Arduino Leonardo” -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo -IC:\Users\F8L ERROR\Documents\Arduino\libraries\Kaimana C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\J2s.cpp -o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\J2s.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Kaimana\animations.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Kaimana\kaimana.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-gcc -c -g -x assembler-with-cpp -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER=“Unknown” -DUSB_PRODUCT=“Arduino Leonardo” -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S -o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_pulse.S.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\hooks.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WInterrupts.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_analog.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_digital.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_pulse.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_shift.c.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\abi.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\CDC.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial0.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HID.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\IPAddress.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\main.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp
ew.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Print.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Stream.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Tone.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\USBCore.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WMath.cpp.o
Using previously compiled file: C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_pulse.S.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\hooks.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_analog.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_digital.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_pulse.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\wiring_shift.c.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\abi.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\CDC.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial0.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial1.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial2.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HardwareSerial3.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\HID.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\IPAddress.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\main.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp
ew.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Print.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Stream.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Tone.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\USBCore.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WMath.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-ar rcs C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-gcc -w -Os -Wl,–gc-sections -mmcu=atmega32u4 -o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/J2s.cpp.elf C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\J2s.cpp.o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Kaimana\animations.cpp.o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp\Kaimana\kaimana.cpp.o C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/core.a -LC:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp -lm
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/J2s.cpp.elf C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/J2s.cpp.eep
C:\Program Files (x86)\Arduino\hardware ools\avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/J2s.cpp.elf C:\Users\F8LERR~1\AppData\Local\Temp\build4573404915498442978.tmp/J2s.cpp.hex

Sketch uses 16,994 bytes (59%) of program storage space. Maximum is 28,672 bytes.
Global variables use 375 bytes (14%) of dynamic memory, leaving 2,185 bytes for local variables. Maximum is 2,560 bytes.[/details]

@VarmintBaby I don’t think this method is working I kept getting the same error in my last post.

I don’t think it’s detecting my com port for my stick but it does show up on my devices.


#1144

@F8L_ERROR If it verified you should be good to upload it. Did the buttons “pause” for a second and it said Upload complete or whatever? Did you follow Fundando’s Youtube video on how to setup the LEDs in the kaimana_custom.h file? Where you number the LEDs based off how you set them up? So start with 0 and 1 on the first button you connected the LEDs to and then go by two based off how you linked the LEDs to each button. The part labeled //LED Index :

#define LED_UP 0
#define LED_UP_B 1
#define LED_K1 2
#define LED_K1_B 3
#define LED_K2 4
#define LED_K2_B 5
#define LED_K3 6
#define LED_K3_B 7
#define LED_K4 8
#define LED_K4_B 9
#define LED_P4 10
#define LED_P4_B 11
#define LED_P3 12
#define LED_P3_B 13
#define LED_P2 14
#define LED_P2_B 15
#define LED_P1 16
#define LED_P1_B 17
#define LED_RIGHT 18
#define LED_RIGHT_B 19
#define LED_DOWN 20
#define LED_DOWN_B 21
#define LED_LEFT 22
#define LED_LEFT_B 23
#define LED_SELECT 24
#define LED_SELECT_B 25
#define LED_HOME 26
#define LED_HOME_B 27
#define LED_START 28
#define LED_START_B 29

#define LED_COUNT 30

^^^ —This is for Hitbox, but this is the section I’m talking about. Did you number them right? Also, are your colors correct for the on and off button state sections, also under kaimana_custom.h? See below for example:

//ON BUTTON STATE
#define LED_LEFT_COLOR_ON 255,255,255
#define LED_DOWN_COLOR_ON 255,255,255
#define LED_RIGHT_COLOR_ON 255,255,255
#define LED_UP_COLOR_ON 0,255,255
#define LED_P1_COLOR_ON 0,0,0
#define LED_P2_COLOR_ON 0,0,0
#define LED_P3_COLOR_ON 0,0,0
#define LED_P4_COLOR_ON 0,0,0
#define LED_K1_COLOR_ON 0,0,0
#define LED_K2_COLOR_ON 0,0,0
#define LED_K3_COLOR_ON 0,0,0
#define LED_K4_COLOR_ON 0,0,0
#define LED_SELECT_COLOR_ON 255,0,0
#define LED_HOME_COLOR_ON 255,0,0
#define LED_START_COLOR_ON 255,0,0

//OFF BUTTON STATE
#define LED_LEFT_COLOR_OFF 0,0,255
#define LED_DOWN_COLOR_OFF 0,0,255
#define LED_RIGHT_COLOR_OFF 0,0,255
#define LED_UP_COLOR_OFF 0,0,255
#define LED_P1_COLOR_OFF 255,255,255
#define LED_P2_COLOR_OFF 255,255,255
#define LED_P3_COLOR_OFF 255,255,255
#define LED_P4_COLOR_OFF 255,255,255
#define LED_K1_COLOR_OFF 255,255,255
#define LED_K2_COLOR_OFF 255,255,255
#define LED_K3_COLOR_OFF 255,255,255
#define LED_K4_COLOR_OFF 255,255,255
#define LED_SELECT_COLOR_OFF 255,0,0
#define LED_HOME_COLOR_OFF 255,0,0
#define LED_START_COLOR_OFF 255,0,0


#1145

@VarmintBaby I will try this again as soon as come back from my errand.

like i said i don’t think is uploading to my device it’s says it’s on port com 1 but nothing changed when i tried using the 8bnojoynomenu code.

[IMG]http://i2.photobucket.com/albums/y24/legion2k1/20170803_173610.jpg[/img]


#1146

@F8L_ERROR If you’re using the Kaimana mini, are you plugging it into the computer with the case open and the micro usb plugged directly into the mini? If you’re using the mini, I would connect both the joystick and the micro usb cable from the Kaimana mini into the PC. Where is says Ports (Com and LPT) you should be seeing the arduino leonardo board there in Device Manager. Also in the Arduino software, it will show a com port with the words"Arduino Leonardo" next to it. You can’t just plug in the stick’s USB and have it be detected.


#1147

This, connect a micro usb cable to the kaimana mini directly and you should see it install, after it installs you should see it in the port menu.


#1148

@VarmintBaby when I first started last year it detected the port after a while when i tried to change to different colors, after that it wouldn’t detect the port first I thought it was my old PC but when I got the new PC it would not detect the port but would still show as game controller. I will plug in the micro usb and hope this works. Right after my fatass eats 2 more bowls of soup.


#1149

@VarmintBaby @JRDIBBS Ok it worked, thanks guys. I couldn’t get the kaimana web kit code to work but the J2 default code worked (I’ll review and try later), now the only thing I want to do is change the color but the only file it saved was the .ino file; how do i access the other files in Arduino to change the code for custom settings? Is this still the right thread for customization or is there another thread?


#1150

@F8L_ERROR You’re saying when you open the .ino file, the tabs aren’t there towards the top of the Ardiuno program? With Kaiama_custom.h, animations.cpp and all that? If they are there, you can click on them and make your changes. The main one you’re worried about is the kaimana_custom.h where you can set the colors for on and off like I said previously. If you want a new color you may need to define it in under the kaimana.h tab where it shows the colors defined, see below for a snippet of the code you’re looking for:

#define BLACK 000,000,000
#define RED 255,000,000
#define GREEN 000,255,000
#define YELLOW 255,255,000
#define BLUE 000,000,255
#define PURPLE 255,000,255
#define CYAN 000,255,255
#define WHITE 255,255,255

It uses the RGB color coding system so if you want say Gold, google “Gold RGB color code” and try that. You may need to tweak it a bit as the color you want may not translate directly to the LEDs with the RGB code you find. But the general rule is the first set of numbers is red, the second set is green, and the last is blue. Giving you a code like 000,255,000 for green for example. Time to go back to pre-school when you used to mix crayon colors. LOL


#1151

yes I don’t see the other tabs and I am familiar with the RGB color code but I might need some help with the animations later down the line once I’m a bit familiar with it. How do i access the other tabs?


#1152

UUGH i forgot i wrote about this a while back : http://www.mightyjrmods.com/kaimana-guide/ read through it you may get new info. It mostly still applies I have to add more info.

Also more info in the Wiki: http://support.paradisearcadeshop.com/solution/folders/14000099093

The other tabs appear only when you open the files in the Arduino IDE, but you can use Notepad on your computer to edit all of these files, go to C:\Users\youruser\Documents\Arduino\libraries\Kaimana and you should be able to see them, Open one in Notepad or other editor of choice (not Word though) and go crazy!

@VarmintBaby is correct about how we define custom color usually, this saves us time from typing all 11 characters (xxx,xxx,xxx) everytime we want a color.

If you want to edit what happens on button press you modify the ino file, if you’re interested in animations its all in the animations.cpp

This is the forum for everything Kaimana so feel free to post!


#1153

well I would like to use the Arduino IDE to edit, but the file I saved only has the ino file and when i open it there are no tabs. I could use Notepad++ to edit them but i would like to use the IDE.


#1154

@F8L_ERROR So did you get your buttons going dude or no? Are the lighting up like you want them to on click,etc?


#1155

Hi @JRDIBBS
I was wondering if you could help point me in the right direction in the code on how to disable some extra LEDs in my setup when it’s not idle.
I’m currently using the 8btnFull layout (currently without a joystick led but I plan on adding it in the future) and I have 3 additional J2 LEDs for L3,R3, and TPAD buttons that I added to my Brooks Universal Fighting Board (via this guide https://support.focusattack.com/hc/en-us/articles/115002172943-Accessing-Touch-Pad-button-L3-R3-on-Universal-Fighting-Board). I’m aware that the Kaimana can only read the buttons that are the main 8 buttons, the stick, and the menu buttons.
I may also rewire my setup when I add the joystick LED so the J2 wiring I have might change in the future.

I have a video below of my issue currently
https://youtu.be/BCPUOxJ70Zo

The 3 additional J2s are in the upper right corner of the video and are the ones that aren’t turning off during non idle time (sorry for the shaky cam)
So I figured out how to get the 3 additional J2 LEDs to turn off for Tournament mode, but can’t figure out where to add code to disable those 3 sets of LEDS for the L3, R3, and TPAD button. Is it maybe the switch count (even though I’m using a number of J2 LEDs more than the 15 supported switches)?

Here is how I defined the LEDs in the kaimana_custom.h file
// Kaimana->LED_START->LED_HOME->LED_SELECT->LED_P1->LED_P2->LED_P3->LED_P4->LED_K4->LED_K3->LED_K2->LED_K1->LED_R3->LED_TPAD->LED_L3
#define LED_P4 12
#define LED_P4_B 13
#define LED_P3 10
#define LED_P3_B 11
#define LED_P2 8
#define LED_P2_B 9
#define LED_P1 6
#define LED_P1_B 7
#define LED_JOY 0xFF
#define LED_K4 14
#define LED_K4_B 15
#define LED_K3 16
#define LED_K3_B 17
#define LED_K2 18
#define LED_K2_B 19
#define LED_K1 20
#define LED_K1_B 21
#define LED_SELECT 4
#define LED_SELECT_B 5
#define LED_HOME 2
#define LED_HOME_B 3
#define LED_START 0
#define LED_START_B 1
#define LED_L3 26 //L3 J2
#define LED_L3_B 27
#define LED_TPAD 24 //TPAD J2
#define LED_TPAD_B 25
#define LED_R3 22 //R3 J2
#define LED_R3_B 23
#define LED_COUNT 28

I added a few lines to the tourney mode code in animation.cpp
//Tournament mode animations
void tourneyModeActivate(void)
{

kaimana.setALL(RED);
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K4, BLACK);
kaimana.setLED(LED_P4, BLACK);
kaimana.updateALL();
delay( T_DELAY );	

kaimana.setLED(LED_K3, BLACK);
kaimana.setLED(LED_P3, BLACK);
kaimana.setLED(LED_START, BLACK);
kaimana.setLED(LED_R3, BLACK);                 //additional code to disable R3
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K2, BLACK);
kaimana.setLED(LED_P2, BLACK);
kaimana.setLED(LED_HOME, BLACK);
kaimana.setLED(LED_TPAD, BLACK);                 //additional code to disable TPAD
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K1, BLACK);
kaimana.setLED(LED_P1, BLACK);
kaimana.setLED(LED_SELECT, BLACK);
kaimana.setLED(LED_L3, BLACK);                 //additional code to disable L3
kaimana.updateALL();
delay( T_DELAY );

}
void tourneyModeDeactivate(void)
{

kaimana.setALL(BLACK);
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K1, RED);
kaimana.setLED(LED_P1, RED);
kaimana.setLED(LED_SELECT, RED);
kaimana.setLED(LED_L3, RED);                 //additional code to enable R3
kaimana.updateALL();
delay( T_DELAY );
	
kaimana.setLED(LED_K2, RED);
kaimana.setLED(LED_P2, RED);
kaimana.setLED(LED_HOME, RED);
kaimana.setLED(LED_TPAD, RED);                 //additional code to enable TPAD
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K3, RED);
kaimana.setLED(LED_P3, RED);
kaimana.setLED(LED_START, RED);
kaimana.setLED(LED_R3, RED);                 //additional code to enable L3
kaimana.updateALL();
delay( T_DELAY );

kaimana.setLED(LED_K4, RED );
kaimana.setLED(LED_P4, RED);
kaimana.updateALL();
delay( T_DELAY );	

kaimana.setALL(BLACK);
kaimana.updateALL();
delay( T_DELAY );

kaimana.setALL(RED);
kaimana.updateALL();
delay( T_DELAY );

kaimana.setALL(BLACK);
kaimana.updateALL();
delay( T_DELAY );

}


#1156

@vypr Are you good with code? Do you know how I can get animations to work on the Hitbox Kaimana code files? I think they used pretty much the same codes from the joystick file but it doesn’t work when I put in the commands to get the animations to play (fireball, ultra, etc). Do you have any suggestions?


#1157

Not particularly, it’s been over 10 years since I’ve done some real coding (or even looked at code), and only started looking at it again for the Kaimana in my stick.
Is it safe for me to assume that you’ve compared the Hitbox layout code (from a year ago) in @JRDIBBS github and his more recent code for 8/6 button stick layouts?


#1158

Hi vypr!

I know what you issue is.

In the ino file either at the top or the bottom of the pollswitches function add one of the following for each of the leds that don’t turn off;



kaimana.setLED(YOURLEDNAME, BLACK);


Varmint, I will record a video on why the input animations do not work 100% of the time. Im on my way home but shouls have it tonight.


#1159

Thanks, I’ll give that a try hopefully this evening.


#1160

@JRDIBBS Check out this video. https://www.youtube.com/watch?v=-Bg0cqb9PPo&lc=z13tenu4dm3bcfkwt04cddojiouqdf5pjqw0k.1501423619938927

It works on Hitbox, I just don’t know how, neither does anyone else seem to.