I’m exploring the use of Julia for controlling hardware in near-real-time fashion (for prototyping, can tolerate some occasional hiccups). I tried the PiGPIO.jl package, but it’s a bit slow (hundreds of microseconds per GPIO update), so I used ccall to call functions in libpigpio directly, which brings the speed up just a bit, to around 100 ns per gpio write! A few questions arose along the way:
I have to run Julia as root in order to use libpigpio, but jupyter isn’t happy running as root. Anyone solved this before?
Has someone done a package for libpigpio (for direct C function access)? If not, I may try to write a package!