I was reading the code on the analogWrite() and I was confused by the lines
*******
val = analogRead(analogPin); // read the input pin
analogWrite(BOARD_LED_PIN, val / 16); // analogRead values go from 0
// to 4095, analogWrite values
// from 0 to 65535
*********
should that not be val mult by 16 not divided? I may be just too sleepy to know better. here is a link to the page...
http://leaflabs.com/docs/lang/api/pwmwrite.html#lang-pwmwrite
Error in documentation
(2 posts) (2 voices)-
Posted 5 years ago #
-
hmmm. it would certainly seem that way. Well take a look. Thanks for the spot!
Posted 5 years ago #
Reply
You must log in to post.