はじめに
はじめに

はじめに

言語リファレンス はじめに

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()
アナログI/O
  • analogRead()
  • analogReadResolution()
  • analogReference()
  • analogWrite()
  • analogWriteResolution()
三角関数
  • cos()
  • sin()
  • tan()
外部割込み
  • attachInterrupt()
  • detachInterrupt()
  • digitalPinToInterrupt()
拡張I/O
  • 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
  • Print
  • Serial
  • Stream
  • Wire
USB
  • キーボード
  • マウス
WiFi
  • 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