Guest User

Untitled

a guest
Oct 18th, 2015
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void loop()
  2. {
  3.     nRF905_interrupt_off();
  4.  
  5.     // HERE I HAVE MY CODE FOR DRAWING IN THE LCD SCREEN
  6.  
  7.     nRF905_interrupt_on();
  8.  
  9.  
  10.     byte buffer[NRF905_MAX_PAYLOAD];
  11.     while(!nRF905_getData(buffer, sizeof(buffer)));
  12.     nRF905_receive();
  13.  
  14.  
  15.     nRF905_interrupt_off();
  16.  
  17.     myGLCD.setFont(SevenSegNumFont);
  18.     myGLCD.printNumI(buffer[0],LEFT, 10);
  19.     myGLCD.printNumI(buffer[1],LEFT,180);
  20.  
  21.     nRF905_interrupt_on();
  22. }
RAW Paste Data