circuitpython/ports/mimxrt10xx/common-hal
Jeff Epler cb5e1a1e98
mimxrt: Fix output frequency for samples that don't divide 192kHz
This makes all the samples from Dan's collection register as 440Hz
when playing on pwmio or i2sout, using https://webaudiodemos.appspot.com/pitchdetect/index.html
to detect the frequency played (all should show as A 440Hz; an error
of up to 20 "cents" should be treated as OK)

There's an audible carrier with PWM output and the 8kHz samples. This is
probably a limitation of the peripheral which is documented as being for
input signals of 44 kHz or 48 kHz; the carrier frequency is a fixed
multiple of the sample frequency.

Closes #7800
2023-03-28 10:18:28 -05:00
..
analogio Switch iMX RT sdk to NXP repo 2023-03-21 16:21:57 -07:00
audiobusio mimxrt: Fix output frequency for samples that don't divide 192kHz 2023-03-28 10:18:28 -05:00
audiopwmio get rid of another debug print 2023-03-27 10:52:52 -05:00
board Add license to some obvious files. 2020-07-06 19:16:25 +01:00
busio Switch iMX RT sdk to NXP repo 2023-03-21 16:21:57 -07:00
digitalio Add IncrementalEncoder for mimxrt1011 2023-03-23 09:14:58 -05:00
microcontroller Merge remote-tracking branch 'origin/main' into mimxrt10xx-rotaryio 2023-03-23 13:02:12 -05:00
neopixel_write Merge branch 'main' into add-codespell 2023-03-23 14:09:57 +07:00
os Switch iMX RT sdk to NXP repo 2023-03-21 16:21:57 -07:00
pwmio Switch iMX RT sdk to NXP repo 2023-03-21 16:21:57 -07:00
rotaryio move pin change interrupt stuff to peripherals 2023-03-23 09:28:14 -05:00
rtc Switch iMX RT sdk to NXP repo 2023-03-21 16:21:57 -07:00
supervisor run code formatting script 2021-03-15 19:27:36 +05:30
usb_host message consolidation and more use of validators 2022-05-19 15:38:37 -04:00