Skip to content

Commit

Permalink
ubuntu: More fixes to get demo-c to build and work
Browse files Browse the repository at this point in the history
cc: @pimvanpelt

CL: ubuntu: More fixes to get demo-c to build and work

PUBLISHED_FROM=e138bdf87a954b564b48399841f2c6770e4a8ad7
  • Loading branch information
Deomid Ryabkov authored and cesantabot committed Feb 19, 2019
1 parent 8b1fc49 commit 7023499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mgos_neopixel.c
Expand Up @@ -83,8 +83,10 @@ void mgos_neopixel_clear(struct mgos_neopixel *np) {
void mgos_neopixel_show(struct mgos_neopixel *np) {
mgos_gpio_write(np->pin, 0);
mgos_usleep(60);
#if MGOS_ENABLE_BITBANG
mgos_bitbang_write_bits(np->pin, MGOS_DELAY_100NSEC, 3, 8, 8, 6, np->data,
np->num_pixels * NUM_CHANNELS);
#endif
mgos_gpio_write(np->pin, 0);
mgos_usleep(60);
mgos_gpio_write(np->pin, 1);
Expand Down

0 comments on commit 7023499

Please sign in to comment.