Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: teste_lcd.txt
- Revision:
- 4:1dcc28a7a849
diff -r 2b261e3c05db -r 1dcc28a7a849 teste_lcd.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/teste_lcd.txt Thu Dec 01 19:38:52 2022 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "TextLCD.h" + +Serial pc(USBTX, USBRX); + +I2C i2c_lcd(I2C_SDA, I2C_SCL); // SDA, SCL >>> NUCLEO: D14,D15 +TextLCD_I2C lcd(&i2c_lcd, 0x7e, TextLCD::LCD20x4); + +int main(){ + //Inicializando display LCD + lcd.setCursor(TextLCD::CurOff_BlkOn); + lcd.setBacklight(TextLCD::LightOn); + + lcd.printf("Oie!"); + +} \ No newline at end of file