void setup() {
// put your setup code here, to run once:
pinMode(12,OUTPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
// pin names are ab,b,c,d,e,f,g in clockwise. the top led is pin a, and middle one is. rest all are clockwise
if(Serial.available())
{
int n=Serial.parseInt();
if (n==1)
{
digitalWrite(11,HIGH);
digitalWrite(10,HIGH);
}
}
}