Aded lcd-adafruit to test/drive the Adafruit RGB LCD plate

Added the Quick 2 Wire codes, etc.
Minor typo/bug fixes.
Added more modules into gpio -x
This commit is contained in:
Gordon Henderson
2013-05-20 21:13:44 +01:00
parent 25895a8670
commit bfaf266ada
26 changed files with 1424 additions and 80 deletions

View File

@@ -895,19 +895,13 @@ void doRead (int argc, char *argv [])
void doAread (int argc, char *argv [])
{
int pin, val ;
if (argc != 3)
{
fprintf (stderr, "Usage: %s aread pin\n", argv [0]) ;
exit (1) ;
}
pin = atoi (argv [2]) ;
val = analogRead (pin) ;
printf ("%s\n", val == 0 ? "0" : "1") ;
printf ("%d\n", analogRead (atoi (argv [2]))) ;
}