diff options
Diffstat (limited to 'libraries/MultiLCD/hardware/pic32/HW_PIC32.h')
-rw-r--r-- | libraries/MultiLCD/hardware/pic32/HW_PIC32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/MultiLCD/hardware/pic32/HW_PIC32.h b/libraries/MultiLCD/hardware/pic32/HW_PIC32.h new file mode 100644 index 0000000..c71a5ff --- /dev/null +++ b/libraries/MultiLCD/hardware/pic32/HW_PIC32.h @@ -0,0 +1,7 @@ +void UTFT::_convert_float(char *buf, double num, int width, byte prec) +{ + char format[10]; + + sprintf(format, "%%%i.%if", width, prec); + sprintf(buf, format, num); +} |