Skip to content

Commit

Permalink
Fix for NeoPixels having the wrong frequency. (Includes Motate ref up…
Browse files Browse the repository at this point in the history
…date for same.)
  • Loading branch information
giseburt committed Aug 31, 2016
1 parent c121c93 commit b88bc8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Motate
4 changes: 3 additions & 1 deletion g2core/device/neopixel/neopixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ struct NeoPixel {
const uint32_t _blue_offset;
const bool _has_white;

Motate::PWMOutputPin<pixel_pin_pumber> _pixel_pin{Motate::kNormal, base_frequency};
Motate::PWMOutputPin<pixel_pin_pumber> _pixel_pin;

// Note: 0 = 1/4 on-time
// 1 = 1/2 on-time
Expand All @@ -397,7 +397,9 @@ struct NeoPixel {
_green_offset{(((uint32_t)_pixel_order >> 2) & 0b11) << 3},
_blue_offset{((uint32_t)_pixel_order & 0b11) << 3},
_has_white{(_white_offset != _red_offset)},
_pixel_pin{Motate::kNormal, base_frequency},
_update_timeout_ms{update_ms} {

_pixel_pin = 0.0; // start at 0
_pixel_pin.stop();

Expand Down

0 comments on commit b88bc8b

Please sign in to comment.