Re:WiPhone: A professionally-packaged Arduino phone
by catherd on Sunday February 24, 2019 @07:25PM
(#19241652)
Thanks! Yes, one of the major design motivations wasn't so much to make a phone, but to make a nicely packaged device hackers can use at the hardware level for other purposes (we are practically locked out of modern phones for a variety of reasons).
Apps: The end goal is to embed a Python interpreter in the firmware, and then it would be a matter of interacting with an API in Python. Right now it's C++.
I'm not sure what you mean by "connect an API for a smartphone to an Arduino". Do you mean: What does the plumbing look like between the code that calls the API and some physical pin?
Re:WiPhone: A professionally-packaged Arduino phone
by neltnerb on Monday February 25, 2019 @02:22PM
(#19248527)
Yeah, I think I meant the plumbing in the sense of providing simple ways to create and draw a UI and call functions when actions are carried out. It sounds like python and perhaps FreeRTOS? I've never programmed Android or iOS, only embedded systems, so even FreeRTOS is getting a little high level for me. My question might be phrased extremely poorly.
I mostly ask because in my experience writing graphics drivers for LCD displays by hand is that it is very hard and slow to run, last time I had to make a touchscreen interface it was like writing in QBasic again the functionality was so primitive. Seconds of lag because of the serial interface and all.
What is involved in doing something like writing an "app" that would run on the device and send wifi commands out? Am I looking at low level C++ to interface with a LCD, or is this all in a nice API?
How do you connect an API for a smartphone to an Arduino? I assume the phone part is running on the second core, does it have a lot of cycles leftover?