-
Notifications
You must be signed in to change notification settings - Fork 37
Add Cosmolab board support and update to libdaisy v8.0.0 #92
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
Open
fmulassano
wants to merge
22
commits into
electro-smith:main
Choose a base branch
from
fmulassano:libdaisy_update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add cosmolab.json board configuration - Add cosmolab case in oopsy.js - Add cosmolab mapping in oopsy-objectmappings.txt - Add cosmolab to board selection menu - Add oopsy_cosmolab.maxpat template
- Add component_defs.json with CD4021Switch and other component definitions - Add component_defs_patchsm.json and component_defs_petalsm.json - Add json2daisy.js for JSON-based board configuration - Add daisy_glue.js helper functions These files are required for cosmolab.json and other JSON-based board configurations.
- Add require statements for json2daisy.js and daisy_glue.js - Replace generate_target_struct with json2daisy.generate_header - Use json2daisy.format_map for component mapping - Add 'using json2daisy::Daisy;' in generated C++ code - Add hardware.includes support in Makefile - Add APP_TYPE and petal_sm support in Makefile This enables support for CD4021Switch and other components defined in component_defs.json
…patibility - Update genlib_daisy.h to use hardware.som instead of hardware.seed - Replace sub_board with som pointer - Update component_defs.json to use GPIO::Pull::PULLUP instead of Switch::PULL_UP - Add support for OOPSY_OLD_JSON flag for backward compatibility
- Replace StartRx() with DmaListenStart() for MIDI reception
- Replace Readable()/PopRx() with DMA buffer reading
- Update Pin syntax from {DSY_GPIOB, 7} to Pin(DSY_GPIOB, 7)
- Add MidiRxCallback for DMA circular buffer handling
- Update GateIn: use Pin directly instead of dsy_gpio_pin pointer - Update GateOut: use GPIO class with Config instead of dsy_gpio - Update Switch: use GPIO::Pull::PULLUP instead of Switch::PULL_UP - Fix Pin constructor: use GPIOPort::B instead of DSY_GPIOB
- Replace hardware.seed.AudioSampleRate() with som->AudioSampleRate() - Replace hardware.seed.AudioBlockSize() with som->AudioBlockSize() - Update Switch PULL_UP to GPIO::Pull::PULLUP - Add OOPSY_OLD_JSON compatibility check
…upport - Document all breaking changes and API migrations - Explain why each change was necessary - Add Cosmolab board feature list - Include migration notes and disclaimer - Credit Francesco Mulassano (Faselunare) for the update
Major Changes: - Added CD4021SwitchInverted component for hardware with pull-up resistors - Fixed PCA9685 LED driver support via LoopProcess() call - Updated to libDaisy v8.0.0 (from v5.x) - Added Cosmolab board definition (cosmolab.json v1.0.0) Technical Details: - LoopProcess() fix enables I2C peripherals (PCA9685 LEDs, etc.) - CD4021SwitchInverted supports inverted button polarity - Follows libDaisy POLARITY_INVERTED pattern - Fully backward compatible Hardware Support: - 32 LED-backlit buttons via CD4021 shift registers - 48 LEDs total via PCA9685 I2C drivers (32 buttons + 16 for knobs) - 8 potentiometers with dual LED feedback - 4 CV in, 2 CV out, 1 trig in, 1 trig out (Eurorack) - MIDI I/O, OLED display (64x32) Documentation: - COSMOLAB_README.md - Complete technical documentation - CHANGELOG.md - Version history - COSMOLAB_BOARDS_README.md - Board selection guide Tested: ✅ All features verified on actual Cosmolab hardware v1 Version: 1.0.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds support for the Cosmolab board by Faselunare and updates Oopsy to be compatible with libdaisy v8.0.0.
Changes
Breaking Changes Addressed
See README.md for detailed changelog.
Testing
Credits
Update performed by Francesco Mulassano (Faselunare)