Instructions
IDUINO for maker’s life
www.openplatform.cc 69
-
Ground
3.Example
This example shows you how to use this module, connection as below, and upload the
sketch, see how it will go~
Example code :
******Code begin******
int LedPinA = 3;
int LedPinB = 6;
int ButtonPinA = 4;
int ButtonPinB = 7;
int buttonStateA = 0;
int buttonStateB = 0;
int brightness = 0;
void setup ()
{
pinMode (LedPinA, OUTPUT);
pinMode (LedPinB, OUTPUT);
pinMode (ButtonPinA, INPUT);
pinMode (ButtonPinB, INPUT);
}
void loop ()