From b5c61fca44611db9316832d4af91ac5916a456a9 Mon Sep 17 00:00:00 2001 From: pvvx Date: Sun, 28 May 2023 18:55:51 +0300 Subject: [PATCH] https://github.com/pvvx/ATC_MiThermometer/issues/339#issuecomment-1566161613 --- MHO_C122_v43.bin | Bin 80692 -> 80692 bytes src/lcd_mho_c122.c | 66 ++++++++++++++++++++++++++++----------------- 2 files changed, 42 insertions(+), 24 deletions(-) diff --git a/MHO_C122_v43.bin b/MHO_C122_v43.bin index 067ece18a6addfdb9aeca74a75be5e2f81b8ae03..f646d798c9f70b3b13336d0c134919690ecae12e 100644 GIT binary patch delta 8109 zcmahtdt8)d*3X$6GYk`hhzvJjLP7!-NJ$YdL!v-vf<%rf8?BOBvEpW5c2UL+Mc3Qd z$$fztU;tfpu`PG-hb@}0X=!R^Zl!inH!?5ddPC6y<~!#_Tz}s`-yi3FF6Vxp^E}Ua z-j>^{mfI@(NhsZTY8IqpD(r(L?px5N3OV2qr8aAY5G6`|SgvS>c47axUX-rILz-CF zh1WHUGS1gEJt>-fJEF6dje$bZ+}<%K+tj`H0N4wh|EL6ew&Qwb`(&2#*31gAmcXXA z2^+P>5^#Zi8#ej8I$>7z*~!Mze!62mf;HNMtJM0c9EDx!P}rq#L1S$d_0tJB;7d?~?R($WFNORO?v+|T>dAIVwciEN(?q_x@4rm*EmCsr@bXL6b zP&Cm7_(zYovWAjLdR5o6*}|o5Fj;&>m1S7xvz82Pg+h6BUPFjQ)u6GBr;+Bf6*L;t zkfUHprM9Rp{JsCMpv)TBBDzGUdYd>RwnTY+8@$q3-0D9{A64Vqz!VA0uo)Zvq&#hzvqOFKe;PyeK}us|QHGB#+M{!8KFe}Z}Cuf9sG(1o_C!>F^ zsG9wU-h6!>cADrBCNP{$g400Zw^@mfF;4HunZl+4tNnqnbH$i*5x%Q8-1Gc zT#6B*NsNS%%8|bIrS%&7g!-4C7@~y+UwcnoPae2@?PXYR3QCo2A$u%7HaV?%gNO;u zz)38=7!)YSj#7R$!G#4CqMh1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gmg=EwP(c}*2UCRYoQi}u?=evBvwA>?v$2CektsoQC4X3uPnqqc7@{Rl1TOH=aL z8+Z1tmR2L4r2L4{cP_(CRNi&XW~-QrUsmireq}KZ-!7~q`<`D>{IFicxCE>bzkXON z)`K-;1Nt%V-Zy?s#T=Ono2S4j{fng+ocra*;Uh-8O5WMuKSx?&Jf`DofF*XJZeX0G zFIP-8SU3;~-p*GB5@7 zNO^v^UrXnxeO3UjxjzvCa6e%N;1~Bx=?_B2;5K^feKyz#G*#}Zrtg3&Q(f4QRLTkj z?8t@~$l6g3@!BkjZEz;D%G$99^ah?$`hiII1rhb&hz?_&e}MHpR6>@e1mHEuI&cLb z1H!mm;Wr5v3Q5!tATSbqPUDT1bU9=OawWsd?-7`2sfxkUD2GHiWa*T{Ts5yUVU;C8 z0Urmtk(nR!mX;1^mGG4;n-yA=3J-nC%-!<$QNNpD4gt$&fqews)ol6DsA&ESlM|SuDPd`fi=eXv}QclPs2Nt@ZXeZcc ziF*W|gVUDHkHDHh=E%Xot40b*=CZ^R<^wU3`GH!p$uipq^jgNGnkP%zyOJsFtTP$MfV8o--087f~fdts8$Mt>@A>cM=F+0@lqq-A7a%=m>ya zpf++aYv}w~%16RwEf0Ic=};0{fMsD2)M>8PiQPYST%wC6zyiTQQD;dVZpw$7J;CrS zO{#UIYruiEItT)Z&rKg>mNS2O7r%suWFE!ruO0 DgZXUB diff --git a/src/lcd_mho_c122.c b/src/lcd_mho_c122.c index 16859b5b..3b1cde16 100644 --- a/src/lcd_mho_c122.c +++ b/src/lcd_mho_c122.c @@ -1,3 +1,11 @@ +/* + * lcd_mho_c122.c + * + * Created: pvvx, 28.05.2023 + * Edited by: FaBjE + * + * https://github.com/pvvx/ATC_MiThermometer/issues/339 + */ #include #include "tl_common.h" #include "app_config.h" @@ -20,13 +28,13 @@ | | | | | | | 3.0| --0.7-- --1.7-- * --2.7-- ---- 3.2 2.3 - --5.3-- --4.3-- 1.3 1.3 - (|) | | | | / \ / \ - 3.6 5.6 5.2 4.6 4.2 1.3( ___ 3.1 ___ )1.3 - | | | | 1.3 / \ 1.3 - BLE --5.5-- --4.5-- ___ - 4.7 | | | | 3.5 - 5.4 5.1 4.4 4.1 + --5.3-- --4.3-- 1.3 1.3 + (|) | | | | / \ / \ + 3.6 5.6 5.2 4.6 4.2 1.3( ___ 3.1 ___ )1.3 + | | | | 1.3 /3.6\ 1.3 + BLE --5.5-- --4.5-- _____ + 4.7 | | | | \3.5/ + 5.4 5.1 4.4 4.1 BAT | | | | % 5.7 --5.0-- --4.0-- 3.4 @@ -44,7 +52,7 @@ RAM uint8_t lcd_i2c_addr; #define LCD_SYM_o 0b11000110 // "o" #define LCD_SYM_BLE 0b10000000 // connect -#define LCD_SYM_BAT 0b10000000 // battery +#define LCD_SYM_BAT 0b010000000 // battery const uint8_t lcd_init_cmd_b14[] = {0x80,0x3B,0x80,0x02,0x80,0x0F,0x80,0x95,0x80,0x88,0x80,0x88,0x80,0x88,0x80,0x88,0x80,0x19,0x80,0x28,0x80,0xE3,0x80,0x11}; // {0x80,0x40,0xC0,byte1,0xC0,byte2,0xC0,byte3,0xC0,byte4,0xC0,byte5,0xC0,byte6}; @@ -158,12 +166,13 @@ _attribute_ram_code_ void show_smiley(uint8_t state){ display_buff[1] &= ~BIT(3); display_buff[3] &= ~(BIT(5) | BIT(6)); + if(state & 1) - display_buff[3] &= ~BIT(6); + display_buff[3] |= BIT(5); //Happy mouth if(state & 2) - display_buff[3] &= ~BIT(5); + display_buff[3] |= BIT(6); //Sad mouth if(state & 4) - display_buff[1] &= ~BIT(3); + display_buff[1] |= BIT(3); //Smiley contour } _attribute_ram_code_ @@ -185,35 +194,36 @@ void show_battery_symbol(bool state){ /* number in 0.1 (-995..19995), Show: -99 .. -9.9 .. 199.9 .. 1999 */ _attribute_ram_code_ __attribute__((optimize("-Os"))) void show_big_number_x10(int16_t number){ - display_buff[1] &= ~BIT(3); // smiley + display_buff[0] = 0; + display_buff[1] &= BIT(3); // smiley contour display_buff[2] = 0; + if (number > 19995) { - display_buff[0] = LCD_SYM_H; // "H" - display_buff[1] = LCD_SYM_i; // "i" + display_buff[0] |= LCD_SYM_H; // "H" + display_buff[1] |= LCD_SYM_i; // "i" } else if (number < -995) { - display_buff[0] = LCD_SYM_L; // "L" - display_buff[1] = LCD_SYM_o; // "o" + display_buff[0] |= LCD_SYM_L; // "L" + display_buff[1] |= LCD_SYM_o; // "o" } else { - display_buff[0] = 0; /* number: -995..19995 */ if (number > 1995 || number < -95) { if (number < 0){ number = -number; - display_buff[0] = BIT(1); // "-" + display_buff[0] |= BIT(1); // "-" } number = (number / 10) + ((number % 10) > 5); // round(div 10) } else { // show: -9.9..199.9 display_buff[2] = BIT(3); // point if (number < 0){ number = -number; - display_buff[0] = BIT(1); // "-" + display_buff[0] |= BIT(1); // "-" } } /* number: -99..1999 */ if (number > 999) display_buff[0] |= BIT(3); // "1" 1000..1999 if (number > 99) display_buff[0] |= display_numbers[number / 100 % 10]; if (number > 9) display_buff[1] |= display_numbers[number / 10 % 10]; - else display_buff[1] |= 0b11110101; // "0" + else display_buff[1] |= display_numbers[0]; // "0" display_buff[2] |= display_numbers[number %10]; } } @@ -221,12 +231,14 @@ __attribute__((optimize("-Os"))) void show_big_number_x10(int16_t number){ /* -9 .. 99 */ _attribute_ram_code_ __attribute__((optimize("-Os"))) void show_small_number(int16_t number, bool percent){ - display_buff[4] &= ~BIT(7); // and ble - display_buff[5] &= ~BIT(7); // and battery + display_buff[4] &= BIT(7); // and ble + display_buff[5] &= BIT(7); // and battery + if (percent) display_buff[3] |= BIT(4); // % else display_buff[3] &= ~BIT(4); // % + if (number > 99) { display_buff[5] |= BIT(1) | BIT(2) | BIT(4) | BIT(5) | BIT(6) ; // "H" display_buff[4] |= BIT(4); // "i" @@ -236,9 +248,11 @@ __attribute__((optimize("-Os"))) void show_small_number(int16_t number, bool per } else { if (number < 0) { number = -number; - display_buff[5] = BIT(5); // "-" + display_buff[5] |= BIT(5); // "-" } - if (number > 9) display_buff[5] |= display_small_numbers[number / 10 % 10]; + if (number > 9) + display_buff[5] |= display_small_numbers[number / 10 % 10]; + display_buff[4] |= display_small_numbers[number %10]; } } @@ -269,7 +283,11 @@ void show_clock(void) { display_buff[1] = display_numbers[hrs / 10 % 10]; display_buff[2] = 0; display_buff[3] = 0; + + display_buff[5] &= ~BIT(7); // and battery display_buff[5] |= display_small_numbers[min % 10]; + + display_buff[4] &= ~BIT(7); // and ble display_buff[4] |= display_small_numbers[min / 10 % 10]; } #endif // USE_CLOCK