Skip to content

Commit b66e733

Browse files
authored
Improve docu and bring ESP32 pin switch (#4)
* add animation and detail images * Update README.md * add pin switch for ESP32 based boards Pin 8 for ESP32, Pin 1 for Digispark
1 parent e660dbe commit b66e733

5 files changed

+14
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ alt="DIY XMAS TREE" width="560" height="315" border="10" /></a>
1414

1515
1. Solder WS2812 led rings power and ground with magnet wire, tree shaped.
1616
2. Solder every output with the input from the next ring.
17-
3. Programm Digistump using Arduino IDE.
17+
3. Programm Digispark using Arduino IDE.
1818
4. Connect power and ground to Digispark.
1919
5. Connect the first input to Digispark pin 1.
2020
6. Connect Digispark to powersource.
@@ -32,5 +32,10 @@ It can be considered OSHW, i mean, how can you not recreate this easily?
3232
1. Use more LED´s: [93 LED Ring´s](https://www.aliexpress.com/item/1-8-12-16-24-32-Bits-WS2812-5050-RGB-LED-Ring-Lamp-Light-with-Integrated/32662512396.html?ws_ab_test=searchweb0_0,searchweb201602_4_10065_10068_10084_10083_10080_10082_10081_10060_10061_10062_10056_10055_10037_10054_10059_10032_9912_10099_10078_10079_10077_426_10103_10073_10102_10096_10052_10050_10051-10050_9912,searchweb201603_6&btsid=882d21ad-2098-4702-ae11-bcffaf4105a9) The code needs to be changed to reflect the 93 WS1812!
3333
2. Or even more! [241 LED Ring's](https://www.aliexpress.com/item/Addressable-WS2812B-pixel-Ring-1-8-12-16-24-32-40-48-60-93-241-LEDs/32809169128.html?spm=a2g0x.10010108.1000001.8.595e2b2dKDTtbE&isOrigTitle=true) The code needs to be adopted for this one also.
3434

35+
Online simulation on Wokwi: https://wokwi.com/projects/348695052670730836
3536

36-
Made an example on Wokwi : https://wokwi.com/projects/348695052670730836
37+
<img src='img/xmas-tree-animation.gif'>
38+
39+
It is also possible to use a QT PY or similar ESP32-S2 or ESP32-C3 based boards:
40+
41+
<img src='img/digispark-attiny85.jpg'> <img src='img/qtpy-esp32s2.jpg'>

img/digispark-attiny85.jpg

35.1 KB
Loading

img/qtpy-esp32s2.jpg

35 KB
Loading

img/xmas-tree-animation.gif

842 KB
Loading

xmas-tree.ino

+7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414

1515
#include <Adafruit_NeoPixel.h> //needed for the WS2812
1616

17+
#if defined(ESP32)
18+
#pragma message "ESP32 based board, Pin 8"
19+
#define PIN 8 //Pin 8, A3 is DATA In on the bottom Ring
20+
#else
21+
#pragma message "AVR based board, Pin 1"
1722
#define PIN 1 //Pin 1 is DATA In on the bottom Ring
23+
#endif
24+
1825
#define BRIGHTNESS 40 // brightness reduced (about 180mA max, 100mA average)
1926
#define SIZEOFARRAY(X) sizeof(X) / sizeof(X[0])
2027

0 commit comments

Comments
 (0)