Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: