Advertisement
KRITSADA

AX-Wifi EX04

Jun 20th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include "AXWIFI.h"
  2. int x;
  3. void setup() {
  4.   ax.begin();
  5.   ax.OledSetTextSize(2);
  6.   ax.OledSetText(0,0,"Analog");
  7.   ax.OledShow();
  8. }
  9. void loop() {
  10.   ax.OledSetText(1,0,"%d  ",analogRead(A0));
  11.   ax.OledShow();
  12.     x=map(analogRead(A0),0,1024,0,255);
  13.     ax.SledShow(0,x,0,0);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement