Commit Graph

28 Commits

Author SHA1 Message Date
Jeff Wang
75de345f7c merge fix 2019-10-03 00:33:45 -04:00
Jeff Wang
c3ec112f97 bugfix for shift-clear 2019-10-03 00:32:35 -04:00
Jeff Wang
0f17fbdcc7 fix digit entry before taking log
separate out finishing entry/processing command into common function
2019-10-03 00:31:20 -04:00
Jeff Wang
cb92a82f4b add shift key and ability to calculate ln() 2019-10-02 22:47:53 -04:00
Jeff Wang
9fc462ca94 bugfix for backspacing from exp entry all the back to significand entry
check for '.' needs to be after entry_i--
2019-10-02 22:47:32 -04:00
Jeff Wang
0049f3df98 do not compile with stack auto, change functions to be nonreentrant, use fixed parameters
- frees up ~4KB of code space
2019-05-02 03:27:01 -04:00
Jeff Wang
6399cbf44f modify code to use accumulator architecture to minimize pointer usage 2019-05-01 03:54:57 -04:00
Jeff Wang
836d4fc122 fix emulator lcd/calculator thread startup race 2019-04-05 02:10:10 -04:00
Jeff Wang
ee917a71e5 add version string at poweron, also check for poweroff keys in interrupt 2019-04-05 00:47:07 -04:00
Jeff Wang
240dd570ae fix for LCD row tracking, fix for "phantom" keypress at powerup 2019-04-04 03:01:33 -04:00
Jeff Wang
5e04a18cd2 use semaphores for keyboard and lcd, add lcd thread for calling updateLcd() 2019-04-04 01:54:02 -04:00
Jeff Wang
89c5f0dc6c only process calculator keys and update lcd if keys pressed 2019-04-04 00:33:46 -04:00
Jeff Wang
fc6d8efc5f work on Qt GUI, still not working properly 2019-04-04 00:33:42 -04:00
Jeff Wang
1be980d85b fix reciprocol convergence 2019-04-02 23:57:28 -04:00
Jeff Wang
bb102add67 add exponent character 2019-04-01 02:38:17 -04:00
Jeff Wang
f5d8d601a2 bugfix for keys
- initialize count, so that there is no initial keypress at powerup
- use int8_t instead of uint32_t to pass new key, since only 1 new key
used
2019-04-01 01:55:47 -04:00
Jeff Wang
8aec2ae134 fix exponent display 2019-04-01 01:12:02 -04:00
Jeff Wang
fa0afa726b update readme 2019-03-31 23:34:13 -04:00
Jeff Wang
12e7f010e6 bugfix: latch on immediately, to ensure calculator stays on after poweron 2019-03-31 19:37:55 -04:00
Jeff Wang
d1ec11cad8 allow correct building/syntax highlighting on desktop 2019-03-31 19:37:55 -04:00
Jeff Wang
43edb291cf attempt to reduce space usage
- remove unecessary code
- ifdef "extra" code
- pass data through globals instead of functions accessing static data
- functions non-reentrant, locate tmps in xdata
2019-03-31 19:37:52 -04:00
Jeff Wang
ecb0492534 initial calculator code 2019-03-31 19:33:59 -04:00
Jeff Wang
bdecc32b86 use global Buf everywhere for debugging 2019-03-28 00:41:54 -04:00
Jeff Wang
7dddcb0902 soft latching power switch 2019-03-21 21:06:12 -04:00
Jeff Wang
606ac5c2f8 optimize delays for better accuracy 2019-03-21 21:06:12 -04:00
Jeff Wang
b3f0f12c32 key debouncer 2019-03-21 21:06:12 -04:00
Jeff Wang
84b6888d7e scan keyboard 2019-03-20 03:21:11 -04:00
Jeff Wang
f4f70853c1 initial stc rpn calculator project 2019-03-20 00:34:51 -04:00