diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2019-08-04 11:02:33 -0400 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2019-08-04 11:02:33 -0400 |
| commit | 3cf9a475b99090d72b9992816808cbde309dcc40 (patch) | |
| tree | d476dc6c65227e3beb5bd0d362849dcf9198f141 /shared-module/_pixelbuf | |
| parent | 5c08182c731a0f341b6ee61b2433f91063552464 (diff) | |
fix 'white' byte for dotstars
Diffstat (limited to 'shared-module/_pixelbuf')
| -rw-r--r-- | shared-module/_pixelbuf/PixelBuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/_pixelbuf/PixelBuf.c b/shared-module/_pixelbuf/PixelBuf.c index b7cdef483..e26f05ac3 100644 --- a/shared-module/_pixelbuf/PixelBuf.c +++ b/shared-module/_pixelbuf/PixelBuf.c @@ -47,11 +47,11 @@ void pixelbuf_set_pixel(uint8_t *buf, uint8_t *rawbuf, float brightness, mp_obj_ if (MP_OBJ_IS_INT(item)) { uint8_t *target = rawbuf ? rawbuf : buf; pixelbuf_set_pixel_int(target, mp_obj_get_int_truncated(item), byteorder); - if (dotstar) { + if (dotstar) { buf[0] = DOTSTAR_LED_START_FULL_BRIGHT; if (rawbuf) rawbuf[0] = DOTSTAR_LED_START_FULL_BRIGHT; - } + } if (rawbuf) { buf[byteorder->byteorder.r] = rawbuf[byteorder->byteorder.r] * brightness; buf[byteorder->byteorder.g] = rawbuf[byteorder->byteorder.g] * brightness; |
