From 2fe25e584f97bdda3e029cb02b909b1dd0fb2626 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 8 Apr 2022 00:15:32 +0200 Subject: [PATCH] fw-rust: Configure display temperature curve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set the temperature compensation curve to -0.11%/°C. --- firmware/rust/src/lcd.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/rust/src/lcd.rs b/firmware/rust/src/lcd.rs index b088996..9c77a19 100644 --- a/firmware/rust/src/lcd.rs +++ b/firmware/rust/src/lcd.rs @@ -35,6 +35,8 @@ impl Lcd { 0xEE, // (18) Reset Cursor Update Mode 0x81, // (9) Set Electronic Volume: Set Contrast nb::block!(eeprom::read_byte(&CONTRAST)).unwrap(), // (9) Set Electronic Volume: Set Contrast + 0xFA, // (25) Set Adv. Program Control 0: Set Temperature compensation curve to -0.11%/°C + 0x90, // (25) Set Adv. Program Control 0: Set Temperature compensation curve to -0.11%/°C 0xAF, // (12) Set Display Enable: Display on ];