Arduino clean LCD Shield with color codes?

我只是一个虾纸丫 提交于 2019-12-13 07:07:51

问题


I thought it would be nice if I could set the background of the LCD Shield with an color code. I found out, that I just need to say lcd.clean(0xANYCOLOR)

But is there another way? Maybe a better way? :P

Code atm:

#include <SparkFunColorLCDShield.h>

LCDShield lcd;

void setup() {
  lcd.init(EPSON);
  lcd.contrast(40);
  lcd.clear(0x0000FF);
}

void loop() {

} 

来源:https://stackoverflow.com/questions/41952838/arduino-clean-lcd-shield-with-color-codes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!