⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_idg300.cpp

📁 Arduino测试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 + -