Rev 28 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 28 | Rev 46 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | 109 | ||
110 | extern const uint16_t WIDTH; |
110 | extern const uint16_t WIDTH; |
111 | extern const uint16_t HEIGHT; |
111 | extern const uint16_t HEIGHT; |
112 | extern uint8_t display_buffer[MAX_PHYS_DISPLAYS][SSD1306_LCDHEIGHT * SSD1306_LCDWIDTH / 8]; |
112 | extern uint8_t display_buffer[MAX_PHYS_DISPLAYS][SSD1306_LCDHEIGHT * SSD1306_LCDWIDTH / 8]; |
113 | 113 | ||
114 | extern inline uint8_t getRotation(void); |
114 | extern uint8_t getRotation(void); |
115 | extern inline int16_t width(void); |
115 | extern int16_t width(void); |
116 | extern inline int16_t height(void); |
116 | extern int16_t height(void); |
117 | 117 | ||
118 | extern inline void fastSPIwrite(uint8_t d); |
118 | extern void fastSPIwrite(uint8_t d); |
119 | 119 | ||
120 | 120 | ||
121 | /* stolen from AdaFruit class and converted to C */ |
121 | /* stolen from AdaFruit class and converted to C */ |
122 | void ssd1306_begin(uint8_t vccstate, uint8_t i2caddr); |
122 | void ssd1306_begin(uint8_t vccstate, uint8_t i2caddr); |
123 | extern void ssd1306_command(uint8_t c); |
123 | extern void ssd1306_command(uint8_t c); |
Line 134... | Line 134... | ||
134 | extern void startscrolldiagleft(uint8_t start, uint8_t stop); |
134 | extern void startscrolldiagleft(uint8_t start, uint8_t stop); |
135 | extern void stopscroll(void); |
135 | extern void stopscroll(void); |
136 | 136 | ||
137 | extern void dim(uint8_t contrast); |
137 | extern void dim(uint8_t contrast); |
138 | 138 | ||
139 | extern inline void drawPixel(int16_t x, int16_t y, uint16_t color); |
139 | extern void drawPixel(int16_t x, int16_t y, uint16_t color); |
140 | 140 | ||
141 | void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color); |
141 | void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color); |
142 | void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color); |
142 | void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color); |
143 | 143 | ||
144 | 144 |