summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 538c75d08a..48dc3f5693 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -118,6 +118,11 @@
118#define RGB565 565 118#define RGB565 565
119#define RGB565SWAPPED 3553 119#define RGB565SWAPPED 3553
120 120
121/* CONFIG_ORIENTATION */
122#define SCREEN_PORTAIT 0
123#define SCREEN_LANDSCAPE 1
124#define SCREEN_SQUARE 2
125
121/* CONFIG_I2C */ 126/* CONFIG_I2C */
122#define I2C_PLAYREC 1 /* Archos Player/Recorder style */ 127#define I2C_PLAYREC 1 /* Archos Player/Recorder style */
123#define I2C_ONDIO 2 /* Ondio style */ 128#define I2C_ONDIO 2 /* Ondio style */
@@ -251,6 +256,16 @@
251#define CONFIG_RTC 0 256#define CONFIG_RTC 0
252#endif 257#endif
253 258
259#ifndef CONFIG_ORIENTATION
260#if LCD_HEIGHT > LCD_WIDTH
261#define CONFIG_ORIENTATION SCREEN_PORTAIT
262#elif LCD_HEIGHT < LCD_WIDTH
263#define CONFIG_ORIENTATION SCREEN_LANDSCAPE
264#else
265#define CONFIG_ORIENTATION SCREEN_SQUARE
266#endif
267#endif
268
254/* define this in the target config.h to use a different size */ 269/* define this in the target config.h to use a different size */
255#ifndef CONFIG_DEFAULT_ICON_HEIGHT 270#ifndef CONFIG_DEFAULT_ICON_HEIGHT
256#define CONFIG_DEFAULT_ICON_HEIGHT 8 271#define CONFIG_DEFAULT_ICON_HEIGHT 8