Wim De Roeve
/
I2CTextLCD_TestProgram
TextLCD with I/O I2C expander
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "I2CTextLCD.h" 00002 00003 I2CTextLCD LCD(p9, p10,0x40); 00004 00005 int main() { 00006 00007 while (1) { 00008 for (int i=0;i<8;i++) { 00009 LCD.cls(); 00010 LCD.locate(0,0); 00011 for (int j=0;j<32;j++) { 00012 00013 LCD.printf("%c", i*32+j); 00014 } 00015 wait(1); 00016 if ((i % 2)==0) 00017 LCD.backlight(true); 00018 else 00019 LCD.backlight(false); 00020 } 00021 00022 } 00023 00024 }
Generated on Sun Jul 17 2022 01:32:15 by 1.7.2