Lukas4186

Untitled

Oct 30th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1.    
  2.  
  3.     #include <U8glib.h>
  4.      
  5.     U8GLIB_ST7920_128X64 u8g(13, 11, 12, U8G_PIN_NONE);        
  6.      
  7.     void setup(void) {}
  8.      
  9.     void loop(void) {
  10.       u8g.firstPage();
  11.        
  12.       int x = 1;
  13.       for (int i = 0; i > -1; i = i + x)
  14.        {
  15.           u8g.drawCircle(i , 32, 10);
  16.           if (i == 128) x = -1;
  17.          
  18.           do
  19.        {
  20.            u8g.drawCircle ( i , 32 , 10);
  21.        }
  22.          
  23.           while( u8g.nextPage() );
  24.           delay(50);
  25.       }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment