My neighbor has a little girl with bad arithmetic. This is a headache when her parents direct her arithmetic, so I want to use Crowpi to program a simple calculator to help people who are not good at computing.
My idea is to use the 4 independent buttons on Crowpi as +, - , *, /, and then use the 10 buttons on the matrix button to do 0-9 respectively.When I press these buttons, Crowpi Lcd can display the contents of the button I pressed. When I want to get the result, just touch the touch sensor and it will automatically display the result on the LCD.
With the basic ideas, let's get started.
Of course, the first thing to do is always to import the modules we want to use.
import mathimport time