byte ptPin=A0
int potValue,ledCount;
void setup() {
for (byte x=2;x<=11;x=x+1)
{
pinMode(x,OUTPUT);
}
}
void loop() {
potValue=analogRead(potPin);
ledcount= map(potValue 0,1023,2,12)
for (int x=1;x<=11;x=x+1)
digitalWrite(X,LOW)
byte ptPin=A0
int potValue,ledCount;
void setup() {
for (byte x=2;x<=11;x=x+1)
{
pinMode(x,OUTPUT);
}
}
void loop() {
potValue=analogRead(potPin);
ledcount= map(potValue 0,1023,2,12)
for (int x=1;x<=11;x=x+1)
digitalWrite(X,LOW)