-
Notifications
You must be signed in to change notification settings - Fork 168
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
Implement I2C
and SPI
peripherals for all chips
#5
Comments
I started experimenting with a shared I2C implementation: https://github.com/ducktec/esp-hal/tree/feature/i2c. For the ESP32-C3, the implemented example (driving a SSD1306 I2C display) works already. For the ESP32 the example at least builds, but does not work yet. I suspect that is because I'm relying on the I2C An aspect that I found a bit annoying was that the peripheral's I will continue with the implementation, but I'm a bit time-restricted to work on this, thus it might take a while. So, if anybody wants to fast-track this, maybe some pieces of my work can help. 🙂 |
Glad to hear you're interested in the project, thanks for working on this! I had previously taken a stab at the There is no rush at all, so please take your time! |
@ducktec Thanks for your efforts! I can continue to work on it based on your work - I already cherry-picked your commit and can continue to work on it - I'm sure there will be enough to do once you have more time again or you can pick up my changes if I make progress but don't finish it until you get to it again |
Alright, then I'll look into another peripheral once I have some more time (mostly weekends). Just let me know if I can be of help with the I2C peripheral. Do you already have a plan for the I already looked into ways to get this information into the SVDs and thus PACs:
|
I'm generally the one responsible for SVD-related things, and I think I should be able to add these enumerated values. If @bjoernQ doesn't have a different idea then I can take care of the required SVD updates, although as you stated we would likely need to update |
Interesting idea about having
For now, my simple solution for that is to move them into the common-hal and include them conditionally based on the selected chip. |
|
Actually I'm just going to close this issue in favour of #19. |
This is a tracking issue for the remaining communication protocols. With these implemented we should be able to interact with a vast array of sensors and external peripherals.
I2C, SPII2C, SPII2C, SPII2C, SPIThe text was updated successfully, but these errors were encountered: