Created
October 16, 2012 08:57
-
-
Save biskandar/3898150 to your computer and use it in GitHub Desktop.
Reading Arduino's Analog Pins with JSON Protocol by using WiFi Shield 2012101601
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prepare for looping without delay | |
long curMillis = 0 ; | |
int ctrSeconds = 0 , maxSeconds = 100 ; | |
// prepare for reading analog data | |
int maxAnalogs = 6 ; | |
int arrAnalogs[] = { 0 , 0 , 0 , 0 , 0 , 0 } ; | |
int secAnalogs = 2 ; // in seconds | |
// prepare for debuging | |
int secDebug = 5 ; // in seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment