Outils pour utilisateurs

Outils du site


wiki:projets:rfid:ethylotest:capteurbis

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
wiki:projets:rfid:ethylotest:capteurbis [2015/03/11 11:54]
3407792
wiki:projets:rfid:ethylotest:capteurbis [2016/11/13 13:39] (Version actuelle)
Vincent Dupuis ↷ Page déplacée de wiki:projets:ethylotest:capteurbis à wiki:projets:rfid:ethylotest:capteurbis
Ligne 3: Ligne 3:
 ---- ----
  
-int mq3_analogPin = A0; // connected to the output pin of MQ3  +void setup() { 
- +  // set up the LCD's number of columns and rows: 
-void setup(){ +  lcd.begin(2, 16); 
-  Serial.begin(9600); // open serial at 9600 bps+  // Print a message to the LCD.
 } }
  
-void loop() +void loop() { 
-+  // set the cursor to column 0, line 1 
-  // give ample warmup time for readings to stabilize +  // (note: line 1 is the second row, since counting begins with 0): 
- +  lcd.print("Output MQ3:"); 
-  int mq3_value = analogRead(mq3_analogPin); +  lcd.setCursor(0, 1); 
-  Serial.println(mq3_value); +  lcd.print(mq3_analogPin);   
- +  delay(250);
-  delay(100); //Just here to slow down the output.+
 } }
wiki/projets/rfid/ethylotest/capteurbis.1426074877.txt.gz · Dernière modification: 2016/09/11 11:01 (modification externe)