1
0
Fork 0
wasp-os/wasp
Daniel Thompson 21210c5c07 apps: calc: Rewrite the display and calculation engine
Currently calculations such as 22/7 do not work correctly on the
simulator (which uses double precision floating point). Fix this
by explicitly truncating the strings when needed.

Additionally the current calculate() method has some problems when
the calculation cannot be evaluated since it will needlessly clear out
the calculation. Push calculate (and the exception handling) into the
caller and report errors using the vibration motor instead.

Finally we rename display_output() to the more idiomatic _update().

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-12-29 08:59:53 +00:00
..
apps apps: calc: Rewrite the display and calculation engine 2020-12-29 08:59:53 +00:00
boards apps: calc: Created memory-saving calculator app 2020-12-28 12:06:51 +00:00
drivers boards: simulator: Improve spi.write() simulation 2020-12-12 12:57:06 +00:00
fonts icons, fonts.digits: Switch over to 2-bit RLE encoding 2020-12-28 12:01:15 +00:00
modules wasp: apps: Step counter application 2020-06-09 21:31:55 +01:00
boot.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
draw565.py draw565: Allow strings to be right justified 2020-12-29 08:59:48 +00:00
gadgetbridge.py Notify level in settings app 2020-11-29 20:20:03 +00:00
icons.py icons, fonts.digits: Switch over to 2-bit RLE encoding 2020-12-28 12:01:15 +00:00
logo.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
main.py Introduction basic notification support 2020-07-19 20:50:33 +01:00
ppg.py ppg: Pull the PPG signal processing into a seperate library 2020-06-25 21:59:32 +01:00
requirements.txt simulator: Introduce fully automatic testint 2020-12-04 20:11:41 +00:00
shell.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
wasp.py widgets: BatteryMeter: Fix theme handling 2020-12-13 16:51:07 +00:00
widgets.py widgets: Reduce the size of the battery icon 2020-12-28 11:12:16 +00:00