Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| arduiro:php-meter [2019/01/20 13:28] – cyrille | arduiro:php-meter [2019/07/17 17:24] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| + | 2 scripts disponibles. | ||
| ===== Script 1 ===== | ===== Script 1 ===== | ||
| - | | + | < |
| void setup() { | void setup() { | ||
| Serial.begin(9600); | Serial.begin(9600); | ||
| Ligne 27: | Ligne 28: | ||
| Serial.println("" | Serial.println("" | ||
| delay(2000); | delay(2000); | ||
| - | } | + | }</ |
| ===== Script 2 ===== | ===== Script 2 ===== | ||
| - | const int phPin = A0; | + | <code bash>const int phPin = A0; |
| int sensorValue = 0; | int sensorValue = 0; | ||
| unsigned long int avgValue; | unsigned long int avgValue; | ||
| Ligne 64: | Ligne 65: | ||
| Serial.println(phValue); | Serial.println(phValue); | ||
| delay(20); | delay(20); | ||
| - | } | + | }</ |
| ===== Réglage généraux ===== | ===== Réglage généraux ===== | ||
| Ligne 93: | Ligne 94: | ||
| That's all, now you can use it with the code below. | That's all, now you can use it with the code below. | ||
| + | |||
| + | ===== Divers ===== | ||
| + | {{: | ||
| + | {{: | ||