Dan Halbert
e2a4c76a37
make nrf touchio be generic: now available for SAMD51 too
2019-08-18 08:44:10 -04:00
Jeff Epler
9d164965c9
localtime: don't hard-fault on argument type errors; handle localtime(float)
...
It turns out `mp_obj_int_get_checked` is not appropriate to call when
the argument is not of int or long type--the "checked" refers to guarding
against overflow/underflow, not type checking.
For compatibility with CPython, handle float arguments.
Closes : #2069
2019-08-17 20:49:25 -05:00
Jeff Epler
47d6dd843e
audioio: By default, be compatible with 4.x
...
Testing performed: That the shipped .mpy files on a PyPortal (CP 4.x)
still work (play audio) with this branch, instead of erroring because
`WaveFile` can't be found in `audioio`.
Flash usage grew by 28 bytes. (I expected 24, there must be some other
effect on size/alignment that I didn't predict)
2019-08-17 13:54:06 -05:00
Radomir Dopieralski
58b4cd4956
Improve docs for WaveFile buffer
2019-08-17 11:31:45 +02:00
Dave Astels
7a235f3746
Simplify to only extracting one line
...
Since this was the usecase, doing so simplifies the function significantly.
2019-08-16 21:10:09 -04:00
Scott Shawcroft
85d7398476
Merge pull request #2066 from dhalbert/ble-pairing
...
BLE: more features
2019-08-16 14:50:00 -07:00
Dan Halbert
630c92392a
address review comments; avoid calling common_hal_bleio_device... routines from shared-bindings
2019-08-16 15:18:53 -04:00
Dan Halbert
d244f7e070
Merge pull request #2067 from jepler/update-tinyusb-issue2057
...
update tinyusb
2019-08-16 10:28:46 -04:00
Jeff Epler
49d8ea648d
update tinyusb
...
This fixes a problem with USB MIDI messages 0xc and 0xd and
Closes : #2057
2019-08-16 07:40:37 -05:00
Dan Halbert
af29fc3ea8
make translate and fix sphinx issues
2019-08-15 21:54:52 -04:00
Hierophect
7dbf1a8caa
text fixes
2019-08-15 17:56:15 -04:00
Hierophect
1f42ce5f40
QOL fixes, compatibility fixes, attribution
2019-08-15 17:45:40 -04:00
Hierophect
bc7ba33892
Add uid fetch, revert USB hacks
2019-08-15 16:35:01 -04:00
Hierophect
a9d3ad86e5
Fix flash size, add filesystem disable flag
2019-08-15 15:55:33 -04:00
Hierophect
0fdb5a032f
Text fixes
2019-08-15 15:12:50 -04:00
Hierophect
620d3d14dd
Add conditional endpoints to descriptor script
2019-08-15 13:41:51 -04:00
Dan Halbert
485dd8a673
Merge pull request #2061 from dhalbert/cpblue
...
Initial board definition for Circuit Playground Bluefruit
2019-08-14 20:22:50 -04:00
Dan Halbert
fc772b42dd
Merge pull request #2063 from tannewt/fix_i2cdisplay
...
Fix I2CDisplay lifecycle and splash lifecycle.
2019-08-14 20:22:18 -04:00
Scott Shawcroft
b3de7efc07
Fix I2CDisplay lifecycle and splash lifecycle.
...
Fixes https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306/issues/2
2019-08-14 15:53:58 -07:00
Hierophect
e0a49532f0
more submodule fixes
2019-08-14 13:38:31 -04:00
Hierophect
60b4cd64f1
Fix desynchronized submodules
2019-08-14 13:29:15 -04:00
Hierophect
1539dca7f0
Add reset support, minor fixes
2019-08-14 13:14:42 -04:00
Dan Halbert
5877bd6036
CPblue initial definition
2019-08-13 22:12:36 -04:00
sommersoft
614962ad6f
non-DSP 8bit & 16bit functions working.
2019-08-13 19:30:42 -05:00
Hierophect
c4c55fffb1
Fixed remaining issues with flash organization and writing
2019-08-13 18:05:40 -04:00
Scott Shawcroft
583392a5c6
Merge pull request #2046 from brentru/add-pyportal-titano
...
Add PyPortal Titano
2019-08-12 16:01:10 -07:00
Scott Shawcroft
49cb72d585
Merge pull request #2047 from brentru/fix-terminalio-clearing
...
Fix Terminal's Tilegrid not Clearing
2019-08-12 16:00:43 -07:00
Scott Shawcroft
c565ea6c29
Merge pull request #2043 from jepler/issue1908
...
Improvements to Audio DMA management
2019-08-12 15:58:09 -07:00
Scott Shawcroft
9a6e603ced
Merge pull request #2050 from jepler/issue2048
...
usb_hid: Allow USB work to progress while waiting for tud_hid_ready
2019-08-12 15:16:21 -07:00
Scott Shawcroft
eb1a158c1b
Merge pull request #2053 from jepler/namedtuple-tuple_get
...
py: mp_obj_tuple_get: accept any item which can use tuple_getiter
2019-08-12 15:14:31 -07:00
Jeff Epler
e3c0428838
shared-module: Use RUN_BACKGROUND_TASKS
2019-08-11 08:53:02 -05:00
Jeff Epler
32a6d36405
shared-bindings: Use RUN_BACKGROUND_TASKS
2019-08-11 08:53:02 -05:00
Jeff Epler
11dd3a260e
nrf: Use RUN_BACKGROUND_TASKS
2019-08-11 08:53:02 -05:00
Jeff Epler
d9ee2d28a0
atmel-samd: Use RUN_BACKGROUND_TASKS
2019-08-11 08:53:02 -05:00
Jeff Epler
076cbcc4f8
cicuitpy_mpconfg.h: Define RUN_BACKGROUND_TASKS
...
In #2013 , @danh says:
My choice of where to put the semicolon is deliberate,
so that we can say
RUN_BACKGROUND_TASKS;
not have a redundant semicolon, and not confuse C code formatting.
2019-08-11 08:53:02 -05:00
Jeff Epler
568dfc73a9
cicuitpy_mpconfg.h: Alphebetize and standardize indentation
...
.. no semantic change intended
2019-08-11 08:53:02 -05:00
Hierophect
300dc68955
Further non-functional flash changes
2019-08-10 18:00:09 -04:00
Jeff Epler
3eb418af39
py: mp_obj_tuple_get: accept any item which can use tuple_getiter
...
.. such as namedtuple and attrtuple objects. This is the same
predicate used elsewhere in the file to check for adequate compatibility
between the types.
This was discovered due to crashing `time.time()` on the nrf port.
Closes : #2052
2019-08-10 10:10:41 -05:00
Jeff Epler
be5205d020
usb_hid: Allow USB work to progress while waiting for tud_hid_ready
...
Otherwise, examples like the one attached to the related issue fail
because tud_hid_ready never returns true.
Testing performed: Adapted the example to nrf particle xenon (it was
handy), removed dependency on IR, verified that the problem occurred
before this change, and that it was fixed after this change.
Closes : #2048
2019-08-10 09:33:45 -05:00
Hierophect
294d6dc867
Add flash functions and setup, fix msc descriptor bug
2019-08-09 19:58:54 -04:00
brentru
5a8846d33c
remove cruft from prv board
2019-08-08 15:12:01 -04:00
brentru
1b7e213be4
fix terminalio not clearing on construct
2019-08-08 14:58:51 -04:00
brentru
f87f48ab88
adding pyportal titano board definition
2019-08-08 14:56:28 -04:00
Dan Halbert
1570ef2dd4
specifying attribute length; fix up value setting
2019-08-07 23:49:09 -04:00
Jeff Epler
33b949abfa
samd: audio_dma, audio_background: Gate with CIRCUITPY_ defines
...
Some ports which actually don't have audioio or audiobusio were still
calling into audio_dma_background(). This wasn't an error until
the assignment to audio_dma_state in audio_dma_stop was added, though
it's not clear why.
2019-08-07 21:29:24 -05:00
Jeff Epler
500d1bb168
samd: audio_dma.c: Remove exceptions, just return early
...
These were most useful debugging, but because this code can be reached
"outside of the VM", it's not actually permitted to throw exceptions here.
2019-08-07 20:20:36 -05:00
brentru
1d4700cb6c
add pindefs for tft and tft control
2019-08-07 18:29:20 -04:00
Hierophect
c375a5d37f
Add pin and module support for F411
2019-08-07 18:12:13 -04:00
brentru
8f6eac98f3
add defs for pyportal titano
2019-08-07 17:10:31 -04:00
Dave Astels
239ad19765
Pass in preallocated result buffer
2019-08-07 15:27:43 -04:00