Arduino语法手册模版.docx

. #Arduino 语法 setup 初始化函数 loop 循环体函数掌握语句类似于 C //if if...else for switch case while do... while bre ak continue return goto 扩展语法类似于 C //; 〔 分 号 〕 {} 〔 花 括 号 〕 // 〔 单 行 注 释 〕 /* */ 〔 多 行 注释〕 #define #include 算数运算符类似于 C //=〔赋值运算符〕 +〔加〕 -〔减〕 *〔乘〕 /〔除〕 % 〔模〕 比较运算符类似于 C //==〔等于〕 !=〔不等于〕 〔小于〕 〔大于〕 =〔小于等于〕 = 〔大于等于〕 布尔运算符类似于 C //〔与〕 ||〔或〕 !〔非〕 指针运算符类似于 C //* 取消引用运算符 引用运算符 位运算符类似于 C (bitwise and) | (bitwise or) ^ (bitshift left) (bitshift right) (bitwise xor) ~ (bitwise not) 复合运算符类似于 C ++ (increment) -- (decrement) += (compound addition) -= (compound subtraction) *= (compound multiplication) /=

文档评论(0)

1亿VIP精品文档

相关文档