📄 test_idg300.cpp
字号:
#include "WProgram.h"void setup();void loop();void setup(){ pinMode(2, INPUT); // declare pushbutton as input // delay(500); // Wire.begin(); // init i2c Serial.begin(9600); }void loop(){float yyh;yyh=analogRead(2);byte motorsInput = (byte)yyh; //\u6bd4\u7279\u8f6c\u6362Serial.println(motorsInput, DEC); //\u4e32\u53e3\u76d1\u89c6}int main(void){ init(); setup(); for (;;) loop(); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -