Input: sudo raspi-config in terminal
Select: Interfacing Options
Select: I2C; enable I2C
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
make AutomateRoll # Compile and run the sample AutomateRoll.cpp
make Button # Compile and run the sample Button.cpp
make clean # Clear files generated by compilation
One of Grove - LCD RGB Backlight's most important feature is changing the backlight color. It's very simple; just use the folowing function:
void setRGB(int r, int g, int b);
You can clear the display by this function:
void clear();
void noDisplay(); // turn off display
void display(); // turn on display
void stopBlink();
void blink();
void noCursor();
void cursor();
void blinkLED();
void noBlinkLED();
pip3 install smbus
python3 AutomateRoll.py
python3 Button.py
One of Grove - LCD RGB Backlight's most important feature is changing the backlight color. It's very simple; just use the folowing function:
setRGB(r,g,b)
You can clear the display by this function:
clear()
noDisplay() // turn off display
display() // turn on display
stopBlink()
blink()
noCursor()
cursor()
blinkLED()
noBlinkLED()
- @n [Get the module here]
- @n This example Set the volume size and play music snippet.
- @n [Connection and Diagram]
- Copyright DFRobot, 2016
- Copyright GNU Lesser General Public License
- data 2018-1-9
- version V1.0
- author [Luyuhao [email protected]]