Advertisement
RuiViana

CK_Code

Oct 13th, 2017
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void setup()
  2. {
  3.   Serial.begin(115200);
  4. }
  5.  
  6. void loop()
  7. {
  8.   unsigned char ch = 0xFF & 0x80;
  9.   int i;
  10.   for (i = 0; i <= 8; i++, ch = ch >> 1)
  11.   {
  12.     //  printf("i=%d:valor:%d\n", i, ch);
  13.     Serial.print("i :");
  14.     Serial.print(i);
  15.     Serial.print("  ch :");
  16.     Serial.println(ch);
  17.   }
  18.   Serial.println( );
  19.   delay(300);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement