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.
main.cpp
- Committer:
- Marcelocostanzo
- Date:
- 2020-11-26
- Revision:
- 0:12860941a8a1
File content as of revision 0:12860941a8a1:
#include "mbed.h" #include "meuLCD1602.h" DigitalOut led(LED1); int i; char strBuffer[64]; int main() { lcd_init(); lcd_clear(); lcd_cursor_mode(0,0); lcd_send_char(0x4F);//O lcd_send_char(0x4C);//L lcd_send_char(0x41);//A lcd_send_char(0x20);// lcd_send_char(0x32);//2 lcd_send_char(0x30);//0 lcd_send_char(0x32);//2 lcd_send_char(0x30);//0 wait_ms(1000); lcd_clear(); while(1) { lcd_put_cur(0,0); sprintf(strBuffer, "%i", i); lcd_send_string(strBuffer); i++; wait_ms(1000); } }