byte
原文
byte型は、0〜255の1バイト(8ビット)の符号なし整数を格納します。
(警告) バイト型はArduinoとの互換性のために提供されています。 しかし、それは非標準の拡張です。 8ビットの符号なし整数を格納する標準のC ++型はunsigned charです。 代わりにそれを使用することをお勧めします。 (あなたのコードはまだArduinoで動作します)。
利用例
code:sample
byte b = 134;
関連事項
byte() (値をbyte型にキャスト)
変数
License and Attribution: Portions of this page were adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.
このドキュメントはleafLabs, LLC.が執筆し、たま吉が翻訳・一部加筆修正したものです。
Arduino STM32 リファレンス 日本語版 に戻る