Driver Details

Calculator Utility

By: My Device
Updated: Aug. 31, 2012
Version: 1.1

Version 1.1

This driver gives you the ability to add a basic calculator to your next RTI project.

 

History: Added precision and operand reversed state feedback, as well as an equation string variable

 

Calculator

(c) 2010 My Device.

www.mydevice.com.au

This driver adds calculator functionality to any 2-way capable device with a screen.

Note:

Please report any bugs found to bugs@mydevice.com.au. Include driver version number and steps to reproduce the issue where possible.

Driver Configuration Settings:

License Settings:

Unlock code - This driver is not free, you must purchase an unlock code for each XP-8 the calculator runs on. Paste the unlock code in here. It should be exactly 10 hex (0-9, a-f) digits long.

Functions:

Number

This function sends a keypress to the calculator in the form of a single digit or the decimal point, building the equation to be solved. As digits are typed they are visible in Buffer variable.

Digit : 0 - 9 and decimal point.

Operator

This function inserts an operator in the current equation.

Operand : Add/Subtract/Divide/Multiply

Calculate

This calculates the solution to the equation built by the user. The result is available in the Buffer variable.

C (Clear)

This clears the input buffer.

+/-

This function negates the current Buffer variable.

Set Precision

This function sets the number of decimal places the calculator will round to. Default value is 8 decimal places.

Decimal Places : 0 - 15

Variables:

Buffer

This is a string variable showing the current input from the user. Below is a table showing keypresses versus the output Buffer:

Key Buffer

--------------------

1 1

0 10

0 100

+ 100

5 5

0 50

= 150

License:

This driver is protected by a licensing system. Without purchasing an Unlock Code, the driver will remain functional for 60 minutes. After that time the Calculate and C(Clear) functions will cease to operate until the XP-8 is reset.

A free license is available by clicking the Get License button above and entering your processor's MAC address.