初级会员

- 积分
- 98
- 金钱
- 98
- 注册时间
- 2018-3-2
- 在线时间
- 9 小时
|
10金钱
void setup()
{
// initialize the serial communication:
Serial.begin(9600);
pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -
}
void loop()
{
if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
Serial.println('!');
}
else{
// send the value of analog input 0:
Serial.println(analogRead(A0));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}
如何将Arduino UNO的程序代码转为STM32F103ZET6的代码(关于AD8232传感器采集数据,得到心电图的)
|
|