Buiding apps for pinephone
#4
Programming for the PinePhone is just like programming for a typical x86/x64 linux PC except that you have a tiny touch screen, have to use a screen keyboard, you are on ARM64 instead of x86/x64, and the CPU and GPU are puny compared to modern x86/x64 machines.

You can write programs in python. In fact a lot of programs on the PinePhone are written in python for better (faster to get something up and running) or worse (python isn't known for good performance on desktops, so it can struggle a bit on the PinePhone).

If you write programs from an x86/x64 computer in languages that require compilation, you will need to take care to do cross-compilation or you can do the compilation on the PinePhone itself. It is straightforward to install all the compilers in the package databases of each linux distribution and use them. They will take longer to compile, but they will do the job just as good as on a more powerful machine just slower.

You will need to be a bit more mindful of performance and definitely RAM usage than you would on a x86/x64 desktop or laptop of today. If you have done programming for the Raspberry Pi, then your experience with those issues there will carry over here. The PinePhone has more RAM than the Raspberry Pi 3 and earlier and a comparable processor.

As far as sensors, it depends on which sensor you want to access. The IMU and a few other sensors are accessible via the IIO (Industrial Input Output) subsystem of the kernel (use libiio and tools to access). You can also see the devices in /sys as well. One thing to keep in mind, recent PinePhones use a different magnetometer due to pandemic related component shortages.
  Reply


Messages In This Thread
Buiding apps for pinephone - by katesfb - 05-25-2021, 10:08 PM
RE: Buiding apps for pinephone - by evilbunny - 05-26-2021, 04:34 AM
RE: Buiding apps for pinephone - by katesfb - 05-26-2021, 11:21 PM
RE: Buiding apps for pinephone - by evilbunny - 05-29-2021, 02:39 AM
RE: Buiding apps for pinephone - by vortex - 05-27-2021, 03:17 PM
RE: Buiding apps for pinephone - by Trbl - 05-29-2021, 01:51 AM
RE: Buiding apps for pinephone - by nbh - 04-13-2022, 02:55 PM
RE: Buiding apps for pinephone - by katesfb - 06-10-2021, 10:52 PM
RE: Buiding apps for pinephone - by Peter Gamma - 03-29-2022, 05:25 AM
RE: Buiding apps for pinephone - by presire - 06-03-2022, 07:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone visibly losing power while plugged in Hiraghm 7 4,359 10-21-2025, 10:38 PM
Last Post: Anthona
  Pinephone boot. Richy_T 8 4,207 10-21-2025, 12:12 PM
Last Post: Richy_T
  How can I record video on a Pinephone? kk22 22 14,492 10-08-2025, 01:29 PM
Last Post: Kevin Kofler
  Does PinePhone support long-term battery health optimization? roseblack 5 1,159 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 3,729 09-24-2025, 09:25 PM
Last Post: elwoodb25
  Why projects like PinePhone matter – feedback and encouragement Gary2003 13 17,804 09-16-2025, 01:13 PM
Last Post: Gary2003
  Can use PlayStation on Pinephone? willharper 7 8,907 09-13-2025, 12:30 AM
Last Post: ChaiLetters
  Pinephone Pro Neural Processing Unit biketool 1 5,281 09-01-2025, 02:05 AM
Last Post: biketool
  Want to buy second hand PinePhone 3G version rudi.timmermans 2 4,798 08-31-2025, 07:18 AM
Last Post: Fish
  Pinephone Pro not in store? bubulux20c 1 3,183 08-08-2025, 02:12 AM
Last Post: P. Siera

Forum Jump:


Users browsing this thread: 1 Guest(s)