jperkin / node-rpio

Raspberry Pi GPIO library for node.js
856 stars 123 forks source link

Added support for driving the aux-spi port. #146

Open MarkvanderPol opened 3 years ago

MarkvanderPol commented 3 years ago

Mostly copied the primary port equivalents and changed their name.

Added the flag WORKER_ENABLED to permit running in newer NODE releases easier, but I have not verified if the code can actually do multi-threading. A quick glance indicates most register access are benign, but if two processes separately start to access a SPI port results may be surprising.

jperkin commented 3 years ago

Hey, just want to say thanks for doing this! Sorry it's taking me a while to review but things have been busy, I'll try to get to it as soon as I can.

waltsatan commented 2 years ago

Any plan to merge this? I've got a project needing to use both SPI ports.