Taiga Develop hace 2 semanas
padre
commit
3a2dc13b93

+ 2 - 2
sources/hd44780_shift_register.c

@@ -13,8 +13,8 @@ static chlcd_error_t __chlcd_hd44780_shift_register_set_byte(
     self->last_state = content; 
     
     for (uint8_t count = 0; count < 8; ++count) {
-        bool current = (content & 0b1) != 0x00;
-        content = content >> 1;
+        bool current = (content & 0b10000000) != 0x00;
+        content = content << 1;
 
         __R(chlcd_pin_write(self->register_data, current));
         __R(chlcd_sleep_us(200));

+ 1 - 1
tests/002-lcd-init-shift-register/testing.c

@@ -26,7 +26,7 @@ int main(int argc, char *argv[]) {
         2
     );
     
-    chlcd_display_init(display);
+    //chlcd_display_init(display);
 
     return 0;
 }