Version 1.0 ... (c) 2018 by deetee/zooxo
ScArY is a scientific RPN calculator on an ATTINY85 and a QYF-TM1638-board (8 digit LED display with 16 buttons controlled with 3 pins). ScArY is capable of familiar functions of RPN calculators (i.e. stack operations) and many mathematical operations (i.e. trigonometic functions) as well as some special functions like calculating annuities or gaussian distributions. Due to the memory restrictions of the ATTINY85 (8 kilobytes) some compromises were made to offer so many functions. So the numbers are shown in SCI notation only (see below).
Another compromise is the lack of checking for errors - usually there is no readable display if an error occurs.
Due to the 8-bit-processor ARC calculates only 5 to 6 digits exactly. This should be enough for most calculations (except you are a bookkeeper who wants to add billion-amounts with cent-accuracy).
Compile the attached file "scary_1_0-ino" with your arduino suite and upload the code to your ATTINY85 with some programmer hardware or an Arduino as ISP (like I did). Connect the ATTINY85 pins (5/6/7 resp. data/clock/strobe) with the corresponding pins on the QYF-TM1638-board, power them up (5V Vcc and GND) and you are running.
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ., EE, CHS, ENTER, C/CE, f
- +, -, *, / (basic operations)
- STO, RCL, SHOW, SWAP, LASTx, ROT+, ROT-, SQRT, PI
- MENU (browse menu)
- BRIGHTNESS (set brightness of display)
- zZZ (toggle screensaver)
- POWER, 1/X, EXP, LN
- SIN, COS, TAN, ASIN, ACOS, ATAN
- SINH, COSH, TANH, ASINH, ACOSH, ATANH
- ANNU (present value for a given interest rate and duration)
- GAUSS PDF/CDF (Propability Density Function and Cumulated Distribution Function)
- FACT (factorial)
- DEG/RAD
- Enter mantissa (with '.' if applicable)
- If applicable: Enter EE to enter exponent (limited to 29)
- If applicable: Toggle sign of exponent with EE
- If applicable: Toggle sign of number with CHS