hitmanalpha1 Posted May 11, 2021 Posted May 11, 2021 I'm working on my Tomcat ACM Panel. Anyone with more knowledge than me know what code to use (if possible) to make my LED blink when the Weapon Store is in the "Ready" state? I'm trying to not use a bi-color LED. I would prefer to have one white LED per weapon station. I want the LED to be steady on for "Store" (Which works perfectly now) but blink the LED if its "Ready" to be fired. Here is my code, the ones with the \\blink comment are the ones I need. I'm thinking the delay command but cant figure out what I need to do. It may not be possible. /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::LED pltWeaponStore1aStoreL(0x12e0, 0x0200, 2); DcsBios::LED pltWeaponStore1aReadyL(0x12e2, 0x0002, 2); //blink DcsBios::LED pltWeaponStore1bStoreL(0x12e0, 0x0400, 3); DcsBios::LED pltWeaponStore1bReadyL(0x12e2, 0x0004, 3); //blink DcsBios::LED pltWeaponStore3StoreL(0x12e0, 0x0800, 4); DcsBios::LED pltWeaponStore3ReadyL(0x12e2, 0x0008, 4); //blink DcsBios::LED pltWeaponStore4StoreL(0x12e0, 0x1000, 5); DcsBios::LED pltWeaponStore4ReadyL(0x12e2, 0x0010, 5); //blink DcsBios::LED pltWeaponStore5StoreL(0x12e0, 0x2000, 9); DcsBios::LED pltWeaponStore5ReadyL(0x12e2, 0x0020, 9); //blink DcsBios::LED pltWeaponStore6StoreL(0x12e0, 0x4000, 6); DcsBios::LED pltWeaponStore6ReadyL(0x12e2, 0x0040, 6); //blink DcsBios::LED pltWeaponStore8aStoreL(0x12e2, 0x0001, 7); DcsBios::LED pltWeaponStore8aReadyL(0x12e2, 0x0100, 7); //blink DcsBios::LED pltWeaponStore8bStoreL(0x12e0, 0x8000, 8); DcsBios::LED pltWeaponStore8bReadyL(0x12e2, 0x0080, 8); //blink void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
Recommended Posts