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

Driver for WS2812B LEDs #76

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
06f4d0a
Initial commit
Ic-ks Jun 28, 2017
3b2c280
Replaced bit pattern converting algorithm
Ic-ks Jun 28, 2017
8014560
Added comments, variable name refactoring, formatation
Ic-ks Aug 14, 2017
943c4ef
Merge branch 'original-master'
Ic-ks Aug 14, 2017
1a6e170
Added tests:
Ic-ks Aug 17, 2017
cc4546a
Added additional tests
Ic-ks Aug 21, 2017
66c2f1b
Using a map to cache and convert the bit patterns
Ic-ks Aug 28, 2017
1f8a673
Fixed warnings: Reduced all method scopes to the required minimum
Ic-ks Aug 28, 2017
6c40fb5
Replaced Storage interface of TwelveBitIntToBitPatternMapper.java
Ic-ks Aug 29, 2017
d5a8e97
Name refactoring and completion of ColorToBitPatternConverterTest.java
Ic-ks Aug 30, 2017
8414469
Updated README.md and ws2812b-timings.svg
Ic-ks Aug 30, 2017
35aeb68
Merge branch 'original-master'
Ic-ks Aug 30, 2017
52d14f2
Merge branch 'original-master'
Ic-ks Aug 30, 2017
899b21d
Merge remote-tracking branch 'origin/master'
Ic-ks Aug 30, 2017
9e2bb56
Update README.md
Ic-ks Aug 30, 2017
a7e3786
Updated SVGs
Ic-ks Aug 30, 2017
4b24e66
Merge remote-tracking branch 'origin/master'
Ic-ks Aug 30, 2017
c14727d
Update README.md
Ic-ks Aug 30, 2017
e4b45d9
Update README.md
Ic-ks Aug 30, 2017
9839ced
Update README.md
Ic-ks Sep 4, 2017
64bb7ae
Update README.md
Ic-ks Sep 5, 2017
2d21d5f
Updated compileSdkVersion, minSdkVersion, targetSdkVersion and buildT…
Ic-ks Sep 9, 2017
0bd5ba6
Updated support-annotations library to 26.1.0
Ic-ks Sep 17, 2017
64eabee
Update README.md
Ic-ks Sep 18, 2017
8bb4a72
Merge branch 'original-master'
Ic-ks Oct 9, 2017
dae568a
Update README.md
Ic-ks Oct 9, 2017
d567e9a
Update README.md
Ic-ks Oct 9, 2017
ed0eb24
Fixed a unit test bug and unit test refactoring
Ic-ks Oct 11, 2017
1fd826b
Merge remote-tracking branch 'origin/master'
Ic-ks Oct 11, 2017
0b687fc
Update README.md
Ic-ks Oct 12, 2017
6efc128
Update README.md
Ic-ks Oct 12, 2017
22bae36
Update README.md
Ic-ks Oct 13, 2017
6bee650
Update README.md
Ic-ks Oct 13, 2017
13c9221
Update README.md
Ic-ks Oct 13, 2017
c395031
Update README.md
Ic-ks Oct 13, 2017
bc23345
Improve README and SVG images.
bert2 Oct 15, 2017
34ccd6e
Merge pull request #2 from bert2/master
Ic-ks Oct 15, 2017
94dbdb9
Update README.md
Ic-ks Oct 15, 2017
4da9d60
Auto stash before merge of "master" and "origin/master"
Ic-ks Oct 15, 2017
3d10410
Updated buildToolsVersion
Ic-ks Oct 15, 2017
c582583
Downgrade of compileSdkVersion, buildToolsVersion, minSdkVersion to 24
Ic-ks Oct 15, 2017
7ef19f5
Merge branch 'androi-26-update'
Ic-ks Oct 15, 2017
bb7b936
Added and changed uses-library's android:required field in AndroidMa…
Ic-ks Nov 20, 2017
37d29b8
Changed scope of the ColorChannelSequence class to public to allow a …
Ic-ks Nov 20, 2017
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
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
Ic-ks committed Oct 15, 2017
commit 94dbdb9abd05b0092d97749df57356ac5ebebc78
2 changes: 1 addition & 1 deletion ws2812b/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ In order to control WS2812B LEDs via the SPI, we must find two assemblies of bit
<img align="center" src="https://rawgit.com/Ic-ks/contrib-drivers/master/ws2812b/ws2812b-bit-pattern.svg"/>
</p>

The deviation from the WS2812B specified pulse duration is -16 ns and +17 ns respectively, which is within the allowed range of +/- 150 ns. It is possible to create a more accurate bit pattern with more than 3 bits, but increasing the size of the bit pattern als reduces the number of controllable LEDs as the fixed-size SPI buffer fills up more quickly. The appropriate frequency is defined by the duration of 1 bit (417 ns):
The deviation from the WS2812B specified pulse duration is -16 ns and +17 ns respectively, which is within the allowed range of +/- 150 ns. It is possible to create a more accurate bit pattern with more than 3 bits, but increasing the size of the bit pattern also reduces the number of controllable LEDs as the fixed-size SPI buffer fills up more quickly. The appropriate frequency is defined by the duration of 1 bit (417 ns):

<p align="center">
<img align="center" src="http://latex.codecogs.com/gif.latex?f%3D%5Cfrac%7B1%20%7D%7B417%20%5Ccdot%2010%5E%7B-9%7D%7DHz"/>
Expand Down