Will EPOLL C or PIGPIO C work on pine64?
#1
I write in nodejs exclusively and on RPI I use this library to control GPIOs
https://github.com/fivdi/pigpio
This module creates bindings to the excellent PIGPIO C library  here https://github.com/joan2937/pigpio
and with it and this i2c bus module https://github.com/fivdi/i2c-bus I can anything on the GPIO bus.

I am sure I can get the PIGPIO C library to compile but will it be compatible with the "Pi2" bus on the Pine64?
If so tada I can use my nodejs code directly from RPI to Pine64 without alteration (well except maybe for some pin number translations as pointed out in other posts????)

If PIGPIO C won't work the same dev has a library that uses EPOLL.
So the EPOLL C should compile but will it work with the PINE64 pi2 bus???
https://github.com/fivdi/epoll

I'd much rather use PIGPIO C library as I have discovered it's much more robust than the EPOLL

What are my options here? 
I understand I can just write sysfs calls directly in nodejs but I've discovered that's not very robust.
One thing I definitely do frequently on the Pi is use pins as interrupts and that is easy with PIGPIO or EPOLL.  As far as I understand if only using sysfs then you have to manually poll the pin state in your code continuously (in nodejs that would be setInterval) looking for a state change (which is really not robust at all).
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Pine64 as jtag programmer desai_amogh 0 58 05-25-2019, 06:13 AM
Last Post: desai_amogh
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 3,666 01-24-2019, 03:36 AM
Last Post: Fifth
  How SD Cards Work MarkHaysHarris777 1 423 09-12-2016, 07:24 PM
Last Post: clarkss12
Information schematic for the 2G Rev C Pine64+ has been published MarkHaysHarris777 0 596 09-12-2016, 06:39 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)