remove popn15 dll and code reference and light leds in a wave pattern #2

Open
Test045 wants to merge 5 commits from Test045/feature/usbStartLightRework into master
2 changed files with 5 additions and 16 deletions
Showing only changes of commit 03c86102de - Show all commits
BIN
View File
Binary file not shown.
+5 -16
View File
@@ -334,22 +334,11 @@ __declspec(dllexport) int __cdecl usbStart(int i) {
g_dip_state |= 0x08;
#endif
/* light up each part of the cab in a wave pattern to get visual confirmation the device is working */
// light neons
for (int i = 0; i<=4; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
Sleep(300);
}
// light side lamps
for (int i = 8; i<=11; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
Sleep(300);
}
// light on coin blocker
controller_write_leds((uint32_t) 0x00000000);
Sleep(1000);
// light buttons
for (int i = 23; i<=31; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
for (int i = 0; i<=31; i++){
if ((i > 4 && i < 8) || (i > 11 && i < 23)) { // unused bits
continue;
}
controller_write_leds((uint32_t) 1 << i);
Sleep(300);
}