Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DFR0672 Datasheet(PDF) 17 Page - DFROBOT

Part # DFR0672
Description  SKU:DFR0672
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0672 Datasheet(HTML) 17 Page - DFROBOT

Back Button DFR0672 Datasheet HTML 13Page - DFROBOT DFR0672 Datasheet HTML 14Page - DFROBOT DFR0672 Datasheet HTML 15Page - DFROBOT DFR0672 Datasheet HTML 16Page - DFROBOT DFR0672 Datasheet HTML 17Page - DFROBOT DFR0672 Datasheet HTML 18Page - DFROBOT DFR0672 Datasheet HTML 19Page - DFROBOT DFR0672 Datasheet HTML 20Page - DFROBOT DFR0672 Datasheet HTML 21Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 26 page
background image
Invoke gcc compiler. -o means to generate files, and will be followed by the name of generated
file. rgb_effect.c is source program, and -lwiringPi means to use the wiringPi library in
Raspberry Pi.
•
Run the programs
./rgb_effect
Three RGB LEDs display breathing effect in purple at the same time.
•
Code Analysis
1. There are three RGB LEDs on the board, so define the number of LEDs as 3. Define the register
address: RGB_Effect is 0x04, RGB_Speed is 0x05, RGB_Color is 0x06. Declare the necessary
functions.
2. void setRGB(int num, int R, int G, int B) function:
Set RGB LED color. num refers to the LED number: o is the first LED, 1 for the second LED, 2
for the third one. When num is over 3, it means to set all the LEDs. The range of R, G, B is
0~255.



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


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