Skip to content

Instantly share code, notes, and snippets.

@biskandar
Created October 16, 2012 08:57
Show Gist options
  • Save biskandar/3898150 to your computer and use it in GitHub Desktop.
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
// 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