Arduino clean LCD Shield with color codes?

2019-09-10 00:09发布

问题:

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() {

} 
标签: c arduino