Scott Shawcroft
44de3d49a8
Speed up zero neopixel pulses.
...
SK6812 on 5v is pickier than WS2812 on 5v.
Hopefully fixes #1083 .
2018-08-20 17:04:46 -07:00
Jeff Epler
b0e33f6a11
atmel-samd: UART: allocate rx buffer in long-lived region
...
This is not strictly needed in order for #1056 to be resolved,
because the "make long-lived" machinery is unaware of this pointer.
However, as UARTs are assumed to be long-lived, this change is
beneficial because it moves the long-lived buffer into the upper
memory area with other long-lived objects, instead of remaining in
the low heap.
2018-08-08 19:21:57 -05:00
Dan Halbert
2e80f37709
Merge pull request #1096 from tannewt/tune_neopixel
...
Retune neopixel timings on SAMD51. They were too slow.
2018-08-07 21:33:12 -04:00
Scott Shawcroft
b0dd645e27
Retune neopixel timings on SAMD51. They were too slow.
...
Fixes #1083
2018-08-07 16:58:37 -07:00
Dan Halbert
8bb363f7c4
must set pull after setting direction with gpio_set_pin routines
2018-07-09 17:18:06 -04:00
mrmcwethy
d9723bb613
include RTC fix for SAMd51 in circuitpython build
2018-07-03 06:52:05 -07:00
Scott Shawcroft
074c5ea144
Merge pull request #977 from dhalbert/update_crickit_libs-2
...
update crickit-related libs
2018-07-03 12:04:05 -07:00
Dan Halbert
bf9981e8db
bring all frozen libraries up to date
2018-07-03 14:39:21 -04:00
Dan Halbert
7c9a0e2996
remove unnecessary extern in nrf/mphalport.c
2018-06-29 16:06:51 -04:00
Dan Halbert
7028a399c2
remove previously added esp8266/mphalport.{c,h}
2018-06-29 16:04:18 -04:00
Dan Halbert
2a0b857643
implement mp_hal_delay_us() to not need interrupts, and use it
2018-06-29 16:01:46 -04:00
Dan Halbert
b4fd77bb7c
fix nrf and esp8266 builds for OneWire fix
2018-06-29 00:00:05 -04:00
Dan Halbert
52a11547cb
fix OneWire timing and DigitalInOut.switch_to_input()
2018-06-28 23:32:20 -04:00
Dan Halbert
1f3de5174e
Freeze Adafruit_CircuitPython_Crickit into crickit builds
2018-06-26 19:49:55 -04:00
jerryneedell
de4cd1ee73
add pins D3/D4 to pins.c
...
fixes #948
2018-06-20 22:26:59 -04:00
Scott Shawcroft
05547b72ac
Switch to Feather52s full name to avoid confusion with the nrf52840 later.
...
Fixes #940
2018-06-18 10:51:04 -07:00
Dan Halbert
be5eb91df8
Merge pull request #938 from sommersoft/esp_busio_fix
...
ESP8266: Fix pin locking during busio.SPI.configure
2018-06-16 11:49:20 -04:00
Scott Shawcroft
a5e03b76a6
Split out the peripherals library in preparation of sharing with MakeCode.
2018-06-15 16:16:21 -07:00
sommersoft
23b6d33455
fixes #642 ; spi_init_gpio() is now bypassed for both construct and configure
2018-06-15 05:03:52 +00:00
Dan Halbert
fa814a32ce
Make Trinket M0 build fit; make RAMFS in vfs_fat_* tests be compliant with expected API
2018-06-14 21:02:12 -04:00
Dan Halbert
e724bc1c4e
Fix playing audio from SD card
2018-06-14 18:47:40 -04:00
Scott Shawcroft
618943d90a
Merge pull request #926 from nickzoic/circuitpython-nickzoic-716-pulseio-esp8266
...
Implement pulseio.PulseIn and PulseOut for ESP8266 #716
2018-06-12 18:33:16 -07:00
Scott Shawcroft
ee817a2fa8
Correct UART reads to return error on timeout.
...
This causes read to correctly return None instead of b''.
Fixes #874
2018-06-12 14:03:27 -07:00
Dan Halbert
4691b30c02
PDMIn: turn serializer on when starting DMA
2018-06-12 12:35:51 -04:00
Scott Shawcroft
73dadb0669
Update to the latest ASF4 which includes an I2C timeout extension while waiting for clock stretching.
...
Fixes #778
2018-06-11 18:37:48 -07:00
Dan Halbert
068ffd04a6
Merge pull request #919 from adafruit/jerryneedell-patch-2
...
fix #918
2018-06-10 09:17:49 -04:00
Nick Moore
f72dcc64e6
Fixes #918 (PulseIn.get_paused) ...
2018-06-10 22:37:15 +10:00
Nick Moore
b25cbd340b
Merge commit '2129bbe160278f7cd2cece939f81900a41f8aa86' into circuitpython-nickzoic-716-pulseio-esp8266
2018-06-10 22:08:58 +10:00
Nick Moore
972b03850f
Merge branch 'master' into circuitpython-nickzoic-716-pulseio-esp8266
2018-06-10 22:01:35 +10:00
jerryneedell
8150150a24
return "false" for stub call
...
See #918 for discussion
2018-06-10 07:11:44 -04:00
jerryneedell
2129bbe160
Update PulseIn.c
2018-06-10 07:08:56 -04:00
jerryneedell
5724fd795a
fix #918
...
Add stub for common_hal_pulseio_pulsein_get_paused to make ESP8266 build compatible with PR #901
2018-06-10 05:59:20 -04:00
Dan Halbert
b2d98edb4e
Merge pull request #901 from tannewt/pulseio_too_fast
...
Prevent freezing USB during high frequency PulseIn.
2018-06-08 17:59:06 -04:00
Scott Shawcroft
8fb34a5846
Use bool not int.
2018-06-08 14:57:20 -07:00
Scott Shawcroft
8195df1b55
Stub out get_paused in nrf builds.
2018-06-08 14:01:54 -07:00
Scott Shawcroft
66b79723b6
Add code size analysis tool and shrink samd.clock a smidge.
2018-06-08 12:56:32 -07:00
Scott Shawcroft
769788d3c7
Turn off USB pin objects since they are always used for USB.
2018-06-08 12:56:32 -07:00
Scott Shawcroft
383bf9a59e
Wait for the DFLL to be stable.
2018-06-08 12:56:32 -07:00
Scott Shawcroft
07a8899c72
Support M4
2018-06-08 12:56:32 -07:00
Scott Shawcroft
2fbab8067a
Prevent freezing USB during high frequency PulseIn.
...
We now track the last time the background task ran and bail on the
PulseIn if it starves the background work. In practice, this
happens after the numbers from pulsein are no longer accurate.
This also adjusts interrupt priorities so most are the lowest level
except for the tick and USB interrupts.
Fixes #516 and #876
2018-06-08 12:56:32 -07:00
Dan Halbert
218930d18b
Check for PDMIn DMA getting stuck.
2018-06-08 08:23:52 -04:00
Nick Moore
6af1fbacc9
Work on pulseio.PulseOut for #716 ESP8266
...
Switch to ets_delay_us but the PWM is still way too slow to be useful.
2018-06-08 16:41:42 +10:00
Nick Moore
011edf2472
Clean up interrupt handling for pulseio.PulseIn implementation for #716 ESP8266
2018-06-08 15:31:16 +10:00
Nick Moore
c4cf1c5221
Initial pulseio.PulseOut implementation for #716 ESP8266
2018-06-08 15:28:05 +10:00
Nick Moore
7adc69baf9
Initial pulseio.PulseIn implmentation for #716 ESP8266
2018-06-08 15:27:59 +10:00
Kattni Rembor
ba7e0e2f86
Add Adafruit to other M4 board name strings
2018-06-07 13:39:04 -04:00
Kattni Rembor
7b2875d54a
Add Adafruit to board name string
2018-06-07 13:33:13 -04:00
Kattni Rembor
0ab2a60dcd
Update ItsyBitsy board name to one word
2018-06-07 13:12:44 -04:00
Dan Halbert
9ba6990228
Feather M0 Express build with Crickit libraries
2018-06-05 18:21:47 -04:00
Dan Halbert
74ced174ce
Merge pull request #898 from dhalbert/feather_m4_d4
...
add PA14 as D4 to Feather M4 Express
2018-06-05 11:41:31 -04:00