Dan Halbert
0ec99b37e0
handle 100% duty cycle; improve actual_frequency calc
2021-02-13 13:16:49 -05:00
Dan Halbert
3e4328140c
fix off-by-one PWM top issue
2021-02-12 15:53:31 -05:00
Scott Shawcroft
191b143e7b
Add PWM based audio playback
...
See
https://learn.adafruit.com/circuitpython-essentials/circuitpython-audio-out
to get started.
Fixes #4037
2021-02-09 15:38:33 -08:00
Scott Shawcroft
b19c700d4a
Merge pull request #4165 from DavePutz/issue_4143
...
Issue 4143 - Fixed marking a PWM slice incorrectly as variable frequency
2021-02-09 14:30:39 -08:00
root
9a28f0bf45
Fix check for variable PWM frequency
2021-02-09 15:22:59 -06:00
Dan Halbert
3c99b09993
Merge pull request #4160 from gamblor21/rp2040_neopixel_pin_fix
...
RP2040 Set the neopixel pin as output after PIO use
2021-02-08 17:57:30 -05:00
gamblor21
386b49c3e1
Set the pin as output after PIO use
2021-02-08 15:13:37 -06:00
Jeff Epler
5423e4966c
rp2pio: Transfer up to 32 bytes before checking background tasks
...
@Jerryneedell noticed that this problem affected strips short enough
to not use the DMA peripheral, thanks for the hot tip!
Instead of checking for background tasks after every byte transfer,
try up to 32 transfers before attending to background tasks.
This fixes the problem I was seeing on my 5-pixel circuit.
Closes #4135 .
2021-02-08 08:35:07 -06:00
Scott Shawcroft
22dc7d5359
Update to the very latest SDK w/GP15 restore
...
Also adds unique id support
Fixes #4039 and hopefully #4107
2021-02-05 18:44:06 -08:00
Jeff Epler
6e153d9948
raspberrypi: implement reset, reset_to_bootloader
...
This makes all the following work:
* normal microcontroller.reset()
* reset into safe mode or UF2 bootloader via microcontroller.on_next_reset()
* reset into UF2 bootloader via the "1200 baud trick"
The implementation of reset_cpu is from micropython.
2021-02-04 12:07:50 -06:00
BiffoBear
2656c84b01
Initial commit. Edited error messages in .c files
2021-02-03 05:49:40 +07:00
Scott Shawcroft
8789a2c8a9
Merge pull request #4110 from microDev1/rtc-rp
...
RP2040: Support for RTC
2021-02-01 19:47:44 -08:00
microDev
ec03267035
rtc implementation for rp2040
2021-02-02 00:00:00 +05:30
Dan Halbert
459f323247
Merge pull request #4087 from DavePutz/cpu_temp_doc
...
Fixing microcontroller.cpu on multi-core cpus and adding microcontroller.cpus
2021-02-01 12:50:37 -05:00
microDev
34fe152fcf
extend include path
2021-01-30 14:00:14 +05:30
root
67f128c0cf
Fixing microcontroller.cpu on muti-core cpus and adding microcontroller.cpus
2021-01-28 14:42:39 -06:00
microDev
a54b57ea40
watchdog implementation for rp2040
2021-01-28 15:15:15 +05:30
Dan Halbert
29e672fe86
Merge pull request #4071 from tannewt/rp2040_uart_error
...
Raise an error on UART use
2021-01-26 15:22:02 -05:00
Scott Shawcroft
b42e94ee2c
Raise an error on UART use
2021-01-26 08:48:30 -08:00
Dan Halbert
be4cfdd3d6
Use TOTAL_GPIO_COUNT instead of magic number 30
2021-01-25 22:16:24 -05:00
Dan Halbert
0fa5aa359d
Stop treating pin 15 specially.
2021-01-25 16:07:01 -05:00
Scott Shawcroft
de6b05a17b
Fix DigitalInOut.pull on RP2040
...
It used to always return None.
Fixes #4035
2021-01-22 19:00:37 -08:00
Scott Shawcroft
6a6f22b0e6
pre-commit
2021-01-20 23:30:15 -08:00
Scott Shawcroft
733094aead
Add initial RP2040 support
...
The RP2040 is new microcontroller from Raspberry Pi that features
two Cortex M0s and eight PIO state machines that are good for
crunching lots of data. It has 264k RAM and a built in UF2
bootloader too.
Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf
2021-01-20 19:16:56 -08:00