Lua drawBitmap on X7

This commit is contained in:
Bertrand Songis
2017-08-04 12:08:10 +02:00
committed by Kilrah
parent c82c7ee5db
commit 541aa459cf
7 changed files with 193 additions and 13 deletions
+8
View File
@@ -44,6 +44,8 @@
#define LCD_LINES (LCD_H/FH)
#define LCD_COLS (LCD_W/FW)
#define BITMAP_BUFFER_SIZE(w, h) (2 + (w) * (((h)+7)/8))
/* lcd common flags */
#define BLINK 0x01
@@ -262,6 +264,12 @@ void lcd_imgfar(coord_t x, coord_t y, const uint_farptr_t img, uint8_t idx, LcdF
void lcdClear(void);
void lcdDraw1bitBitmap(coord_t x, coord_t y, const pm_uchar * img, uint8_t idx, LcdFlags att=0);
inline void lcdDrawBitmap(coord_t x, coord_t y, const uint8_t * bitmap)
{
lcdDraw1bitBitmap(x, y, bitmap, 0);
}
uint8_t * lcdLoadBitmap(uint8_t * dest, const char * filename, uint8_t width, uint8_t height);
#if defined(BOOT)
#define BLINK_ON_PHASE (0)