Merge branch 'ST7735_fixes' of kapacuk/uGFX into master

This commit is contained in:
Joel Bodenmann 2018-06-20 14:42:27 +02:00 committed by Gogs
commit ee4654b077

View File

@ -74,7 +74,7 @@
#endif #endif
#include "drivers/gdisp/ST7735/ST7735.h" #include "drivers/gdisp/ST7735/st7735.h"
// Some common routines and macros // Some common routines and macros
#define dummy_read(g) { volatile uint16_t dummy; dummy = read_data(g); (void) dummy; } #define dummy_read(g) { volatile uint16_t dummy; dummy = read_data(g); (void) dummy; }
@ -82,7 +82,7 @@
// Serial write data for fast fill. // Serial write data for fast fill.
#ifndef write_data_repeat #ifndef write_data_repeat
#define write_data_repeat(g, data, count) { int i; for (i = 0; i < count; ++i) write_data (g, data) } #define write_data_repeat(g, data, count) { int i; for (i = 0; i < count; ++i) write_data (g, data); }
#endif #endif
// Commands list copied from https://github.com/adafruit/Adafruit-ST7735-Library // Commands list copied from https://github.com/adafruit/Adafruit-ST7735-Library
@ -304,7 +304,7 @@ LLDSPEC void gdisp_lld_control(GDisplay *g) {
case powerOff: case powerOff:
acquire_bus(g); acquire_bus(g);
// not implemented // not implemented
release_bus(); release_bus(g);
set_backlight(g, 0); set_backlight(g, 0);
break; break;
case powerSleep: case powerSleep: