A modular NanoLeaf lights that not only allows you to make any NanoLeaf shape using as many or as little segments as you want, but you can also use the same identical modular segments to create a 4-digit display, which can be used to display the time, temperature, humidity, or pretty much anything you want!
There is a video associated with this repository/project, I highly recommend watching it before using this repo.
You simply just need to go to here, press install and follow the instructions.
Keep in mind, that you don't need to do any of the steps below if you are just creating a NanoLeaf shape. For the code for any NanoLeaf shape, see Code for any custom NanoLeaf shape.
Please note, in the video (time: 13:37
) I go through and show the exact steps on how to upload and use the code for the 4-digit display. Below is just a short text version.
PlatformIO IDE
extension./WLED
directory in VSCode.WLED/platformio.ini
, under the [env:esp32dev]
environment, change the upload_port
to your micro-controller port.WLED/usermods/NanoLeaf_Display/usermod_nanoleaf_display.h
, change the ADDR_LEDS_PER_SEG
variable to the number of addressable LED sections there are in your LED strip. Below is an illustration to explain this further. In the example below, there are 3 sections, since there are 2 cut marks, so if you were to cut the LED strip on the cut marks, you will get 3 seperate sections, this is the number you need to set the ADDR_LEDS_PER_SEG
variable to.14:42
).WS2811
LED strip. Each segment requires 15cm long LED strip. For the 4-digit display, you will need at least 5 meters.Please refer to the /3d_printing
directory.
To cut the acrylic to the correct shape, print this A4 sheet. To ensure you have printed it to the correct scale, measure the top size of the shape, which should be 12 cm
.