Marcelo Costanzo Miranda
/
ST7920_TEST_sem_lib_2
ST7920 Testes
main.cpp
- Committer:
- Marcelocostanzo
- Date:
- 2020-12-14
- Revision:
- 1:08481151e25e
- Parent:
- 0:d93bec0d412f
- Child:
- 2:5bcfb7105fa2
File content as of revision 1:08481151e25e:
/* * ATENÇÃO ST7920_CLEAR DESATIVA O MODO GRÁFICO * * */ #include "mbed.h" #include "ST7920.h" Serial pc(USBTX, USBRX); int main() { unsigned char texto[]={'O','l','a','!', ' ', 'S', 'T', '7', '9', '2', '0'}; pc.printf("OI \n\r"); ST7920_Init(); wait_ms(100); //ST7920_Clear(); //wait_ms(100); //ST7920_SetGraphicsMode(); //wait_ms(100); //ST7920_Clear(); //wait_ms(100); //ST7920_SetGraphicsMode(); //ST7920_Clear(); //ST7920_DrawHorizontalLine(0, 0, 100); //wait_ms(100); //ST7920_DrawVerticalLine(0, 0, 50); //wait_ms(100); //ST7920_SetTextMode(); //wait_ms(100); ST7920_Clear(); //wait_ms(100); ST7920_DisplayString(1, 1, texto, sizeof(texto)); //wait_ms(100); while(1) { } }