Sansa ClipZip add Display type to debug update comment on LCD controller

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sat, 13 Jun 2026 13:00:29 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit f07e977d7c498e0e6716fb8ea4ea7f92afd7718f
Author: William Wilgus <[email protected]>
Date:   Sat Jun 13 12:56:55 2026 -0400

    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

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)
 {
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs