Arduino Serial analogWrite -
how able read serial input on arduino , write value led?
i.e. if type 042
console, should execute analogwrite(led, 42);
if(serial.available()){ int val = serial.read(); digitalwrite(led, val); }
how able read serial input on arduino , write value led?
i.e. if type 042
console, should execute analogwrite(led, 42);
if(serial.available()){ int val = serial.read(); digitalwrite(led, val); }
Comments
Post a Comment