Skip to content

Commit

Permalink
config.h
Browse files Browse the repository at this point in the history
kedei_trash.cpp
kedei_trash.h
  • Loading branch information
meesokim committed Jan 31, 2023
1 parent d25099b commit 9d9d180
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// output new frames at this vsync-detached interval, so there's a 50 Hz vs 60 Hz mismatch that results
// in visible microstuttering. Still, providing this as an option, this might be good for content that
// is known to run at native 60Hz.
// #define USE_GPU_VSYNC
#define USE_GPU_VSYNC

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

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

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

// Polling interval (in micro-second) for the low battery pin.
#define LOW_BATTERY_POLLING_INTERVAL 1000000
Expand Down
6 changes: 3 additions & 3 deletions kedei_trash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void lcd_data(uint16_t data) {
static char b1[3] = { 0, 0, 0x15 }, b2[2] = { 0, 0x1f};
*(uint16_t *)b1 = data;
// printf("%02x", b1[1]);
// printf("%02x,", b1[0]);
// printf("%02x.", b1[0]);
spi_write2(b1, b2);
}

Expand Down Expand Up @@ -376,8 +376,8 @@ void InitKeDeiTrash()
{
spi_open();
lcd_init();
lcd_fill(0xfff);
ClearScreen();
// lcd_fill(0xfff);
// ClearScreen();
}

void DeinitSPIDisplay()
Expand Down
4 changes: 2 additions & 2 deletions kedei_trash.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#define DISPLAY_SET_CURSOR_Y 0x2B
#define DISPLAY_WRITE_PIXELS 0x2C

#define DISPLAY_NATIVE_WIDTH 320
#define DISPLAY_NATIVE_HEIGHT 480
#define DISPLAY_NATIVE_WIDTH 480
#define DISPLAY_NATIVE_HEIGHT 320

// #define SPI_3WIRE_PROTOCOL
// #define GPIO_TFT_DATA_CONTROL 10
Expand Down

0 comments on commit 9d9d180

Please sign in to comment.