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

Brainboardz_Neuron Updated Pins and Defined Objects #7705

Merged
merged 6 commits into from
Mar 10, 2023

Conversation

BrainBoardz
Copy link

I have added a board_spi declaration in pins.c. I have also corrected erroneous pin definitions for the SCL and SDA pins (these are actually supposed to be GPIO 8 and GPIO 9) in mpconfigboard.h.

I tried to commit this upstream but for some reason that is not working properly.

Removed "CD" from the pin definitions for (MISO, MOSI and SCK pins). Specifically Pins 13, 15 and 14. Added Pin definitions for I2C and SPI objects
Add #defines for SPI_BUS_SCK, SPI_BUS_MOSI and SPI_BUS.MISO
Chnage the SDA pin define to GPIO9 and SCL pin define to GPIO8. This now matches the currect GPIO pins numbers in pins.c
The previous GPIO pins number in mpconfigboard.h were incorrect
Added a comma (,) to the the end of the definition for board_spi_obj
Changed incorrect i2C pins assignment in mpconfigboard.h (changed SDA/SCL to GPIO 8/GPIO 9. 
Rename  SD_MOSI, SD_MISO and SD_SCK to MOSI, MISO and SCK
Added SPI define in mpconfigboard.h for SPI
@dhalbert
Copy link
Collaborator

Note that it's better to create a branch for your PR rather than edit your main branch. If you do the latter then it can get out of sync with the upstream main branch. See https://learn.adafruit.com/contribute-to-circuitpython-with-git-and-github/always-work-on-a-branch#create-your-new-branch-2992239. Don't worry about changing this now, but be aware your main branch may diverge.

I tried to commit this upstream but for some reason that is not working properly.

I'm not sure what you meant here but any changes to adafruit/circuitpython are via pull requests only.

@BrainBoardz
Copy link
Author

BrainBoardz commented Mar 10, 2023 via email

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes!

@dhalbert dhalbert merged commit d16c53b into adafruit:main Mar 10, 2023
@BrainBoardz
Copy link
Author

BrainBoardz commented Mar 10, 2023 via email

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.

2 participants