G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 150 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <REGX52.H>
  2.  
  3. #define TRUE 1
  4.  
  5. void main(void){
  6. char tabID = 0;
  7. char code tab[] = {0xFE, 0xFD, 0xFB, 0xF7};
  8. char code values[4][3] = {{0x01,0x02,0x03},{0x04,0x05,0x06},{0x07,0x08,0x09},{0x0E,0,0x0F}};
  9.  
  10. while(TRUE)
  11. {
  12.     tabID = tabID%4;
  13.     P1 = tab[tabID];
  14.  
  15.     if(P1 != tab[tabID])
  16.     {
  17.         if(P1_4==0) {
  18.             P2 = values[tabID][0];
  19.         }
  20.         else if(P1_5==0){
  21.             P2 = values[tabID][1];
  22.         }
  23.         else {
  24.             P2 = values[tabID][2];
  25.         }
  26.     }
  27.     tabID++;
  28. }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top