Advertisement
Adytzu04

csc hyperterminal

Mar 30th, 2015
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <lcddrv.h> // fiºierul cu prototipurile funcþiilor de lucru cu afiºajul LCD
  2. #include <copdrv.h> // fiºierul cu prototipurile funcþiilor de dialog cu coprocesorul
  3. #include <serdrv.h>
  4. void main(void){
  5.     char tasta=0; // variabilã pentru citirea codului ASCII al tastei apãsate
  6.     Init_LCD(CURSOR|FORWARD, ON, ON|BLINK); // iniþializeazã afiºajul
  7.     LCD_Home(YES);
  8.     Serial_Init(1,Eight_bit,19200,1,1,0,0)
  9.     //LCD_Putstr("Hello world!");
  10.     while(1);
  11.     {
  12.         tasta=CopKeyIn();
  13.         if(tasta)
  14.         {
  15.          LCD_Putchat(tasta);
  16.          Ser_Send_Byte(0x03,tasta,1);  
  17.          }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement