|
@@ -57,7 +57,6 @@ static void stop_transfer(tm1637_config* config) {
|
|
}
|
|
}
|
|
|
|
|
|
static void write_byte(tm1637_config* config, uint8_t byte) {
|
|
static void write_byte(tm1637_config* config, uint8_t byte) {
|
|
- printf("Writing byte %x\n", byte);
|
|
|
|
uint8_t data = byte;
|
|
uint8_t data = byte;
|
|
|
|
|
|
for (uint8_t i = 0; i<8; i++) {
|
|
for (uint8_t i = 0; i<8; i++) {
|
|
@@ -88,7 +87,6 @@ static void stop_transfer(tm1637_config* config) {
|
|
result = gpio_get_level(config->dio_pin);
|
|
result = gpio_get_level(config->dio_pin);
|
|
}
|
|
}
|
|
|
|
|
|
- printf("Data transfer has been acknowleged\n");
|
|
|
|
delay();
|
|
delay();
|
|
gpio_set_level(config->clk_pin, 0);
|
|
gpio_set_level(config->clk_pin, 0);
|
|
delay();
|
|
delay();
|