Datasheet
9
memset(t_bits, 0, 2); /* reset array when
we use it */
memset(h_bits, 0, 2);
/* 4-digital-display [0,1] is used to display temperature */
t_bits[0] = _temperature % 10;
_temperature /= 10;
t_bits[1] = _temperature % 10;
/* 4-digital-display [2,3] is used to display humidity */
h_bits[0] = _humidity % 10;
_humidity /= 10;
h_bits[1] = _humidity % 10;
/* show it */
tm1637.display(1, t_bits[0]);
tm1637.display(0, t_bits[1]);
tm1637.display(3, h_bits[0]);
tm1637.display(2, h_bits[1]);
}
3.3 With Raspberry Pi
This example can Return temperature and humidity value,And show them on Grove - LCD RGB
Backlight.Also print them on PC terminal.










