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 | ||
documentation:microcontroleurs:arduino:modules:tactile_sensors:index [2022/09/02 21:25] – f1sls | documentation:microcontroleurs:arduino:modules:tactile_sensors:index [2024/10/12 11:11] (Version actuelle) – [ARDUINO WIRING] f1sls | ||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
===== ARDUINO WIRING ===== | ===== ARDUINO WIRING ===== | ||
{{: | {{: | ||
+ | |||
===== CODE ===== | ===== CODE ===== | ||
+ | ==== EXAMPLE #1 ==== | ||
<code cpp> | <code cpp> | ||
// Arduino and KY-036 module | // Arduino and KY-036 module | ||
Ligne 25: | Ligne 27: | ||
// display analog and digital values to serial | // display analog and digital values to serial | ||
Serial.print(" | Serial.print(" | ||
- | Serial.println(analogRead(A0)); | + | Serial.print(analogRead(A0)); |
Serial.print(" | Serial.print(" | ||
Ligne 42: | Ligne 44: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ |