[ACT] Remaining LCD260
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ void lcd_clear()
|
||||
void lcd_img(xcoord_t x, uint8_t y, const pm_uchar * img, uint8_t idx, LcdFlags att)
|
||||
{
|
||||
const pm_uchar *q = img;
|
||||
#if defined(LCD260)
|
||||
#if LCD >= 260
|
||||
xcoord_t w = pgm_read_byte(q++);
|
||||
if (w == 255) w += pgm_read_byte(q++);
|
||||
#else
|
||||
|
||||
@@ -34,29 +34,29 @@
|
||||
#ifndef lcd_h
|
||||
#define lcd_h
|
||||
|
||||
#if defined(LCD260)
|
||||
#define DISPLAY_W 260
|
||||
#define DISPLAY_H 75
|
||||
#define xcoord_t uint16_t
|
||||
#define CENTER "\015"
|
||||
#define CENTER_OFS (7*FW-FW/2)
|
||||
#if LCD >= 260
|
||||
#define DISPLAY_W 260
|
||||
#define DISPLAY_H 75
|
||||
#define xcoord_t uint16_t
|
||||
#define CENTER "\015"
|
||||
#define CENTER_OFS (7*FW-FW/2)
|
||||
#elif LCD >= 212
|
||||
#define DISPLAY_W 212
|
||||
#define DISPLAY_H 64
|
||||
#define xcoord_t uint16_t
|
||||
#define CENTER "\015"
|
||||
#define CENTER_OFS (7*FW-FW/2)
|
||||
#define DISPLAY_W 212
|
||||
#define DISPLAY_H 64
|
||||
#define xcoord_t uint16_t
|
||||
#define CENTER "\015"
|
||||
#define CENTER_OFS (7*FW-FW/2)
|
||||
#else
|
||||
#define DISPLAY_W 128
|
||||
#define DISPLAY_H 64
|
||||
#define xcoord_t uint8_t
|
||||
#define DISPLAY_W 128
|
||||
#define DISPLAY_H 64
|
||||
#define xcoord_t uint8_t
|
||||
#define CENTER
|
||||
#define CENTER_OFS 0
|
||||
#define CENTER_OFS 0
|
||||
#endif
|
||||
|
||||
#define FW 6
|
||||
#define FWNUM 5
|
||||
#define FH 8
|
||||
#define FW 6
|
||||
#define FWNUM 5
|
||||
#define FH 8
|
||||
|
||||
/* lcd common flags */
|
||||
#define BLINK 0x01
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ PACK(typedef struct t_FrSkyRSSIAlarm {
|
||||
int8_t value:6;
|
||||
}) FrSkyRSSIAlarm;
|
||||
|
||||
#if LCD >= 212 || defined(LCD260)
|
||||
#if LCD >= 212
|
||||
enum MainViews {
|
||||
VIEW_INPUTS,
|
||||
VIEW_SWITCHES,
|
||||
|
||||
Reference in New Issue
Block a user