Quentin Coz
/
ATest-ecran
cléclé
main.cpp
- Committer:
- Quentinou
- Date:
- 2018-12-21
- Revision:
- 0:e25a8207e8a1
File content as of revision 0:e25a8207e8a1:
#include "mbed.h" #include "TextLCD.h" I2C i2c_lcd(PF_0,PF_1); // SDA, SCL TextLCD_I2C lcd(&i2c_lcd, 0x4E, TextLCD::LCD16x2, TextLCD::HD44780); // I2C bus, PCF8574 Slaveaddress, LCD Type, Device Type int main() { lcd.setMode(TextLCD::DispOn); //DispOff, DispOn lcd.setBacklight(TextLCD::LightOff);//LightOff, LightOn lcd.setCursor(TextLCD::CurOff_BlkOff);//CurOff_BlkOff, CurOn_BlkOff, CurOff_BlkOn, CurOn_BlkOn lcd.printf("test"); }