Difference: NeoPixel (10 vs. 11)

Revision 112022-03-03 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="MecrispCubeF405"
%DASHBOARD{ section="banner"
Changed:
<
<
image="/twiki/pub/Cosmac/ForthSTM32WB/nucleo-header.jpg"
>
>
image="%PU<blockquoteBURLPATH%/Cosmac/ForthSTM32WB/nucleo-header.jpg"
  title="Neopixel" titlestyle="color:#F00000;" }%
Changed:
<
<
Intro
>
>
Intro
https://en.wikipedia.org/wiki/Adafruit_Industries#NeoPixel
NeoPixel is Adafruit's brand of individually addressable red-green-blue (RGB) LED. They are based on the WS2812 LED and WS2811 driver, where the WS2811 is integrated into the LED, for reduced footprint. Adafruit manufactures several products with NeoPixels with form factors such as strips, rings, matrices, Arduino shields, traditional five-millimeter cylinder LED and individual NeoPixel with or without a PCB. The control protocol for NeoPixels is based on only one communication wire.
 
Changed:
<
<
Contents
>
>
Contents
 

How To Use

Changed:
<
<

Single Pixel

>
>

Single Pixel

  The Adafruit Feather STM32F405 Board has its own Neopixel (GPIO PC0, D8) :

Line: 38 to 40
 $ff0000 neopixel! \ red LED 100 % brightness
Changed:
<
<

Neopixel Wing with 32 Pixels

>
>

Neopixel Wing with 32 Pixels

 NeoPixelWing uses the D6 as datapin for the Neopixels:
3 6 dmod                       \ D6 output

Line: 58 to 60
 

Deleted:
<
<

NeoPixel Wing

 
Changed:
<
<
2945-01.jpg

3 6 dmod                       \ D6 output
32 cells buffer: pixelbuffer    \ create buffer for the neopixels
$ff0000 pixelbuffer !            \ 1st Neopixel red
$00ff00 pixelbuffer 1 cells + !   \ 2nd Neopixel green
$0000ff pixelbuffer 2 cells + !    \ 3th Neopixel blue
$7f7f7f pixelbuffer 3 cells + !     \ 4th Neopixel white 50 %
pixelbuffer 4 neopixels

create pixels 
$010000 , $020000 , $040000 , $080000 , $100000 , $200000 , $400000 , $800000 , \ 1st row red
$008000 , $004000 , $002000 , $001000 , $000800 , $000400 , $000200 , $000100 , \ 2nd row green
$000001 , $000002 , $000004 , $000008 , $000010 , $000020 , $000040 , $000080 , \ 3th row blue
$808080 , $404040 , $202020 , $101010 , $080808 , $040404 , $020202 , $010101 , \ 4th row white
pixels 32 neopixels

>
>
 

Implementation

Timing

Line: 224 to 194
 
Deleted:
<
<
 
Deleted:
<
<

 
Added:
>
>
 
Added:
>
>
-- Peter Schmid - 2022-03-03
 
Changed:
<
<

NeoPixel

>
>
Creative Commons License
This work by Peter Schmid is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
 
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback