diff options
Diffstat (limited to 'libraries/MultiLCD/hardware/arm/HW_ARM.h')
-rw-r--r-- | libraries/MultiLCD/hardware/arm/HW_ARM.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/MultiLCD/hardware/arm/HW_ARM.h b/libraries/MultiLCD/hardware/arm/HW_ARM.h new file mode 100644 index 0000000..c71a5ff --- /dev/null +++ b/libraries/MultiLCD/hardware/arm/HW_ARM.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); +} |