Skip to content

Add Uno/Nano R4 support - #49

Merged
TMRh20 merged 16 commits into
masterfrom
UnoR4Support
Aug 9, 2026
Merged

TMRh20 merged 16 commits into
masterfrom
UnoR4Support

Conversation

@TMRh20

@TMRh20 TMRh20 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Add Uno/Nano R4 support via DAC & ADC

TMRh20 added 16 commits August 2, 2026 11:27
- Support 8-bit and 16-bit audio playback via DAC on A0
- ADC support for Uno R4
- Add example for ADC to DAC
Uno R4: Allocate timers dynamically & store values in global vars
- Add functionality to disable/enable DAC output
- Remove internal Serial.prints
- Forgot to set dacDisabled var in disableDAC() function
Select ADC channel to use, 1 corresponds with channel AN000 or pin A1, 2 is channel AN001 or pin A2 etc
- Match adcBuffer16 and dacBuffer16 so that both types will input or output 16-bit signed samples
- Modify examples to match changes above
- Clang formatting
- R_ADC0->ADSSTR[analogChannel] = 12; instead of R_ADC0->ADSSTR[0] = 1
- Add WiFi streaming example for R4
- Update library.properties and json for R4 devices
- Adjust buffer size to 512 from 256 for R4 devices
- Keep wifi stack updated while waiting for ADC results
- set adcReady to false in CTOR
- simple code to handle adc overruns
@TMRh20
TMRh20 merged commit 75eff7d into master Aug 9, 2026
1 check passed
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.

1 participant