Shop OBEX P1 Docs P2 Docs Learn Events
Simple and Quick Calculator Project — Parallax Forums

Simple and Quick Calculator Project

SRLMSRLM Posts: 5,045
edited 2010-03-22 22:53 in Propeller 1
One of my math classes had a test recently, and the Professor only allowed "simple" calculators. I forgot all about that particular requirement, and was planning on taking my TI-89 until the test day rolls around and I was reminded. So I rushed out this little application in half an hour that does simple integer math (+,-,*,/,^). I think it shows the power of the Propeller that I was able to build this system so quickly and easily, and that it works the way it's supposed to. Another 15 minutes today (after the test) made the output and input a little nicer and more efficient.

The system has a keyboard and a LCD tv screen taped to a demo board and a 7.2V NiMH RC car battery. It uses the standard library objects for those, plus FDXP for the strToDec routine.

In the end there weren't any numbers on the test that would have required a calculator, so I didn't get to use it. Also, apparently a simple calculator doesn't have a full QWERTY keyboard or a multi-line display. I took comfort, though, in the fact that the Propeller was always ready and able to do the job.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Powered by enthusiasm
2048 x 1152 - 552K
2048 x 1152 - 362K
2048 x 1152 - 513K

Comments

Sign In or Register to comment.