SG12864A
Dependents: SG12864A_TestProgram
Diff: SG12864A.h
- Revision:
- 3:86e7fba29623
- Parent:
- 2:91c03e41c927
- Child:
- 4:200d1ea4e76e
--- a/SG12864A.h Tue Jul 20 05:30:47 2010 +0000 +++ b/SG12864A.h Tue Jul 20 07:23:15 2010 +0000 @@ -34,18 +34,30 @@ CS1, CS2 }; + + /* + * High Level Interfaces. (Abstracted) + */ void bufferPush(void); void bufferPull(void); - void bufferClear(void); - void bufferDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2); - void bufferDrawBox(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2); - void bufferFillBox(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2); - void bufferDrawString(const uint8_t x, const uint8_t y, const char * str); - void bufferDrawChar(const uint8_t x, const uint8_t y, const char c); + void bufferClear(bool reverse = false); + void bufferDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, bool reverse = false); + void bufferDrawBox(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, bool reverse = false); + void bufferFillBox(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, bool reverse = false); + void bufferDrawString(uint8_t x, uint8_t y, char * str, bool reverse = false); + void bufferDrawChar(uint8_t x, uint8_t y, char c, bool reverse = false); + void bufferDrawCheckbox(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, bool state, bool reverse = false); + void bufferDrawProgressbar(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, int min, int max, int value, bool horizontal = true, bool reverse = false); + /* + * High Level Interfaces. + */ void reset(void); void clear(void); + /* + * Middle Level Interfaces. + */ void setDisplayOnOff(Target t, bool on); void setDisplayStartLine(Target t, uint8_t displayStartLine); void setPageAddress(Target t, uint8_t addr); @@ -75,6 +87,10 @@ Data, Instruction }; + + /* + * Low Level Interfaces. + */ void setDirectionToRead(); void setDirectionToWrite(); void write(Target t, Mode m, uint8_t c);