Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request Raspbery Pi Pico C SDK integration #79

Closed
anglerfish27 opened this issue Jun 20, 2023 · 1 comment
Closed

Feature request Raspbery Pi Pico C SDK integration #79

anglerfish27 opened this issue Jun 20, 2023 · 1 comment
Assignees

Comments

@anglerfish27
Copy link

anglerfish27 commented Jun 20, 2023

I apologize I'm not that savvy in GitHub about how to leave comments, this isn't an "issue" it is a feature request. Would you be kind enough to port an example for the Raspberry Pi Pico using the c SDK only? Meaning no C++ and just pure C. I tried following your instructions to port the I2C SDK objects needed to meet your code but sadly I have failed countless times. I have about 4 of the SHT45 sensors I would really love to use. I don't use Arduino or MicroPython or even Adafruits code (since it's Arduino C++ based). I only program in pure C using the Pico C SDK.

I would imagine it would take one of your engineers 10 minutes to code this, I'll even pay for a pico if you want just let me know how to fund this and I will! I know it is a big ask from essentially one user but it would go far in the community of Pico fans. I found several others stuck in my situation as well. I sincerely hope you give this some thought and write it out for the pico as an example. The board is blowing up in popularity and there are still many of us who use plain C and Visual Studio Code to interface with it. I would be forever grateful if you could assist the Pico crowd!

I would bet your engineers would need nothing more than this to code it out:
https://www.raspberrypi.com/documentation/pico-sdk/rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h.html

Hoping you hear the voice of just one customer (who has been loyal to your company with some of your other sensors!)
Respectfully,

Anglerfish27

@qfisch qfisch self-assigned this Jun 23, 2023
@qfisch
Copy link

qfisch commented Jul 7, 2023

Hello @anglerfish27 ,

Sorry for the delay.
I am not sure I understand your issue. Our embedded drivers are written in pure C, they do not use C++ libs.
Did you have a look at the read-me ? Especially this section. That is where you need to configure the I2C configuration for your platform (we do not provide a ready to go HAL for rp-pico, and do not plan to for now)
For the implementation itself, you can get inspired by the HAL we provide for full size Raspberry pi. Of course it would need a few adaptations given the pico-sdk but it should help for sure.

I hope it helps,
Cheers.

@qfisch qfisch closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants