Electronic Components Datasheet Search
  English  ▼

X  

WS2812 Datasheet(PDF) 68 Page - Raspberry Pi Holdings PLC

Part # WS2812
Description  Created by Phillip Burgess
PDF  98 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RASPBERRY-PI [Raspberry Pi Holdings PLC]
Direct Link  https://www.raspberrypi.com/
Logo RASPBERRY-PI - Raspberry Pi Holdings PLC

WS2812 Datasheet(HTML) 68 Page - Raspberry Pi Holdings PLC

Back Button WS2812 Datasheet HTML 64Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 65Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 66Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 67Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 68Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 69Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 70Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 71Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 72Page - Raspberry Pi Holdings PLC Next Button
Zoom Inzoom in Zoom Outzoom out
 68 / 98 page
background image
Now the first pixel is at the top right. Pixels increment top-to-bottom — it’s now column major. The order of the
columns is still progressive though.
We declare the matrix thusly:
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 8, 6,
NEO_MATRIX_TOP
+ NEO_MATRIX_RIGHT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
NEO_GRB
+ NEO_KHZ800);
The first two arguments — 5 and 8 — are the width and height of the matrix, in pixels. The third argument — 6 — is the
pin number to which the NeoPixels are connected. On the shield this is hard-wired to digital pin 6, but standalone
matrices are free to use other pins.
The next argument is the interesting one. This indicates where the first pixel in the matrix is positioned and the
arrangement of rows or columns. The first pixel must be at one of the four corners;
which corner is indicated by adding
either NEO_MATRIX_TOP or NEO_MATRIX_BOTTOM to either NEO_MATRIX_LEFT or NEO_MATRIX_RIGHT. The
row/column arrangement is indicated by further adding either NEO_MATRIX_COLUMNS or NEO_MATRIX_ROWS to
either NEO_MATRIX_PROGRESSIVE or NEO_MATRIX_ZIGZAG. These values are all added to form a single value as in
the above code.
NEO_MATRIX_TOP + NEO_MATRIX_RIGHT + NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE
© Adafruit Industries
https://learn.adafruit.com/adafruit-neopixel-uberguide
Page 71 of 101



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com