Sfoglia il codice sorgente

Update README - image

Snarf 4 anni fa
parent
commit
1c28705330
2 ha cambiato i file con 12 aggiunte e 2 eliminazioni
  1. 4 0
      README.md
  2. 8 2
      code/veilleuse/veilleuse.ino

+ 4 - 0
README.md

@@ -14,6 +14,10 @@ Le projet se base sur la [Glowing Moon](https://www.thingiverse.com/thing:253183
 * Une resistance de 10kΩ 
 * Un photoresistance 
 
+### Platine de test 
+
+![image](assets/fritzing.png)
+
 ### Configuration du code
 
 Les principales valeurs à adapter sont les suivantes : 

+ 8 - 2
code/veilleuse/veilleuse.ino

@@ -3,13 +3,19 @@
 #include <Adafruit_NeoPixel.h>
 
 
-#define PIN       2
-#define NUMPIXELS 8
+// Config Leds
+#define PIN          2
+#define NUMPIXELS    8
 
+// Config Photoresistance
+#define LIGHT_SENSOR A0
+
+// Config couleur
 #define R 255
 #define G 128
 #define B 56
 
+// Config seuil
 #define ON_LEVEL 200
 #define OFF_LEVEL 500