remove popn15 dll and code reference and light leds in a wave pattern on I/O check
This commit is contained in:
+19
-14
@@ -229,10 +229,6 @@ static int controller_write_leds(int32_t lamp_bits){
|
||||
|
||||
/* EZUSB EXPORTS */
|
||||
|
||||
#ifdef POPN15_FORMAT
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
__declspec(dllexport) int __cdecl usbCheckAlive() {
|
||||
return 1;
|
||||
}
|
||||
@@ -337,11 +333,25 @@ __declspec(dllexport) int __cdecl usbStart(int i) {
|
||||
#ifdef FORCE_DIP4
|
||||
g_dip_state |= 0x08;
|
||||
#endif
|
||||
/* light everything for 1 sec to get visual confirmation
|
||||
* the device is working */
|
||||
controller_write_leds((uint32_t) 0xFFFFFFFF);
|
||||
Sleep(1000);
|
||||
controller_write_leds((uint32_t) 0x00000000);
|
||||
/* 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);
|
||||
// loin buttons
|
||||
for (int i = 23; i<=31; i++){
|
||||
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
|
||||
Sleep(300);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("Managed to open device %x\n",g_hid_handle);
|
||||
@@ -362,11 +372,6 @@ __declspec(dllexport) int __cdecl usbWdtStartDone() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef POPN15_FORMAT
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
BOOL APIENTRY DllMain( HMODULE hModule,
|
||||
DWORD fdwReason,
|
||||
LPVOID lpReserved
|
||||
|
||||
Reference in New Issue
Block a user