Arduino cheat sheet: Difference between revisions

Line 407: Line 407:
もちろん、power_*_disable() もある。いったん power_all_disable() してから個別に設定も可。
もちろん、power_*_disable() もある。いったん power_all_disable() してから個別に設定も可。


==== float の printf ====
=== float の printf ===
arduino は float と double の差はない。[https://www.arduino.cc/en/Reference/Double Double]
arduino は float と double の差はない。[https://www.arduino.cc/en/Reference/Double Double]


Line 421: Line 421:
  [http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf ISO/IEC TR 18037:2006(E)]
  [http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf ISO/IEC TR 18037:2006(E)]
:固定小数点 fixed point の情報すくないね。もともと FPU の無い マイコン系の拡張なのでネットでも情報出て無い。
:固定小数点 fixed point の情報すくないね。もともと FPU の無い マイコン系の拡張なのでネットでも情報出て無い。
=== Tips ===
[http://embeddedgurus.com/stack-overflow/2011/02/efficient-c-tip-13-use-the-modulus-operator-with-caution/ Efficient C Tip #13 – use the modulus (%) operator with caution « Stack Overflow]


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