nim_wiringPiNim icon indicating copy to clipboard operation
nim_wiringPiNim copied to clipboard

SPI support, only wrapping of existing wiringpi functionality needed.

Open Drummersbrother opened this issue 7 years ago • 8 comments

Hi! I'm quite new to the nim language, but I've previously done some work with raspberry pi's and their SPI bus functionality. This library is exactly what I need for one of my projects, but it doesn't support the hardware SPI bus (feel free to correct me if I'm wrong about that). I would therefore greatly appreciate if you could add procs for using the SPI bus (wiringPi reference here http://wiringpi.com/reference/spi-library/ ) to this library.

Best regards, Hugo Berg

Drummersbrother avatar Sep 10 '17 09:09 Drummersbrother

Hey Hugo

I am glad to hear that the library can help you. You are correct - the library does not support SPI. I have not used SPI, and at the moment I do not have the possibility to test it. I would therefore suggest, that I'll create a new branch here on Github with the code, e.g. named "SPI", and you'll do the real life testing?

If you up for that, I will try to add the support for SPI.

/Thomas

ThomasTJdev avatar Sep 11 '17 07:09 ThomasTJdev

Hi @ThomasTJdev ! I'm absolutely up for doing the testing 😄👍

Best regards, Hugo Berg

Drummersbrother avatar Sep 11 '17 07:09 Drummersbrother

Great! I will try to make it in week 38, unless I'm travelling with work. I'll let you know.

/Thomas

ThomasTJdev avatar Sep 12 '17 11:09 ThomasTJdev

@Drummersbrother - Now it's your turn. Please see the the branch SPI.

echo $piSPISetup(1, 1)
echo $piSPIDataRW(1, char(1), 1)

ThomasTJdev avatar Sep 21 '17 17:09 ThomasTJdev

@Drummersbrother - Have you tried the branch?

ThomasTJdev avatar Oct 17 '17 16:10 ThomasTJdev

Hi! I'm sorry for the radio silence, I have been trying to compile nim on my raspberry pi zero w since the branch was created, and I have not been able to get the toolchain to work (no nimble, and compiling only works sometimes). Whilst I will retry compiling nim and its toolchain in the future, as of yet I'm not able to actually test the branch. I'm sorry for the inconvenience of having to wait for the testing ☹️.

Best regards, Hugo Berg.

17 okt. 2017 kl. 19:15 skrev Thomas T. Jarløv [email protected]:

@Drummersbrother - Have you tried the branch?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Drummersbrother avatar Oct 17 '17 22:10 Drummersbrother

I know this may be a couple months late, but I'll work on testing the branch in the next week or so. Hope I can be of some assistance!

ieatnerds avatar Feb 11 '18 18:02 ieatnerds

I know this may be a couple months late, but I'll work on testing the branch in the next week or so. Hope I can be of some assistance!

Any progress @ieatnerds :) ?

ThomasTJdev avatar Apr 18 '19 11:04 ThomasTJdev