0

Is there a way using python (Raspberry PI 4) to write a nibble to the GPIO in one write operation.

I have done a project which would benefit from that.

Project details here.

https://sites.google.com/view/fxv300/raspberry-pi-4
https://youtu.be/ybuxVGe1lxM
4

No.

The hardware offers no support for such an operation.

What you can do is write 0 to a set of bits in one operation (clear bits) and write 1 to a set of bits in another operation (set bits). You can not set some bits and clear others in the same operation.

My pigpio library supports these functions.

clear_bank_1

set_bank_1

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.