Thank you very much Tronic!
I saw on my display board that it is V1.2, and in your videos it is V1.1. Maybe that's why there was the difference.
If anyone runs into the same problem, here is the last part of the code for RPM leds:
- Code: Select all
if (rpmdata == 1) {
rpmleds = map(rpm,0,rpmmax,0,9); // distributes the rpm level to the 8 leds + 1 for shift change
if (rpmleds==0){
module.setLEDs(0b00000000 | 0b00000000<< 8);
}
if (rpmleds==1){
module.setLEDs(0b00000001 | 0b00000000<< 8 );
}
if (rpmleds==2){
module.setLEDs(0b00000011 | 0b00000000<< 8 );
}
if (rpmleds==3){
module.setLEDs(0b00000111 | 0b00000000<< 8 );
}
if (rpmleds==4){
module.setLEDs(0b00001111 | 0b00000000<< 8);
}
if (rpmleds==5){
module.setLEDs(0b00011111 | 0b00000000<< 8);
}
if (rpmleds==6){
module.setLEDs(0b00011111 | 0b00100000<< 8 );
}
if (rpmleds==7){
module.setLEDs(0b00011111 | 0b01100000<< 8 );
}
if (rpmleds==8){
//module.setLEDs(0b11100000 | 0b000011111<< 8 );}
module.setLEDs(0b11111111 | 0b111111111<< 8 );
}
rpmdata=0;
}
}
I had to change this part as well to synchronize LEDs with game
- Code: Select all
rpmmax = (rpmmax * 100)+1500;
Before it was +500, but the red leds for gear shifting were appearing to soon.
I don't know if that was the proper way to fix it, but it worked.
And great box Dearn, I will need to do something similar myself with carbon tape. I was already considering that I'll need to resolder the wires, I see now it is a must