i try this before I establish? this topic. it's not working at all.
I try this code:
int t=0;
int d=5;
void setup(){
pinMode(9,OUTPUT);
}
void loop(){
analogWrite(9,t);
t = t + d;
if (t == 0 || t == 255)
d=-d;
delay(21);
}
it's better than nothing , but it's not fully working.