📄 test_idg300.pde
字号:
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; //比特转换
Serial.println(motorsInput, DEC); //串口监视
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -