electro-smith / libDaisy

Hardware Library for the Daisy Audio Platform
https://www.electro-smith.com/daisy
MIT License
312 stars 131 forks source link

Global GPIO/Pin Migration #584

Open stellar-aria opened 1 year ago

stellar-aria commented 1 year ago

This continues the work started in #581, updating references to dsy_gpio_pin and dsy_gpio to instead use the new C++ style GPIO and Pin classes.

As per the discussion with @stephenhensley, this is a breaking change for board header files (their GPIO variables are now updated), but does not include any of the commits removing the now-obsolete, deprecated code. As such, the API as a whole remains largely unaltered. The commits dealing with code removal will be submitted in a future PR once the documentation work discussed has been completed and preparations begin for a new major revision.

Minor breaking API changes:

DaisySeed, DaisyPatch, daisy::patch_sm, and DaisyField now use GPIO instead of dsy_gpio.

stephenhensley commented 1 year ago

Hi @stellar-aria

Thanks for another stellar (pardon the pun) PR. Quickly looking through everything I think everything looks good. So exciting to see some of the oldest bits of the library catching up with the times.

There are a few more in-progress PRs that will get wrapped up/merged within the next week (MIDI fixes, the ADC speed feature, etc.) as part of a new minor release. Once that's out, I think this would be a good first step toward the larger-scope cleanup including the HAL update in #582, etc. that we'd been discussing.

I'll keep you updated if we find anything here that needs changing, but unless anything got missed, or there are any typos, I think this might just be good to go.

stellar-aria commented 1 year ago

Just merging in the upstream changes to make sure everything integrates cleanly. Had to do some conflict resolution to get everything to mesh smoothly.

stellar-aria commented 4 months ago

This now matches up with the latest master and should be a clean merge.

stephenhensley commented 4 months ago

@stellar-aria thanks for syncing this up! We're starting this week on review/testing on this one (should go a lot faster than the HAL stuff).

We'll keep you posted if anything comes up.

beserge commented 4 months ago

Made some changes:

beserge commented 4 months ago

Other than the stuff I edited, I went through and tested that everything works as intended. I'm ready to sign off! :shipit: