#include #include #define DCSBIOS_IRQ_SERIAL #include LiquidCrystal_PCF8574 lcd(0x27); // set the LCD address to 0x27 for a 16 chars and 2 line display int show; void onIlsKhzChange(char* newValue) { lcd.setCursor(4, 0); lcd.print(newValue); lcd.setCursor(3, 0); lcd.print("."); } DcsBios::StringBuffer<2> ilsKhzStrBuffer(0x1172, onIlsKhzChange); void onIlsMhzChange(char* newValue) { lcd.setCursor(0, 0); lcd.print(newValue); } DcsBios::StringBuffer<3> ilsMhzStrBuffer(0x116e, onIlsMhzChange); DcsBios::RotaryEncoder ilsKhz("ILS_KHZ", "DEC", "INC", 2, 3); DcsBios::RotaryEncoder ilsMhz("ILS_MHZ", "DEC", "INC", 4, 5); DcsBios::RotaryEncoder ilsPwr("ILS_PWR", "DEC", "INC", 6, 7); void setup() { lcd.begin(16, 2); DcsBios::setup(); } void loop() { DcsBios::loop(); lcd.setBacklight(10); }