Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

WS2812 Scheda tecnica(PDF) 86 Page - Raspberry Pi Holdings PLC

Il numero della parte WS2812
Spiegazioni elettronici  Created by Phillip Burgess
PDF  98 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  RASPBERRY-PI [Raspberry Pi Holdings PLC]
Homepage  https://www.raspberrypi.com/
Logo RASPBERRY-PI - Raspberry Pi Holdings PLC

WS2812 Scheda tecnica(HTML) 86 Page - Raspberry Pi Holdings PLC

Back Button WS2812 Datasheet HTML 82Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 83Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 84Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 85Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 86Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 87Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 88Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 89Page - Raspberry Pi Holdings PLC WS2812 Datasheet HTML 90Page - Raspberry Pi Holdings PLC Next Button
Zoom Inzoom in Zoom Outzoom out
 86 / 98 page
background image
Once that's done, from your command line run the following command:
sudo pip3 install adafruit-circuitpython-neopixel
If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use
CircuitPython on Python 2.x, it isn't supported!
CircuitPython & Python Usage
To demonstrate the usage of this library with NeoPixel LEDs, we'll use the board's Python REPL.
Run the following code to import the necessary modules and initialise a NeoPixel strip with 30 LEDs. Don't forget to
change the pin if your NeoPixels are connected to a different pin, and change the number of pixels if you have a
different number.
import board
import neopixel
pixels = neopixel.NeoPixel(board.D5, 30)
# Feather wiring!
# pixels = neopixel.NeoPixel(board.D18, 30) # Raspberry Pi wiring!
Now you're ready to light up your NeoPixel LEDs using the following properties:
brightness - The overall brightness of the LED
fill - Color all pixels a given color.
show - Update the LED colors if auto_write is set to False .
For example, to light up the first NeoPixel red:
pixels[0] = (255, 0, 0)
To light up all the NeoPixels green:
pixels.fill((0, 255, 0))
For NeoPixels to work on Raspberry Pi, you must run the code as root! Root access is required to access the
RPi peripherals.
© Adafruit Industries
https://learn.adafruit.com/adafruit-neopixel-uberguide
Page 89 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


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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