From f07e977d7c498e0e6716fb8ea4ea7f92afd7718f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 13 Jun 2026 12:56:55 -0400 Subject: [PATCH] Sansa ClipZip add Display type to debug update comment on LCD controller display display type 0 / 1 in debug menu update the comment on type 1 lcd I believe it to be a LDT LD7134 controller the commands match up down to the gamma correction tables Change-Id: Ic5d1d8db994a022a61db4a83a9f476cfafbcf51b --- firmware/target/arm/as3525/debug-as3525.c | 4 ++++ firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index bc1aa05998..3822bae597 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c @@ -330,6 +330,10 @@ bool dbg_hw_info(void) defined(SANSA_CLIPZIP) lcd_putsf(x, line++, "AMSv2 variant %d", amsv2_variant); #endif +#if defined(SANSA_CLIPZIP) + lcd_putsf(x, line++, "Display type %d", GPIOB_PIN(3) ? 1 : 0); +#endif + } while(dbg_btn(&done, &x)) { diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c index 3d0f16647b..1b4ce3f05c 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c @@ -177,7 +177,7 @@ static void lcd_write_nibbles(uint8_t val) } /* Initialises lcd type 1 - * This appears to be a Visionox OLED display, with an unknown controller + * This appears to be a Visionox OLED display, with a LDT LD7134 controller */ static void lcd_init_type1(void) {