You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/libs/libmf/source/lcdwru16.c

17 lines
282 B

#include "libmflcd.h"
void lcd_writeu16(uint16_t val, uint8_t nrdig, uint8_t pos)
{
while (nrdig) {
uint8_t __autodata v1 = val;
val /= 10;
v1 -= 10 * (uint8_t)val;
lcd_setpos(pos);
lcd_waitshort();
lcd_writedata('0' + v1);
lcd_waitshort();
--pos;
--nrdig;
}
}

Powered by TurnKey Linux.