代码拉取完成,页面将自动刷新
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()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。