Draw shape functions draw directly to matrix. #76

Closed
opened 2019-04-04 17:14:00 +01:00 by kieran-boyle · 1 comment
kieran-boyle commented 2019-04-04 17:14:00 +01:00 (Migrated from github.com)

The draw functions from FastLED_GFX.h (e.g. DrawRectangle, DrawLine, ect.) directly affect the matrix via X,Y bypassing the setLEDs function.
this causes an issue as we are unable to address the matrix directly with our other patterns (hence the use of a CRGB array, CRGB leds[NUM_LEDS]; )
as such setLEDs is called in loop, and would override the pattern called by any use of draw functions.
Proposed initial solution.
for now i will wrap the setLED function call, from loop, in an if statement, checking that the pattern number is bellow where i add patterns that use the alternate addressing method.
this will ensure that interference doesn't occur, however is not an ideal solution as it is another variable to track when adding patterns.
Will look into a better solution. this is here mainly for my reference.

The draw functions from FastLED_GFX.h (e.g. DrawRectangle, DrawLine, ect.) directly affect the matrix via X,Y bypassing the setLEDs function. this causes an issue as we are unable to address the matrix directly with our other patterns (hence the use of a CRGB array, CRGB leds[NUM_LEDS]; ) as such setLEDs is called in loop, and would override the pattern called by any use of draw functions. Proposed initial solution. for now i will wrap the setLED function call, from loop, in an if statement, checking that the pattern number is bellow where i add patterns that use the alternate addressing method. this will ensure that interference doesn't occur, however is not an ideal solution as it is another variable to track when adding patterns. Will look into a better solution. this is here mainly for my reference.
kieran-boyle commented 2019-04-04 20:38:31 +01:00 (Migrated from github.com)

closed ref commit notes of 6432de4

closed ref commit notes of 6432de4
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
squatnet/ArduinoStuff#76
No description provided.