Created
February 5, 2026 13:28
-
-
Save philippe86220/262de2bc458a92502d1e5f2f4283d6b6 to your computer and use it in GitHub Desktop.
UNO Q - Modulino LIGHT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include "Modulino.h" | |
| #include <Arduino_RouterBridge.h> | |
| ModulinoLight light; | |
| void setup() { | |
| Monitor.begin(); | |
| Modulino.begin(); | |
| light.begin(); | |
| } | |
| void loop() { | |
| // Demande une nouvelle mesure au capteur | |
| light.update(); | |
| // Recuperation de la valeur en lux (entier) | |
| int lux = light.getAL(); | |
| Monitor.print("Lux = "); | |
| Monitor.println(lux); | |
| delay(1000); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment