Pages: [1]   Go Down
Author Topic: CORRECTION in the "continue" control structure in Arduino Reference material  (Read 675 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the reference material for continue control structure posted at URL - http://arduino.cc/en/Reference/Continue

In the example given in it, the code should not be digitalWrite() but should be analogWrite() instead.

Correction: digitalWrite(PWMpin,x) => analogWrite(PWMpin,x)

Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the example works (once LOW, 254 times HIGH), but it is wrong anyway.
Logged

My website: http://ried.cl

Pages: [1]   Go Up
Jump to: