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

create pin def config file #21

Open
markmellors opened this issue Jan 1, 2024 · 4 comments
Open

create pin def config file #21

markmellors opened this issue Jan 1, 2024 · 4 comments

Comments

@markmellors
Copy link
Contributor

it makes sense for all our custom pin definitions to be together in one place

@robberwick
Copy link
Collaborator

robberwick commented Jan 1, 2024

this can probably wait until we have our custom pcb - until then, our pin config is entirely contained in motor2040.hpp. Once that custom PCB is up and running, I guess we'll create our own facsimile of the Pimoroni supplied one and switch to using that instead.

@markmellors
Copy link
Contributor Author

sort of. There's the steering servos, the RC receiver and the I2C pins (IMU). certainly not an urgent issue but at least it's something I'm able to address :-)

oh, I just realised almost all the pins are defined in motor2040.hpp, not just the ones they're using for something. that does change things a bit, I guess I could switch to using their pin names instead of pin numbers. Weirdly, the I2C pins (20 & 21) aren't defined there though, which is what triggered me to first start thinking about this. They're not the pico's default I2C pins are they?

@robberwick
Copy link
Collaborator

yeah, the lack of i2c pins in that header file is puzzling. surely someone must have wanted to use them before now? anyhow. 20 and 21 aren't the defaults for an i2c bus as such - there are 2 buses, and there's a bunch of pin pairs that can be used for either bus. 20 and 21 just happen to be the ones that are wired up on that board.

@robberwick
Copy link
Collaborator

robberwick commented Jan 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants