Commit Graph

168 Commits

Author SHA1 Message Date
Will Miles
dcba1aad10 PolyBus: Clarify use of clock_kHz
While not used by most bus types, it's not an optional parameter.
2024-11-27 09:05:10 -05:00
Will Miles
acc8b9cdbc BusDigital::begin: Pass clock rate argument
Fixes bug introduced by #4312.
2024-11-27 09:00:25 -05:00
Damian Schneider
0a05611e1d more improvements to setPixelColor
- code is a bit cleaner and faster as well
- chaning array access to pointer access in bus_manager makes it a few instructions faster
- changed getNumberOfPins and getNumberOfChannels to return 32bit values, saving the unnecessary 8bit conversion
2024-11-26 20:59:36 +01:00
Will Miles
d53d7aa2e2 Defer calling begin() on digital buses
NeoPixelBus requires that all parallel I2S bus members be constructed
before any of them call Begin().  Implement this by deferring the
call to the end of bus construction.

Fixes #4301.
2024-11-23 12:34:06 -05:00
Will Tatam
d320c4650d HUB75 - use CHAIN_BOTTOM_LEFT_UP when panel width count and panel height count are set 2024-11-14 19:21:35 +00:00
Will Tatam
de8a3666ec HUB75 - lower color depth for larger panels 2024-10-10 22:27:41 +01:00
Will Tatam
f1b9952bf9 HUB75 - Support BGR color order 2024-10-04 20:21:30 +01:00
Will Tatam
c356846d90 HUB75 - fix hasRGB and missing override 2024-10-04 19:10:53 +01:00
Will Tatam
f7b8828deb HUB75 - code formatting 2024-10-04 19:01:27 +01:00
Will Tatam
4276671538 HUB75 - Remove hot from show 2024-10-04 18:59:08 +01:00
Will Tatam
5b86c67a98 Error for ESP8266 and hub75 2024-10-04 18:57:59 +01:00
Will Miles
cb8dae1ddb PWM: Revert always apply dead time 2024-09-29 10:13:19 -04:00
Will Miles
59deebc961 Improve PWM on ESP8266
- Better phase updates without dropping samples
- Make second pin duty cycle always after first, even inverted
2024-09-29 10:00:27 -04:00
Will Miles
fe4b668107 Slightly reduce PWM jankiness 2024-09-28 23:12:03 -04:00
Will Miles
cc87b32206 Support PWM phase shifts on ESP8266
Use the phase-locked soft PWM from the Arduino core to implement the
same PWM phase management as ESP32s are using.  The soft PWM code is
vendored in, as it was previously, to add the NMI workaround from #4035.

Completes #4034
2024-09-28 23:07:28 -04:00
Damian Schneider
7c0fe1285a updated setPixelColor() and getPixelColor() functions
uint16_t to unsigned to make it consisten throughout the hand-down.
colorFromPaletteWLED now returns uint32_t which saves the conversion to CRGB and back to uint32_t (in most uses at least).
also added (preliminary) CRGBW struct. I tried to use it in place of uint32_t colors but it adds a lot of overhead when passing the struct so reverted to uint32_t in most places.
updated a few FX to use the CRGBW struct and also cleaned some code to improve flash useage.
2024-09-28 15:26:14 +02:00
Will Tatam
8632a0a6ec Hub75 - use actual panel config values 2024-09-22 16:22:30 +01:00
Will Tatam
e111b6e1b7 Hub75 - PIN_COUNT const 2024-09-22 15:53:40 +01:00
Will Tatam
713cbb81b8 Merge branch '0_15' into HUB75-AC 2024-09-22 15:12:37 +01:00
Will Tatam
fc0739703b cleanup hub75 comments 2024-09-22 13:14:35 +01:00
Will Tatam
23e578bfbf Swap BusHub75Matrix to use allocateMultiplePins 2024-09-22 12:59:29 +01:00
Blaz Kristan
bd7cd32f91 Add mandatory refresh capability to remove type dependency. 2024-09-22 13:56:14 +02:00
Blaz Kristan
b50e6e0d90 Static PinManager & UsermodManager
- saves a few bytes of flash
2024-09-19 21:44:11 +02:00
Blaz Kristan
6a188033c6 Merge branch '0_15' into compile_different_busses 2024-09-14 09:27:37 +02:00
Blaž Kristan
6169c458bf Remove void 2024-09-12 08:48:31 +02:00
PaoloTK
c5435ec1fa Merge remote-tracking branch 'AC/bus-config' into compile_different_busses 2024-09-11 23:04:37 +02:00
Will Tatam
ad402adf7a Hub75 - Misc fixes - WiP 2024-09-08 19:58:37 +01:00
Will Tatam
21c582ee1a Porting latest BusHub75Matrix from MoonModules - Mostly authored by Frank - MIT licence granted for this copy 2024-09-08 17:45:28 +01:00
Will Tatam
e0d78d5328 Porting latest BusHub75Matrix from MoonModules - Mostly authored by Frank - MIT licence granted for this copy 2024-09-08 17:36:39 +01:00
Will Tatam
e185f2eaf6 Hub75 compact pin defintion 2024-09-08 14:11:34 +01:00
Will Tatam
78fb9dcc59 Cleanup mxconfig.chain_length 2024-09-08 13:39:38 +01:00
Will Tatam
e066b502c3 hub75 - remove hard coded panel sizes 2024-09-08 13:33:34 +01:00
Will Tatam
e94943d505 Assign proper type ID for Hub75 2024-09-08 13:05:20 +01:00
Will Tatam
ecd46f2f06 Swap to new way to have dynamic LED types list 2024-09-07 20:29:43 +01:00
Will Tatam
74f77a7e8a Merge branch 'bus-config' into HUB75-AC 2024-09-07 20:06:56 +01:00
Blaz Kristan
ac689a9a2e Remove array, un-inline calculateCCT 2024-09-06 12:19:04 +02:00
Blaz Kristan
9cc333b2bd Move LED types to individual bus type
- (credit @netmindz & @willmmiles)
Tuning.
2024-09-05 21:49:27 +02:00
Blaz Kristan
092a5a1ca3 Unsigned fix 2024-09-04 20:54:44 +02:00
Damian Schneider
d3c31c52a2 found a better way of deadTime subtraction, fixed inverted signals 2024-09-04 18:03:52 +02:00
Blaz Kristan
b1e58dd10d Optimisations
- renamed variables
- some tuning
2024-09-03 22:28:21 +02:00
Damian Schneider
2cc0aceac7 Bugfixes
- fixed maxBri value
- fixed overflow in dead time subtraction
- deadtime and offset now also work if signals are inverted (_reversed)
2024-09-03 19:14:50 +02:00
Damian Schneider
be7475fe66 bugfixes, removed debug printout 2024-09-02 22:06:46 +02:00
Damian Schneider
85e2f7eb34 fixed offsets and inverted signal plus dead time 2024-09-02 17:53:15 +02:00
Blaz Kristan
a3b28871c6 Dirty fix for newer framework 2024-09-01 12:27:41 +02:00
Blaz Kristan
2ca034bfa8 Remove ledc_set_duty_and_update
Add semaphoring
Determine CCT overlap
2024-09-01 11:43:22 +02:00
Blaz Kristan
0d035a08d6 Dithering support & bugfix in UI
Thanks to @dedehai & @zalatnaicsongor
2024-08-30 15:21:16 +02:00
PaoloTK
6655e2664e rebase to bus-config 2024-08-29 13:18:48 +02:00
Blaz Kristan
c51ce2eec7 Fix C/P error
Clarifications
2024-08-27 21:57:00 +02:00
Blaz Kristan
b2e00eb868 Introduce network type (previous virtual)
- phase shifting correction (limit to PWM CCT)
2024-08-27 14:11:56 +02:00
Blaz Kristan
820df0c596 PinManager update
- LEDC: allocate same timer for CCT PWM
- use SOC constants
BusManager update
- use allocateMultiplePins for BusPwm
2024-08-27 00:21:24 +02:00