User Tools

Site Tools


projets:fuz:webduino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
projets:fuz:webduino [2019-12-03 21:39] – [Photocell] document photocell reading with example sketch Lomanicprojets:fuz:webduino [2019-12-03 21:40] – [Photocell] Lomanic
Line 154: Line 154:
 void loop() { void loop() {
   if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) {   if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) {
-    Serial.println(analogRead(GPIO_PHOTOCELL)); // values go from 0 for complete blackness to 1024 for full bright light+    Serial.println(analogRead(GPIO_PHOTOCELL)); // values go from 0 for complete darkness to 1024 for full bright light
   }   }
 } }
projets/fuz/webduino.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1