语言参考
Arduino编程主要可以分为三个主要的部分:functions(函数)、values(variables(变量) 和 constants(常量))以及structure(语言元素)
FUNCTIONS(函数)
它是用来控制Arduino板卡,或者执行一些计算机指令。
Digital I/O(数字I/O)
Analog I/O(模拟I/O)
Zero, Due & MKR Family
Advanced I/O
Time
delay()
delayMicroseconds()
micros()
millis()
Characters
isAlpha()isAlphaNumeric()
isAscii()
isControl()
isDigit()
isGraph()
isHexadecimalDigit()
isLowerCase()
isPrintable()
isPunct()
isSpace()
isUpperCase()
isWhitespace()
VARIABLES(变量)
Arduino中的数据类型和常量(constants)
Constants
Floating Point ConstantsInteger Constants
HIGH | LOW
INPUT | OUTPUT | INPUT_PULLUP
LED_BUILTIN
true | false
Data Types
String()array
bool
boolean
byte
char
double
float
int
long
short
size_t
string
unsigned char
unsigned int
unsigned long
void
word
语言特性
Arduino代码要素基于(C++)
Further Syntax
#define (define)#include (include)
/* */ (block comment)
// (single line comment)
; (semicolon)
{} (curly braces)
Arithmetic Operators
% (remainder)* (multiplication)
+ (addition)
– (subtraction)
/ (division)
= (assignment operator)
Comparison Operators
!= (not equal to)< (less than)
<= (less than or equal to)
== (equal to)
> (greater than)
>= (greater than or equal to)
© 2019-2022 熊鹰 & 熊梓墨 苏ICP备18056870