![]() We downloaded the software to git and compiled it with Eigenmath. Now we have to get a custom micropython with LVGL support. A few small fixes after that it compiles and works fine. The main problem is the amount of memory that esp32 can use as stack memory (local variables) so we change a few to heap (malloc() them ). so we choose Eigenmath as the math engine because it is plain C.įirst, we migrated Eigenmath to esp32, it is easy and we have only a few memory issues. There are many of them, but no one has migrated any to an esp32. and we want to program this computer and made it easy to program with it, so we choose micropython as the programming language.īut we want also to create a computer with symbolic math, so we need a symbolic math engine. We want to create a graphical computer, and the best library for it is LVGL. The best way to learn is to visit Eigenmath home page. We can define functions with the = symbol, as a matrix of any dimension. The Trigon button shows a menu with all the trigonometric functions, in the keyboard there are only the 3 main ones. The Func button shows a menu of topical Eigenmath functions, as d() that calculates de derivate or integrate() that calculates the integration of the function. The expression is written in the upper entry box and when we press the EXE physical red button or the Exec button on the screen, it is evaluated and shown in the bottom box. The head of the screen shows the mode we are in. We can use the MODE key to switch between the NUM mode, the one that uses the math expression, and alp and ALP, the alphabetical normal and CAPS mode. We can use a rich language to express these math equations. We can introduce one formula and the computer resolves it. The first program is a CAS (Computer-assisted system) calculator. Once the firmware is ready we start programming the handheld. The software - the calculator Angel Cabello.Pressing the MENU key we can go to another program. When we are on this graph screen we can press the left-right hardware buttons (yellow) and it will appearance the (x,y) coordinates. Pressing the graf button takes us to this screen We can write x(t) and y(t) at the top, and the t - range at the bottom, we can store a f(x) and a x(t)-y(t) at the same time in the file. If we choose the Par checkbox in the config screen, the screen changes and shows that If we press the save button, it will store the data to a file.Īnd if we press the Grap button, we go to the plot screen. We can uses any function we have defined in the math engine, so if we have defined f(x) in the calculator app, we can write only f(x) an it will show. At the right it is the configuration screen.Īt the top, we can write the formula we want to see as x function. If we push the menu button, we get a window with all the programs defined there, the second raw shows our next objective. ![]() To complete the calculator software that this handheld has we need a function graphics program. The software - graphycs Angel Cabello.The other two are custom home projects, one is for food storage, CibusTabula. I have three light groups and it enables me to switch it on/off or control the brightness. The second one is a panel control of my Philips Hue system. When the wifi is on a python timer shows a Wifi symbol in the head and hides it when we disconnect. If we press the Wifi On/Off button we connect / disconnect, save button stores our credentials. If we use only the calculator software it is better to disable it, if we are going to control devices, we should check it. The checkbox shows if we start the wifi connection at startup or if we will do it manually. The main use of this handheld is to control the house-connected devices. We have developed a few programs to show how to do it.Īt the top, it shows us the wifi SID and password used to connect, a dropdown menu, where the wifis available are (after a scan) and a textbox to introduce the password to the new wifi connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |