Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
producto:sensores:rbl060103 [11/02/2017 21:04]
ebolano
producto:sensores:rbl060103 [02/03/2020 10:10] (current)
Line 26: Line 26:
 <​code>​ <​code>​
 void setup(){ void setup(){
-  Serial.begin(9600);​ // 打开串口,设置波特率为9600 bps+  Serial.begin(9600);​ // abrir el puerto serie, establecer velocidad de transmisión ​9600 bps
 } }
  
 void loop(){ void loop(){
   int val;   int val;
-  val=analogRead(0); ​  //传感器接于模拟口+  val=analogRead(0); ​  // ​el sensor se conecta al puerto analógico ​
-  Serial.println(val,​DEC);//​从串口发送数据并换行+  Serial.println(val,​DEC);// ​enviar datos puerto serie, retardo (100)
   delay(100);   delay(100);
 } }