void setup() {
// put your setup code here, to run once:
}
int light;
int LED;
void loop() {
// put your main code here, to run repeatedly:
light = sin(PI * 2 * millis() / 1000.0) * 127 + 127;
analogWrite(LED, light);
}
Fixed it.
You declared a variable called analogWrite that I have removed.