Skip to content

Commit

Permalink
protected access for _lcd_capable, readReg32()
Browse files Browse the repository at this point in the history
  • Loading branch information
prenticedavid committed Apr 20, 2017
1 parent 5102071 commit 9b288c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MCUFRIEND_kbv.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class MCUFRIEND_kbv : public Adafruit_GFX {
virtual void invertDisplay(boolean i);

uint16_t readReg(uint16_t reg, int8_t index=0);
uint32_t readReg32(uint16_t reg);
int16_t readGRAM(int16_t x, int16_t y, uint16_t *block, int16_t w, int16_t h);
uint16_t readPixel(int16_t x, int16_t y) { uint16_t color; readGRAM(x, y, &color, 1, 1); return color; }
void setAddrWindow(int16_t x, int16_t y, int16_t x1, int16_t y1);
Expand All @@ -44,9 +43,13 @@ class MCUFRIEND_kbv : public Adafruit_GFX {
void pushColors(const uint8_t *block, int16_t n, bool first, bool bigend = false);
void vertScroll(int16_t top, int16_t scrollines, int16_t offset);

protected:
uint32_t readReg32(uint16_t reg);
uint32_t readReg40(uint16_t reg);
uint16_t _lcd_xor, _lcd_capable;

private:
uint16_t _lcd_ID, _lcd_rev, _lcd_madctl, _lcd_drivOut, _MC, _MP, _MW, _SC, _EC, _SP, _EP;
uint16_t _lcd_xor, _lcd_capable;
};

#endif

0 comments on commit 9b288c8

Please sign in to comment.