Arduino cheat sheet: Difference between revisions

Line 406: Line 406:
</syntaxhighlight>
</syntaxhighlight>
もちろん、power_*_disable() もある。いったん power_all_disable() してから個別に設定も可。
もちろん、power_*_disable() もある。いったん power_all_disable() してから個別に設定も可。
==== float の printf ====
arduino は float と double の差はない。[https://www.arduino.cc/en/Reference/Double Double]
printf 系は float は使えない。'?' に変換される。(小一時間ハマった)
avr libs の dtostrf (stdlibs.h) で代用できる。[http://www.nongnu.org/avr-libc/user-manual/group__avr__stdlib.html#ga6c140bdd3b9bd740a1490137317caa44 dtostre]


==== メモメモ ====
==== メモメモ ====