Datasheet
IDUINO for Maker’s life
www.openplatform.cc
{
pinMode (Led, OUTPUT) ;// define LED as output interface
pinMode (buttonpin, INPUT) ;// output interface D0 is defined sensor
}
void loop ()
{
val = digitalRead(buttonpin);//
if (val == HIGH) //
{
digitalWrite (Led, HIGH);
}
else
{
digitalWrite (Led, LOW);
}
}
********Code End********
3.2 Example 2
This example show you the Analog pin function, connect this module as below
picture, and upload the code.
Then open the Serial monitor, you can see some number between 0 to 1023. And
now if you make some high or low voice, the number is changing.