Programming the Pine64
Hi, I would like to know how I can programming my Pine64 ; I explain :
For example I would like to turn on led connected to my Pine64 ( on GPIO port I guess ) when it's 10pm.
How I can do that and in general how I can create instructions to execute for him ?


Have a nice day

I don't have an answer. But maybe trying looking at how a raspberry Pi turns on LED's. That might give you an idea of how it works.
You can use Python pyA20 from, but you will need to fix it a bit to make it 64bits compatible.

The fix is in gpio_lib.h, changing a "int" (32bits) with a "long" (64bits) :

< extern unsigned int SUNXI_PIO_BASE;
> extern unsigned long SUNXI_PIO_BASE;

And also in the gpio_lib.c :

< SUNXI_PIO_BASE = (unsigned int) pc;
> SUNXI_PIO_BASE = (unsigned long) pc;

Possibly Related Threads…
Thread Author Replies Views Last Post
Question External storage problem for pine64 Dani6102 4 1,717 08-22-2023, 08:36 AM
Last Post: gulshan212
  Pine64 as wireless audio device S265 3 3,254 04-07-2022, 10:39 PM
Last Post: S265
  Pine64(+) and manjaro dsychan 0 1,150 04-05-2022, 11:32 PM
Last Post: dsychan
Thumbs Down Pine64 was a Useless Project pushpendrak 18 28,733 11-21-2020, 10:17 PM
Last Post: tllim
  Pine64 LCD rstcologne 0 3,124 09-22-2020, 12:43 PM
Last Post: rstcologne
  Pine64+ power button PaddyChan 0 2,771 09-14-2020, 09:55 AM
Last Post: PaddyChan
  Pine64 OS dpcons 2 4,951 03-02-2020, 04:32 PM
Last Post: dpcons
  Jailhouse supports Pine64+ vj-kumar 0 2,837 02-17-2020, 11:39 PM
Last Post: vj-kumar
  PINE64 board not powering up loki21century 2 5,584 11-25-2019, 12:19 PM
Last Post: Partymack711
  Pine64 not powering up. skylab 5 7,255 05-03-2019, 02:48 PM
Last Post: Mendota

Forum Jump:

Users browsing this thread: 1 Guest(s)