KRITSADA

POP-7 Sensor Read A1-A2

Jul 11th, 2018
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <pop7.h>  // POP-7 Board
  2. word L,R;
  3. void setup() {
  4.   setTextSize(2);glcdMode(3);
  5. }
  6. void loop() {
  7.     L=analog(1);R=analog(2);
  8.     glcd(0,0,"L=%d  ",L);
  9.     glcd(1,0,"R=%d  ",R);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment