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

add BSP for Pimoroni Interstate 75 #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ericseppanen
Copy link

This adds a bsp crate for the Pimoroni Interstate 75.

I used the pin names from the schematic. In some cases the names are odd or ambiguous; I chose to keep the schematic names rather than adjust things. Confusing names are documented in lib.rs.

I have verified that the onboard RGB LED works with the included example. I also verified the HUB75 LED matrix pins work, using a fork of hub75-pio. I have not verified the expansion header pins or the current sense input.

I'm not confident I understand the details of the bsp_pins! macro, so I haven't added any pin function aliases. Advice on how to do this properly would be welcome!

For example, would it be a good idea to add a PWM function for the onboard RGB LED pins?

Should I do anything special for hardwired button input pins? sw_a is a switch to ground with no current-limiting or pullup/pulldown resistors, so I think the only correct configuration is as an input with internal pull-up. Can I enforce this?

Similarly, GPIO29 is connected to an opamp output, so I think the only correct pin configuration is as a high-impedance ADC input.

The board also has some expansion pins for the user (and aren't connected to anything onboard); should I add function aliases for:

  • GPIO19..21 (connected to the expansion header and labeled I2C_INT, I2C_SDA, I2C_SCL)?
  • GPIO26..28 (connected to the expansion header with names ADC0..2)?

@ericseppanen
Copy link
Author

ericseppanen commented Jun 2, 2024

It's also fine with me if the team would rather this crate stay external. I thought I'd offer it here first so it could stay in sync with the other pimoroni bsp crates, but if it would be a maintenance burden I can publish it myself.

I'd still be grateful for any review comments or advice about setting up function aliases.

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

Successfully merging this pull request may close these issues.

1 participant