PC Fans: Difference between revisions
| Line 87: | Line 87: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
The ESP8266 requires a call to <tt>analogWriteFreq(25000);</tt> before using <tt>analogWrite()</tt> to set an 8-bit duty cycle. This is a global setting, and will affect any other <tt>analogWrite()</tt>s in your program. | The ESP8266 requires a call to <tt>analogWriteFreq(25000);</tt> before using <tt>analogWrite()</tt> to set an 8-bit duty cycle. This is a global setting, and will affect any other <tt>analogWrite()</tt>s in your program. If you don't like it, you can always bitbang. | ||
==Tachometer== | ==Tachometer== | ||