Arduino繁中語言手冊

Arduino IDE的程式可以在三個主要部分 結構、變量、函式。繁中文章陸續更新中…
點擊英文指令連結至arduino.cc原文說明,繁中說明請點擊中文,本文章翻譯自arduino.cc 分享依據ATTRIBUTION-SHAREALIKE 3.0 UNPORTED (CC BY-SA 3.0)

結構 Structure

控制迴圈

Further Syntax符號語法

Arithmetic Operators數學運算符號

  • = (assignment operator)
  • (addition)
  • (subtraction)
  • * (multiplication)
  • / (division)
  • % (modulo)

Comparison Operators

  • == (equal to)
  • != (not equal to)
  • < (less than)
  • > (greater than)
  • <= (less than or equal to)
  • >= (greater than or equal to)

Boolean Operators

  • && (and)
  • || (or)
  • ! (not)

Pointer Access Operators

Bitwise Operators

  • & (bitwise and)
  • | (bitwise or)
  • ^ (bitwise xor)
  • ~ (bitwise not)
  • << (bitshift left)
  • >> (bitshift right)

Compound Operators

  • ++ (increment)
  • (decrement)
  • += (compound addition)
  • -= (compound subtraction)
  • *= (compound multiplication)
  • /= (compound division)
  • %= (compound modulo)
  • &= (compound bitwise and)
  • |= (compound bitwise or)

變量 Variables

Constants

Data Types

Conversion

Variable Scope & Qualifiers

Utilities

函式Functions

Digital I/O

Analog I/O

Due & Zero only

Advanced I/O

Time

Math

Trigonometry

Characters

Random Numbers

Bits and Bytes

External Interrupts

Interrupts

Communication

USB (32u4 based boards and Due/Zero only)

Looking for something else?

See the libraries page for interfacing with particular types of hardware. Try the list of community-contributed code. The Arduino language is based on C/C++. It links against AVR Libc and allows the use of any of its functions; see its user manualfor details.

Reference Home

參考主頁

資料來源: Arduino.cc 更正、建議和新的文件應發布到論壇

Arduino的所有開源文件是根據 知識共享署名-相同方式共享3.0許可協議。相關開源文件代碼範例分享時亦請遵守相同協議。Arduino屬於Arduino所有之商標。

廣告
%d 位部落客按了讚: