Article: NuttX RTOS for PinePhone: Blinking the LEDs
#1
Programming the GPIO Hardware on PinePhone looks complicated… But it’s not that different from microcontrollers! (Like PineTime Smartwatch and PineCone BL602)

Today we shall learn…
1. How to blink the LEDs on PinePhone
2. What’s the Allwinner A64 Port Controller
3. What’s inside the Linux Device Tree
4. How we configure and flip the GPIOs
5. How to do this in C and BASIC

We shall experiment with PinePhone’s GPIO Hardware by booting Apache NuttX RTOS on PinePhone.

Why boot NuttX RTOS on PinePhone? Why not Linux?

NuttX RTOS is a super-tiny, Linux-like operating system that gives us “Unlocked Access” to all PinePhone Hardware. Thus it’s easier to directly manipulate the Hardware Registers on PinePhone.

(Like with peek and poke in BASIC)

Will it mess up the Linux installed on PinePhone?

We shall boot NuttX safely with a microSD Card, we won’t touch the Linux Distro on PinePhone. 

Let’s dive in and find out how we blinked the PinePhone LEDs…

NuttX RTOS for PinePhone: Blinking the LEDs
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  openSUSE for Pinephone Alefnode 73 74,747 11-26-2022, 12:07 PM
Last Post: Eugo
Lightbulb Article: Experiments for super low PinePhone power consumption with Genode Surehand53 0 148 11-19-2022, 02:43 PM
Last Post: Surehand53
  Fedora + Phosh for PinePhone njha 73 91,412 11-18-2022, 09:12 PM
Last Post: Alho
  Article: NuttX RTOS for PinePhone: Render Graphics in Zig lupyuen 0 132 11-15-2022, 04:16 AM
Last Post: lupyuen
Tongue Android Auto on Pinephone via Waydroid: a pipe dream? slondr 1 222 11-06-2022, 01:46 PM
Last Post: wibble
  Article: Rendering PinePhone's Display (DE and TCON0) lupyuen 0 222 10-29-2022, 06:09 PM
Last Post: lupyuen
  Article: NuttX RTOS for PinePhone: Display Driver in Zig lupyuen 0 259 10-17-2022, 07:02 PM
Last Post: lupyuen
Question Proprietary apps for PinePhone/PineTab Benoit 10 9,006 10-14-2022, 12:29 AM
Last Post: groomsb31
  Amazfish on Pinephone pagesix1536 11 7,286 10-10-2022, 08:01 PM
Last Post: thomzane
  Article: Understanding PinePhone's Display (MIPI DSI) lupyuen 2 458 10-01-2022, 05:52 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)