Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pop7.h>
- int x;
- void setup(){
- glcdMode(1);
- setTextSize(3);
- }
- void loop(){
- x = map(analog(1),0,1023,0,160);
- glcd(1,0,"%d ",x);
- glcdFillRect(0,80,x,10,GLCD_RED);
- glcdFillRect(x,80,160-x,10,GLCD_BLACK);
- }
Advertisement
Add Comment
Please, Sign In to add comment