ok so what i am trying to do to help me understand the arduino language is to have 10 LEDs and have a potentiometer move witch led lights up.
now here is my code. please be kind it is my first sketch. ![]()
int potpin = 0; //sets potentiometer to pin 0
int val //value of the potentiometer
int led1pin = 1 //first led is in pin 1
int led2pin = 2 //second led is in pin 2
int led3pin = 3 //third led is in pin 3
int led4pin = 4 //forth led is in pin 4
int led5pin = 5 //yeah you know
int led6pin = 6
int led7pin = 7
int led8pin = 8
int led9pin = 9
int led10pin = 10
void setup()
{
am i on the right track. haha hope so. any way i have no idea what next. HELP!!!!!!