update README.md

This commit is contained in:
Simon Budig 2019-01-04 22:59:14 +01:00
parent 548524a9d1
commit 1954bbcb73

View File

@ -12,18 +12,17 @@ https://github.com/plan44/messagetorch
This code is built for 5m LED strip with 64 led/m. The circumference of the This code is built for 5m LED strip with 64 led/m. The circumference of the
tube is about 17-20 cm, so that after 12 leds one winding is complete. tube is about 17-20 cm, so that after 12 leds one winding is complete.
This is an arduino sketch, however, there are two small issues with this: Originally there were some funky problems since for larger numbers of LEDs the
rendering code tends to interfere with the bootloader activation since the
"Catarina" Bootloader relies on some values in very specific memory locations
to decide if it starts the main application or not. This value was prone to get
clobbered by the flame rendering code, in extreme cases it even required to
reflash your leonardo via ISP.
It needs a patched Adafruit-Neopixel library, where I extended the I now have implemented a somewhat ugly workaround. By strategically dis- and
constructor with a pointer to pre-allocated memory. That way I get some re-enabling interrupts and checking for the bootloader-entering-condition at
control on where in the memory the framebuffer is residing. the beginning of loop() the code now makes entering the bootloader via the IDE
a lot more reliable.
Also, the memory in the arduino leonardo for 320 LEDs is tight. It tends
to interfere with the bootloader activation since the "Catarina"
Bootloader relies on some values in very specific memory locations to
decide if it starts the main application or not. This value sometimes
gets clobbered by the flame rendering code, in extreme cases it might be
necessary to reflash your leonardo via ISP.
I tried to keep the code clean and have the most important values as I tried to keep the code clean and have the most important values as
defines, so that it can be adjusted to different led layouts. defines, so that it can be adjusted to different led layouts.