Jeff Epler
a183425e00
ports/nrf: Implement audioio.AudioOut using PWM
...
This implements AudioOut, with known caveats:
* pause/resume are not yet implemented (this is just a bug)
* at best, the sample fidelity is 8 bits (this is a hardware limitation)
Testing performed:
My test system is a Particle Xenon with a PAM8302 op-amp
https://www.adafruit.com/product/2130 and 8-ohm speaker. There's no
analog filtering between the Xenon's PWM pin and the "A+" input of
the amplifier; the "A-" pin is disconnected. It is powered from
VUSB.
I used pin D4, which is *NOT* listed as a low-speed-only pin, but
the code does NOT switch the pin to high drive. This is related to
an open issue for general inability to set drive level for pins
being used by a "special function" on nrf:
https://github.com/adafruit/circuitpython/issues/1270
Nothing about the code I've written should limit the usable pins.
All samples I played were 16-bit, generally monophonic at 11025Hz
and 22050Hz from the Debian LibreOffice package.
2019-07-26 07:57:11 -05:00
Jeff Epler
2bc704fe07
ports/nrf: factor out routines for allocating, freeing pwm channels
2019-07-26 07:52:37 -05:00
Jeff Epler
7b9d26cefe
WavFile.h: include vfs_fat.h for pyb_file_obj_t definition
...
Without such a definition, this header is not self-contained, but
requires whoever included it to also include vfs_fat.h
2019-07-26 07:52:37 -05:00
Jeff Epler
54cde56ec5
audiopwmio: Add the shared files for this new module
2019-07-26 07:52:37 -05:00
Scott Shawcroft
d99d3bd471
Merge pull request #2010 from jepler/audiocore
...
audiocore: Factor from audioio
2019-07-25 13:52:30 -07:00
Scott Shawcroft
485f06e36f
Remove unneeded headers
2019-07-25 11:58:27 -07:00
Jeff Epler
6b44e40ee8
audiocore: Factor from audioio
...
When nrf pwm audio is introduced, it will be called `audiopwmio`. To
enable code sharing with the existing (dac-based) `audioio`, factor
the sample and mixer types to `audiocore`.
INCOMPATIBLE CHANGE: Now, `Mixer`, `RawSample` and `WaveFile` must
be imported from `audiocore`, not `audioio`.
2019-07-25 06:44:26 -05:00
Scott Shawcroft
8ec2d6ce49
Merge pull request #2007 from hierophect/F4xx-port-setup
...
Add STM32 Discovery F412ZG and F411RE support
2019-07-24 18:49:48 -07:00
Hierophect
295afaaf6c
Update SystemCoreClock macro
2019-07-24 16:31:25 -04:00
Hierophect
a63df51893
Requested changes, general cleanup
2019-07-24 14:21:27 -04:00
Dan Halbert
f39a6f40fd
Merge pull request #2009 from hathach/tinyusb-update
...
update tinyusb lib to 0.5.x
2019-07-24 12:09:04 -04:00
hathach
5d03cda01a
whitespace
2019-07-24 16:49:13 +07:00
hathach
c921f6637f
update tinyusb lib to 0.5.x
2019-07-24 16:46:31 +07:00
Hierophect
172ab190b5
Revert tinyUSB issue
2019-07-23 17:15:13 -04:00
Hierophect
5ee5c35833
Doc error caused by submodule, misc cleanup
2019-07-23 15:28:48 -04:00
Hierophect
5cfde7b6ea
Switch to submodule for cube files
2019-07-23 14:37:30 -04:00
Hierophect
9c1487cff6
Python doc generator fixes
2019-07-23 13:48:59 -04:00
Dan Halbert
82ab998cd5
Merge pull request #1998 from tannewt/monocolor
...
Add support for grayscale displays
2019-07-22 22:30:28 -04:00
Scott Shawcroft
7cb2aa2d62
Merge pull request #1986 from AnthonyDiGirolamo/patch-1
...
Update Arch Linux ARM compiler installation instructions
2019-07-22 19:29:53 -07:00
Dan Halbert
3e04744f75
Merge pull request #2006 from ntavish/patch-1
...
Fix incorrect preprocessor define NRFX_TIMER3/4
2019-07-22 22:24:03 -04:00
Hierophect
10aac2be05
Switch to SAMD compatible tinyusb commit
2019-07-22 15:08:58 -04:00
Hierophect
ee75f1aaaf
Fix LED misuse interfering with atmel builds
2019-07-22 14:59:06 -04:00
Hierophect
f65404cc05
Cleanup missed items
2019-07-22 13:08:55 -04:00
Hierophect
58630a844a
Add feature conditionals and clean up
2019-07-22 12:58:28 -04:00
Tavish Naruka
e4d92a3aad
Fix incorrect preprocessor define NRFX_TIMER3/4
...
Should be NRF_TIMER3 and NRF_TIMER4
2019-07-22 20:07:05 +05:30
Scott Shawcroft
1d1b8703b6
Review feedback including NO_BRIGHTNESS_COMMAND macro
2019-07-19 16:11:13 -07:00
Scott Shawcroft
b9b9ef227f
Turn off bitbanging on Hallowing to save code space.
2019-07-19 16:10:33 -07:00
Scott Shawcroft
cdfc169ab6
Correct typo in line meant to turn off frequencyio on M0 which saves 2k code space.
2019-07-19 16:10:32 -07:00
Scott Shawcroft
e4611b6e3e
Update translations
2019-07-19 16:10:25 -07:00
Scott Shawcroft
6797ec6ed3
Add support for grayscale displays that are < 8 bit depth.
...
This also improves Palette so it stores the original RGB888 colors.
Lastly, it adds I2CDisplay as a display bus to talk over I2C. Particularly
useful for the SSD1306.
Fixes #1828 . Fixes #1956
2019-07-19 16:06:11 -07:00
Hierophect
10b9ca5a92
pin selection cleanup, tinyUSB update
2019-07-19 15:09:45 -04:00
Scott Shawcroft
a98bfa628e
Merge pull request #2002 from ntavish/blip_improvements
...
Blip improvements
2019-07-19 10:52:08 -07:00
Tavish Naruka
724ce4acba
enable libraries needed by BlipBoy Shield
2019-07-19 18:48:08 +05:30
Hierophect
734012aa8b
Makefile cleanup
2019-07-18 17:55:57 -04:00
Hierophect
755b86e38b
Deinit-capable USB on 411
2019-07-18 17:17:46 -04:00
Scott Shawcroft
74be29cbf9
Merge pull request #1993 from dhalbert/ble-scanner
...
bleio: add central and scanner functionality, cleanup bleio API, some code restructure
2019-07-18 10:08:58 -07:00
Hierophect
43e8a4110f
Add missing files for DigitalIO
2019-07-17 14:18:01 -04:00
Hierophect
45e73c414a
fix gitignore
2019-07-17 14:14:03 -04:00
Hierophect
c588cc6db0
first pass of DigitalIO
2019-07-17 14:07:33 -04:00
Dan Halbert
1c31cf5f6a
sphinx fix
2019-07-16 21:03:36 -04:00
Dan Halbert
364ee62d10
Address review comments.
2019-07-16 19:53:36 -04:00
Dan Halbert
cb99546ea5
update frozen libraries
2019-07-11 18:56:29 -04:00
Dan Halbert
12b98be744
merge from master and make translate
2019-07-11 18:42:41 -04:00
Dan Halbert
1cf8a3e8d8
Merge remote-tracking branch 'adafruit/master' into ble-scanner
2019-07-11 18:42:16 -04:00
Dan Halbert
514d4146d3
Fix sphinx warnings.
2019-07-11 18:23:45 -04:00
Hierophect
f31a0d9cf5
Serial REPL support
2019-07-11 13:41:10 -04:00
siddacious
d12e1a8d74
Merge pull request #1990 from kattni/pyruler
...
Adding PyRuler to CircuitPython.
2019-07-10 12:28:43 -07:00
Hierophect
a0e6975b9d
Add some usb reference material, non functional
2019-07-10 14:26:57 -04:00
Kattni Rembor
582acdaa0a
Requested changes.
2019-07-09 16:12:24 -04:00
Kattni Rembor
d905958db1
Adding PyRuler to CircuitPython.
2019-07-09 16:02:39 -04:00