Assignment 10.1
Post date: Aug 01, 2010 5:14:58 PM
Pretty simple, so I'll just get right to it. Code:
const int pot1 = 4;
const int led1 = 9;
int brightness;
void setup() {
}
void loop() {
brightness = map(analogRead(pot1), 0, 1023, 0, 255);
analogWrite(led1, brightness);
delay(50);
}