# Hussainfawzi/fast-pwm

**URL:** <https://forum.xod.io/t/hussainfawzi-fast-pwm/4542>\
**Category:** Install/Upload Problems\
**Created:** [October 25, 2020, 2:45pm UTC](https://forum.xod.io/t/hussainfawzi-fast-pwm/4542 "2020-10-25T14:45:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonysandberg69](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tonysandberg69](https://forum.xod.io/u/tonysandberg69)\
**Post date:** [October 25, 2020, 2:45pm UTC](https://forum.xod.io/t/hussainfawzi-fast-pwm/4542/1 "2020-10-25T14:45:40Z")

</div>

Trying to get Fast-PWM to work on a Leonardo!?  
Is it only for Uno? Tips?

C:\Users\KYLTON~1.MED\AppData\Local\Temp\xod\_temp\_sketchbooknRMBtu\xod\_1603636495269\_sketch\xod\_1603636495269\_sketch.ino:1225:17: note: suggested alternative: ‘fwrite’  
pwmWrite(port, duty);  
~~^~~~~~  
fwrite

Error during build: exit status 1  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![tonysandberg69](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tonysandberg69](https://forum.xod.io/u/tonysandberg69)\
**Post date:** [November 20, 2020, 11:17pm UTC](https://forum.xod.io/t/hussainfawzi-fast-pwm/4542/2 "2020-11-20T23:17:31Z")

</div>

I was a stupid beginner that was all.  
However, I would like a boolean out instead of port, Help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [December 20, 2020, 11:17pm UTC](https://forum.xod.io/t/hussainfawzi-fast-pwm/4542/3 "2020-12-20T23:17:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
