Hallo Kollegen.
Ich bin auf der Suche nach einem Sketch. DCS Bios 0.10. für ein I2C LCD 1602 für das CMSP Display. Kann mir da jemand helfen.
Vielen Dank
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include "DcsBios.h"
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x3F, 16, 2);
void setup()
{
void onCmsp1Change(char* newValue) {
lcd.setCursor(0, 0);
lcd.print(newValue);
}
DcsBios::StringBuffer<19> cmsp1Buffer(0x1000, onCmsp1Change);
void onCmsp2Change(char* newValue) {
lcd.setCursor(0, 1);
lcd.print(newValue);
}
DcsBios::StringBuffer<19> cmsp2Buffer(0x1014, onCmsp2Change);
}
void loop()
{
// Do nothing here...
}