Regnad517 Posted October 12, 2017 Posted October 12, 2017 Im curious if there is something to alter since the LCD tutorial because I cannot get my LCD to display from DCS. I dont't believe it is a wiring or potentionmeter issue because if I load a simple "hello world" it displays fine. Here is a quick test I have been using simply trying to get a return value. /* 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" #include <LiquidCrystal.h> LiquidCrystal lcd(0, 1, 4, 5, 6, 7); /* paste code snippets from the reference documentation here */ void onClockHhChange(char* newValue) { lcd.setCursor(4,0); lcd.print(newValue); } DcsBios::StringBuffer<2> clockHhBuffer(0x10fe, onClockHhChange); void setup() { lcd.begin(16,2); lcd.clear(); DcsBios::setup(); } void loop() { DcsBios::loop(); } In my opinion, that should display the Hour from the clock yet my screen is just blank, illuminated but blank. And as I said, if I load Hello World it displays just fine and yes I am using 0,1,4,5,6,7. Thanks
Hansolo Posted October 12, 2017 Posted October 12, 2017 You are using pin 0 and 1 for the LCD. IMHO you can't since these are the pins used for the USB communication with DCS. Use two other pins and you should be good Cheers Hans 132nd Virtual Wing homepage & 132nd Virtual Wing YouTube channel My DCS-BIOS sketches & Cockpit Album
Regnad517 Posted October 12, 2017 Author Posted October 12, 2017 Yup that was it, moved 0 and 1 to 8 and 9 and all is well. Thanks so much
Recommended Posts