Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NeoPixel/WS2812B timing. #47

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions inc/WS2812B.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ DEALINGS IN THE SOFTWARE.

#define WS2812B_BUFFER_SIZE 256
#define WS2812B_PAD (0x8000)
#define WS2812B_LOW (0x8000 | 6)
#define WS2812B_HIGH (0x8000 | 10)
#define WS2812B_PWM_FREQ 500000
#define WS2812B_LOW (0x8000 | 5) // 320ns
#define WS2812B_HIGH (0x8000 | 12) // 760ns
#define WS2812B_PWM_FREQ 800000
#define WS2812B_ZERO_PADDING 50

/**
Expand Down Expand Up @@ -128,4 +128,4 @@ namespace codal
void _play(const void *data, int length, bool mode);
};
}
#endif
#endif