CentraleSupélec LMF, UMR CNRS 9021
Département informatique Laboratoire Méthodes Formelles
3 rue Joliot-Curie Bât 650 Ada Lovelace, Université Paris Sud
91190 Gif-sur-Yvette, France Rue Noetzlin, 91190 Gif-sur-Yvette, France
MicroPython snippets

LCD skin with touch buttons

Reading the temperature with a TMP36

Connect the left pin to 3.3V, the center pin to X1 and the right pin to GND (when facing the flat side of the TMP36)

Controlling an LED with a Digital to Analog converter

The maximum output voltage is 3.3V. We have to start from 1.8V so that the LED glows.

Controlling an LED with Pulse Width Modulation

The maximum output voltage is 5V.