Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <lcddrv.h> // fiºierul cu prototipurile funcþiilor de lucru cu afiºajul LCD
- #include <copdrv.h> // fiºierul cu prototipurile funcþiilor de dialog cu coprocesorul
- #include <serdrv.h>
- void main(void){
- char tasta=0; // variabilã pentru citirea codului ASCII al tastei apãsate
- Init_LCD(CURSOR|FORWARD, ON, ON|BLINK); // iniþializeazã afiºajul
- LCD_Home(YES);
- Serial_Init(1,Eight_bit,19200,1,1,0,0)
- //LCD_Putstr("Hello world!");
- while(1);
- {
- tasta=CopKeyIn();
- if(tasta)
- {
- LCD_Putchat(tasta);
- Ser_Send_Byte(0x03,tasta,1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement