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(doc): markdown syntax #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WS2812B_STM32_Libmaple
WS2812B (Neopixel) library for Arduino STM32 (Libmaple core)

Written by Roger Clark www.rogerclark.net, from first principals
> Written by Roger Clark www.rogerclark.net, from first principals

This library uses SPI DMA to control a strip of WS2812B (NeoPixel) LEDS

Expand All @@ -16,7 +16,7 @@ frequence on the STM32 SPI to generate the correct width T0H pulse, of 400ns +/-
SPI DIV32 gives a pulse width of 444nS which is well within spec for the WS2812B but
is probably too long for the WS2812 which needs a 350ns pulse for T0H

##Technical details
## Technical details

The library uses SPI to send the mark/space encoded data to the LED's

Expand All @@ -32,13 +32,12 @@ This method results in the smallest storage requirement and the fastest send tim
however because the 8 bit pixel channel data is encoded in 24 bits, (3 bytes) the values required in each of the 3 bytes to represent
a specific value is not easy to generate.

The bit pattern in the 3 bytes is
88877766 65554443 33222111
The bit pattern in the 3 bytes is: `88877766 65554443 33222111`

For speed of operation the values reqired for each byte for each of the 256 possible values is held in 3 separate 256 byte LUTS
which were pre-computed by this function (which generates the full 24 bit pattern for a given input value (0-255)

```
```c
uint32_t convert(uint8_t data)
{
uint32_t out=0;
Expand Down