Using those dots on the display
Closed this issue · 0 comments
tamasharasztosi commented
digit1 = value % 10 ;
digit2 = (value / 10) % 10 ;
digit3 = (value / 100) % 10 ;
digit4 = (value / 1000) % 10 ;
//Send them to 7 segment displays
uint8_t numberToPrint[]= {number[digit4],number[digit3],number[digit2],number[digit1]};
sr.setAll(numberToPrint);
Hi! I'm using this code and it works fine with integers. What would be the easiest method to display floats with decimal point?