MCPcopy Create free account
hub / github.com/cbm80amiga/Arduino_ST7789_Fast / setBrightness

Method setBrightness

Arduino_ST7789_Fast.cpp:608–621  ·  view source on GitHub ↗

---------------------------------------------------------- doesn't work

Source from the content-addressed store, hash-verified

606// ----------------------------------------------------------
607// doesn't work
608void Arduino_ST7789::setBrightness(uint8_t br)
609{
610 //writeCmd(ST7789_WRCACE);
611 //writeData(0xb1); // 80,90,b0, or 00,01,02,03
612 //writeCmd(ST7789_WRCABCMB);
613 //writeData(120);
614
615 //BCTRL=0x20, dd=0x08, bl=0x04
616 int val = 0x04;
617 writeCmd(ST7789_WRCTRLD);
618 writeData(val);
619 writeCmd(ST7789_WRDISBV);
620 writeData(br);
621}
622
623// ----------------------------------------------------------
624// 0 - off

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected