はじめに
言語リファレンス はじめにArduinoリファレンスの日本語訳です。
できるだけわかりやすくするために、修正や追加、削除が伴うことがあります(訳しづらいところを省いたりとかも…)。訳があやしいと思ったら、原文を参照してください。
言語リファレンスArduinoプログラムの仕様は、関数(functions)と値(変数と定数)(values(variables and constants))、構造(structure)に大別できます。以下にそれぞれの一覧を示します。
(訳者註)関数に分類されているものの中には、実際には関数ではなく、マクロとして実装されているものもあります。
関数Arduinoボードの制御と計算を実行する。
デジタルI/O- digitalRead()
- digitalWrite()
- pinMode()
- abs()
- constrain()
- map()
- max()
- min()
- pow()
- msqax()
- sqrt()
- bit()
- bitClear()
- bitRead()
- bitSet()
- bitWrite()
- highByte()
- lowByte()
- analogRead()
- analogReadResolution()
- analogReference()
- analogWrite()
- analogWriteResolution()
- cos()
- sin()
- tan()
- attachInterrupt()
- detachInterrupt()
- digitalPinToInterrupt()
- noTone()
- pulseIn()
- pulseInLong()
- shiftIn()
- shiftOut()
- tone()
- isAlpha()
- isAlphaNumeric()
- isAscii()
- isControl()
- isDigit()
- isGraph()
- isHexadecimalDigit()
- isLowerCase()
- isPrintable()
- isPunct()
- isSpace()
- isUpperCase()
- isWhitespace()
- interrupts()
- noInterrupts()
- delay()
- delayMicroseconds()
- micros()
- millis()
- random()
- randomSeed()
- SPI
- Serial
- Stream
- Wire
- キーボード
- マウス
- Wi-Fi Overview
- WiFiライブラリ(WiFiネットワーク)
- WiFiライブラリ(IPAddress)
- WiFiライブラリ(WiFiClient)
- WiFiライブラリ(WiFiServer)
- WiFiライブラリ(WiFiUDP)
Arduinoのデータ型と定数。
定数- 浮動小数点数
- HIGH | LOW
- INPUT | OUTPUT | INPUT_PULLUP
- 整数定数
- LED_BUILTIN
- true | false
- 配列
- bool
- boolean
- byte
- char
- double
- float
- int
- long
- short
- size_t
- string(文字の配列)
- String()
- unsigned char
- unsigned int
- unsigned long
- void
- word
- const
- 変数の有効範囲
- static
- volatile
- byte()
- char()
- float()
- int()
- long()
- (unsigned int)
- (unsigned long)
- word()
- PROGMEM
- sizeof()
Arduinoのコード(C++)の要素。
スケッチ- loop()
- setup()
- +
- =
- /
- *(乗算)
- %(剰余)
- -(減算)
- 単項*演算子
- 単項&演算子
- break
- continue
- do...while
- else
- for
- goto
- if
- return
- switch...case
- while
- ==
- >
- >=
- <
- <=
- !=
- <<(ビット単位の左シフト演算子)
- >>(ビット単位の右シフト演算子)
- &(ビット単位のAND演算子)
- ~(ビット単位の補数演算子)
- |(ビット単位のOR演算子)
- ^(ビット単位の排他OR演算子)
- /* */
- {}
- #define
- #include
- ;
- //
- &&(論理積)
- !(論理否定)
- ||(論理和)
- +=
- &=
- |=
- ^=
- /=
- *=
- %=
- -=
- --
- ++
https://docs.arduino.cc/language-reference/
BOT