X-Git-Url: https://robinkrens.nl/gitweb/?p=cortex-from-scratch;a=blobdiff_plain;f=drivers%2Ftm1637.c;fp=drivers%2Ftm1637.c;h=8c8ce5b0161eae63ad3352d4d86893dbc26cb250;hp=485d81d08795d68485a358364770050934a8e05e;hb=8b8d6edcd57f69b40f430bc172e1c290a629a6a9;hpb=09ef787389713bb6dbba15b603d0071af8709cb2 diff --git a/drivers/tm1637.c b/drivers/tm1637.c index 485d81d..8c8ce5b 100644 --- a/drivers/tm1637.c +++ b/drivers/tm1637.c @@ -28,7 +28,7 @@ #include -#define TIMEOUT 1000 +#define TIMEOUT 5000 #define DOT true #define NODOT false @@ -221,7 +221,6 @@ void set_segment(int offset, char value, bool dot) { cputs("Error: can't set location\n"); stop_condition(); - regw_u32(I2C_CR1, 0x1, 15, SETBIT); tm1637_reset();