Jump to content

Recommended Posts

Posted
I have a problem with DCS bios and leds, the switches work but not the leds. The leds have been checked to be working. The Arduino library is the latest and so is the DCS bios. The Arduino IDE accepts the code, but the leds do not light. Even the example Master Caution button & led does not work for the led. The code was obtained with Bort help.
  • 2 weeks later...
Posted

Hi, ive recently started withdcs bios and arduino, by now just for led indications, i got it working…. When i get home will post the arduino stech with the coding that i get from bort.

by the way, good thing is you already have the “controller” part working…💪

  • Like 1

Intel i5 11700F + H80 | 4x4GB 3200mhz RAM | AORUS ELITE B560M | Samsung 850 PRO SSD 256gb| KINGSTON SA400 480GB SSD | WD 500GB | Gigabyte GTX 1070 8GB | Antec 1200 PSU | Thrustmaster Warthog HOTAS and homemade panels and rudder pedals | 24" Samsung T24C550 @60Hz 2ms | Opentrack 3 led clip

Posted

Here it is… i hope it helps


/*
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"

/*gear down indication*/
DcsBios::LED fc3Gear(0x601a, 0x0400, 10);
/*l-39*/
DcsBios::LED backNGearDownLamp(0x332c, 0x0080, 10);
/*f5*/
DcsBios::LED noseLight(0x760e, 0x0400, 10);
/*a10c*/
DcsBios::LED gearNSafe(0x1026, 0x0800, 10);
/*harrier*/
DcsBios::LED mainGearG(0x7888, 0x0400, 10);
/*mustang*/
DcsBios::LED landingGearGreen(0x500e, 0x1000, 10);


/*mastercaution*/
/*f5*/
DcsBios::LED mcLight(0x7602, 0x0020, 11);
/*a10c*/
DcsBios::LED masterCaution(0x1012, 0x0800, 11);

/*flaps*/
/*harrier*/
DcsBios::LED flapsLight(0x787c, 0x1000, 12);

/*airbrake 13*/


/*tailhook*/
/*f5*/
DcsBios::LED hookLight(0x760e, 0x2000, 14);


/*engine grid intakes 15*/



/* paste code snippets from the reference documentation here */

void setup() {
DcsBios::setup();
}

void loop() {
DcsBios::loop();
}



Regards
AAP


Enviado desde mi iPad utilizando Tapatalk

Intel i5 11700F + H80 | 4x4GB 3200mhz RAM | AORUS ELITE B560M | Samsung 850 PRO SSD 256gb| KINGSTON SA400 480GB SSD | WD 500GB | Gigabyte GTX 1070 8GB | Antec 1200 PSU | Thrustmaster Warthog HOTAS and homemade panels and rudder pedals | 24" Samsung T24C550 @60Hz 2ms | Opentrack 3 led clip

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...