Thomas Soëte
4fd552fcaf
Better timings for 160MHz too.
...
Values measured:
@80MHz:
T0H: 337ns, Period: 1.274us
T1H: 687ns, Period: 1.25us
@160MHz:
T0H: 349ns, Period: 1.262us
T1H: 700ns, Period: 1.276us
2015-11-10 22:34:44 +01:00
Thomas Soëte
c2f12a3b05
Better timings for WS2812 (measured 345ns/695ns, instead of 340ns/600ns)
2015-11-08 22:45:12 +01:00
Johny Mattsson
d2ac5f1712
Changed os_intr_xxx to ets_intr_xxx.
...
The os_intr_xxx macros no longer exist in the SDK.
2015-10-12 13:26:04 +11:00
Konrad Beckmann
6538d22d1f
Improved ws2812 implementation
...
- Fixes the "first led problem" (#534 #487 ).
- Adds support for 160MHz mode.
- Optimized timings. Time to write pixels is reduced by about 25%
This is useful when having a large amount of chained LEDs (>500).
2015-07-12 13:43:33 +02:00
vowstar
3430e5f826
Add __attribute__((optimize("O2"))) to ws2812 module.
2015-06-20 01:40:45 +08:00
makefu
c29edf7a22
app/modules/ws2812.c: re-add ws2812.write()
...
Add the original ws2812.write() function which does not scramble the
buffer while preserving the 'new' ws2812.writergb.
With this everybody should be happy again
2015-05-26 23:12:38 +02:00
Wolfram Ladurner
ff85cf4371
fixes issue #321 "ws2812.writergb scrambles buffer" reported by makefu.
...
Don't modify Lua-internal lstring - use a copy instead.
2015-04-05 15:49:32 +02:00
Markus Gritsch
8432e8c8be
Changed the ws2812 byte order from GRB to RGB
...
There seems to be interest in using the more intuitive RGB byte order to
specify the LED color. Also fixed the documentation.
2015-03-03 10:20:02 +01:00
Till Klocke
0bbaedac89
Renamed lgpio_ws2812 to match lua method name and fixed formatting
2015-02-07 07:05:41 +01:00
Till Klocke
284ee8c46e
Added attribution and fixed documentation in comments
2015-02-05 18:47:08 +01:00
Till Klocke
c30002b8df
Fixed typo in method name
2015-02-05 18:43:29 +01:00
Till Klocke
0950e48925
Added support for WS2812 LEDs as a new module
2015-02-05 18:40:46 +01:00