@Oscar_CEDS
Oscar Vermeulen
6 months
@BinaryDinosaurs Nice thing of pinctrl is, main() is a demo for what it can do and the rest is in C files that you can just compile in to your project. And it'll work for GPIO on all generations of Pi. Without passing through the Linux kernel ❤️
0
0
1

Replies

@Oscar_CEDS
Oscar Vermeulen
6 months
Adapted my #PiDP11 to accept the new Pi 5. To use Pi 5's new RP1, I hated the bloated GPIO libs. Just pushing simple bits, so why 1000s of instructions & object-oriented conceptual crap through Linux kernel? But pinctrl sources are nice! Easy to reuse:
2
2
22
@BinaryDinosaurs
Binary Dinosaurs
6 months
@Oscar_CEDS Interesting. How does it compare to Joan's pigpio library?
2
0
0
@Oscar_CEDS
Oscar Vermeulen
6 months
@BinaryDinosaurs I am biased & use GPIO for basic stuff. So I absolutely balk when I see a 'customer-client' object model. When all it used to take to flip a GPIO bit is a single LDR instruction. Depends on perspective but Pi's are drifting very far from being 'microcontroller with Linux'.
0
0
0
@BinaryDinosaurs
Binary Dinosaurs
6 months
@Oscar_CEDS This is why I mentioned it, pigpio does allow the real basics though it’s possibly not as simple as pinctrl. I’ll have a closer look 😄
1
0
0