madgrizzle
Active member
I'm working on learning so I apologize if this is a stupid question.
The https://www.pjrc.com/teensy/td_pulse.html page says the following:
"The value is between 0 to 256, where the higher the value, the more time the signal remains high. 0 and 256 correspond to always low and always high. Values 1 to 255 pulse the pin, referred to in percentage terms as "duty cycle". A value of 128 is 50% duty cycle.
The https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/ page says the following:
"value: the duty cycle: between 0 (always off) and 255 (always on). Allowed data types: int"
I know enough about computers to know that when I see a 0 as a lower limit, usually the upper limit is 255. Is the 256 the correct value for Teensy for always high but 255 for an Arduino, or is the teensy page in error?
Thanks!
The https://www.pjrc.com/teensy/td_pulse.html page says the following:
"The value is between 0 to 256, where the higher the value, the more time the signal remains high. 0 and 256 correspond to always low and always high. Values 1 to 255 pulse the pin, referred to in percentage terms as "duty cycle". A value of 128 is 50% duty cycle.
The https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/ page says the following:
"value: the duty cycle: between 0 (always off) and 255 (always on). Allowed data types: int"
I know enough about computers to know that when I see a 0 as a lower limit, usually the upper limit is 255. Is the 256 the correct value for Teensy for always high but 255 for an Arduino, or is the teensy page in error?
Thanks!