Skip to content

Commit 9d9d180

Browse files
committed
config.h
kedei_trash.cpp kedei_trash.h
1 parent d25099b commit 9d9d180

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// output new frames at this vsync-detached interval, so there's a 50 Hz vs 60 Hz mismatch that results
3434
// in visible microstuttering. Still, providing this as an option, this might be good for content that
3535
// is known to run at native 60Hz.
36-
// #define USE_GPU_VSYNC
36+
#define USE_GPU_VSYNC
3737

3838
// Always enable GPU VSync on the Pi Zero. Even though it is suboptimal and can cause stuttering, it saves battery.
3939
#if defined(SINGLE_CORE_BOARD)
@@ -164,7 +164,7 @@
164164
// aspect ratio. Enabling this will cause e.g. 16:9 1080p source to be stretched to fully cover
165165
// a 4:3 320x240 display. If disabled, scaling is performed preserving aspect ratio, so letterboxes or
166166
// pillarboxes will be introduced if needed to retain proper width and height proportions.
167-
// #define DISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING
167+
#define DISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING
168168

169169
// If defined, reverses RGB<->BGR color subpixel order. This is something that seems to be display panel
170170
// specific, rather than display controller specific, and displays manufactured with the same controller
@@ -217,7 +217,7 @@
217217

218218
// Which state of the LOW_BATTERY_PIN is considered to be low battery. Note that the GPIO pin must be
219219
// in the correct state (input with pull-up/pull-down resistor) before the program is started.
220-
#define LOW_BATTERY_IS_ACTIVE_HIGH 0
220+
#define LOW_BATTERY_IS_ACTIVE_HIGH 1
221221

222222
// Polling interval (in micro-second) for the low battery pin.
223223
#define LOW_BATTERY_POLLING_INTERVAL 1000000

kedei_trash.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void lcd_data(uint16_t data) {
6161
static char b1[3] = { 0, 0, 0x15 }, b2[2] = { 0, 0x1f};
6262
*(uint16_t *)b1 = data;
6363
// printf("%02x", b1[1]);
64-
// printf("%02x,", b1[0]);
64+
// printf("%02x.", b1[0]);
6565
spi_write2(b1, b2);
6666
}
6767

@@ -376,8 +376,8 @@ void InitKeDeiTrash()
376376
{
377377
spi_open();
378378
lcd_init();
379-
lcd_fill(0xfff);
380-
ClearScreen();
379+
// lcd_fill(0xfff);
380+
// ClearScreen();
381381
}
382382

383383
void DeinitSPIDisplay()

kedei_trash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#define DISPLAY_SET_CURSOR_Y 0x2B
1010
#define DISPLAY_WRITE_PIXELS 0x2C
1111

12-
#define DISPLAY_NATIVE_WIDTH 320
13-
#define DISPLAY_NATIVE_HEIGHT 480
12+
#define DISPLAY_NATIVE_WIDTH 480
13+
#define DISPLAY_NATIVE_HEIGHT 320
1414

1515
// #define SPI_3WIRE_PROTOCOL
1616
// #define GPIO_TFT_DATA_CONTROL 10

0 commit comments

Comments
 (0)