diff options
Diffstat (limited to 'boards/addons/gdisp/board_SSD1351_teensy.h')
-rw-r--r-- | boards/addons/gdisp/board_SSD1351_teensy.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/boards/addons/gdisp/board_SSD1351_teensy.h b/boards/addons/gdisp/board_SSD1351_teensy.h new file mode 100644 index 00000000..92a8ba4f --- /dev/null +++ b/boards/addons/gdisp/board_SSD1351_teensy.h @@ -0,0 +1,35 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +extern void ssd1351_init_board(void); +extern void ssd1351_setpin_reset(int state); +extern void ssd1351_acquire_bus(void); +extern void ssd1351_release_bus(void); +extern void ssd1351_write_cmd(unsigned char index); +extern void ssd1351_write_data(unsigned char data); + +#define init_board(g) ssd1351_init_board() +#define post_init_board(g) +#define setpin_reset(g, s) ssd1351_setpin_reset(s) +#define set_backlight(g, p) +#define acquire_bus(g) ssd1351_acquire_bus() +#define release_bus(g) ssd1351_release_bus() +#define write_cmd(g, i) ssd1351_write_cmd(i) +#define write_data(g, d) ssd1351_write_cmd(d) + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* _GDISP_LLD_BOARD_H */ |