diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-06 09:01:44 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-06 09:01:44 +1000 |
commit | 0236e79af77c785c68fe0856723ecfb0fac4bbeb (patch) | |
tree | 867dcb4211f8f9552d72cbbbebb02cd4c6d5c992 /libraries/MultiLCD/hardware/arm/HW_ARM.h | |
parent | 9fd501b8f63ef4d8c484c1ad49478ca8d7bd593a (diff) | |
download | 2021-arduino-obd-0236e79af77c785c68fe0856723ecfb0fac4bbeb.tar.gz 2021-arduino-obd-0236e79af77c785c68fe0856723ecfb0fac4bbeb.tar.bz2 2021-arduino-obd-0236e79af77c785c68fe0856723ecfb0fac4bbeb.zip |
Add hardware header files
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); +} |