Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/compile_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
# SAMD boards. There is also an Adrafruit fork of this core, and the two seem to have diverged, considerably. I have no idea on the differences.
- fqbn: arduino:samd:adafruit_circuitplayground_m0
platforms: |
- name: arduino:samd

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion MozziGuts_impl_SAMD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void startAudio() {
}

#endif
analogWriteResolution(10);
analogWriteResolution(AUDIO_BITS);
#if (EXTERNAL_AUDIO_OUTPUT != true)
analogWrite(AUDIO_CHANNEL_1_PIN, 0);
#endif
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ Some of the differences for Teensy 4.*:

- Contrary to the Teensy 3, the Teensy 4 do not have any DAC. The output is done on pin A8 (PWM) by default (editable in `AudioConfigTeensy4.h`

### SAMD21 architecture (Arduino Circuitplayground M0 and others)
port by Adrian Freed

- Currently, only output on the inbuilt DAC (pin DAC0) is supported. So, obviously, boards without a DAC are not yet convered (in theory you can still use EXTERNAL_AUDIO_OUTPUT)
- Output resolution is fixed at 10 bits. If your board supports more, configure in AudioConfigSAMD21.h
- mozziAnalogRead() and AUDIO_INPUT are not implemented (contributions welcome)
- We don't have a lot of data, which boards this port has been tested on. Success or not, let us know, if you are using Mozzi on SAMD21 boards

### ESP8266
port by Thomas Friedrichsmeier

Expand Down