Jump to content

Recommended Posts

Posted

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

  • Recently Browsing   0 members

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