Commit Graph

1786 Commits

Author SHA1 Message Date
Dan Halbert
46bcd103a7 Revert "Reset UART on deinit, reduces power consumption" (from #8089)
This reverts commit ec1e7a03b3.
2023-09-12 11:24:49 -04:00
Dan Halbert
05267948b4 Revert "formatting" (from #8089)
This reverts commit 4bb475b930.
2023-09-12 11:24:02 -04:00
Zelin Cai
4dc9b0dde7 Added Makerdiary nRF52840 Connect Kit.
Signed-off-by: Zelin Cai <zelin@makerdiary.com>
2023-07-23 10:52:28 -04:00
Dan Halbert
fde6342705
Revert "nrf: prevent I2C hangs" 2023-06-23 13:20:41 -04:00
Dan Halbert
ffebb5af8a
Merge pull request #8094 from furbrain/fix_i2c_hangs
Fix for #8093
2023-06-23 13:12:24 -04:00
Phil Underwood
a753490899 Refactor out test for bus sanity state 2023-06-20 23:32:00 +01:00
Phil Underwood
028a81922b
Remove unneeded #define from I2C.c 2023-06-20 13:36:12 +01:00
Phil Underwood
fae14cc55b Fix for #8093
This adds a check to make sure that SDA and SCL are in a sane condition
before starting any I2C operation. If they are not it tries to rectify it,
and then returns an error code if unable to do so.
2023-06-19 22:20:46 +01:00
Phil Underwood
4bb475b930 formatting 2023-06-17 22:49:47 +01:00
Phil Underwood
ec1e7a03b3 Reset UART on deinit, reduces power consumption 2023-06-17 22:42:12 +01:00
Jeff Epler
d5a2293784 nrf52840: allow 12 voices
In my testing, the feather bluefruit can do 12 voices at 48kHz!
This is a simple case (no LFOs, no ring modulation) so other situations might
require a lower sample rate, fewer voices, or both.

The sound is a little artifacty & low-fi but I think that's down to the speaker
& use of PWM instead of I2S.
2023-06-09 11:30:12 -05:00
Dan Halbert
6cf7e45f10
Merge pull request #8037 from jpconstantineau/fix-PCA10100
fix to make buttons and leds compatible with pca10056
2023-06-08 12:56:09 -04:00
Dan Halbert
e631350b9b
Merge pull request #8070 from dhalbert/port-specific-submodules
Provide port-specific fetch of submodules
2023-06-06 14:46:39 -04:00
Dan Halbert
38f6fa27e3 fetch-port-submodules; fetch-all-submodules 2023-06-05 17:23:34 -04:00
Pierre Constantineau
6fd700eb11 added HW_LED_STATUS as requested 2023-06-01 10:56:43 -06:00
hyx0329
d73f390a4d
M60 keyboard: allow run on battery
This also expose the battery control pin as BATTERY_ENABLE,
so users can fully power off the keyboard.
2023-05-28 12:11:34 +08:00
Pierre Constantineau
60ce38ed8b fix trailing space of pins.c 2023-05-26 13:30:32 -06:00
Pierre Constantineau
325037b75e fix to make buttons and leds compatible with pca10056 2023-05-26 13:17:05 -06:00
Phil Underwood
bcd9d6bacc Add memorymap to nrf52840 devices only 2023-05-07 18:21:22 +01:00
Phil Underwood
fe90cc759a remove excess line 2023-05-07 16:09:44 +01:00
Phil Underwood
a31dc5cc70
Merge branch 'adafruit:main' into main 2023-05-07 16:07:16 +01:00
Phil Underwood
3abcc6a2c3 Add memorymap support for the nRF processors.
This gives very permissive access to the internals of the microprocessor.
It needs the user to be **very** careful that they do not break things
2023-05-07 15:58:25 +01:00
Scott Shawcroft
d5b747b305
Fix board inits 2023-04-21 13:23:01 -07:00
Scott Shawcroft
097af804cd
Fix ticks
In #7497 port_background_task was renamed to port_background_tick
but the actual call site wasn't changed. This meant that it was
no longer called!

Rename more functions from task to tick to make it clearer which is
which.
2023-04-07 09:49:51 -07:00
hathach
a8abe8e705
remove lib from exludes, fix all remaining typos 2023-03-23 13:59:08 +07:00
hathach
fecc1bdedb
fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
MicroDev
b17364a447
conditionally build all languages 2023-03-04 15:08:54 +05:30
Dan Halbert
859a48723f
Merge pull request #7633 from tannewt/fix_imx_pwm
Fix `pwmio` on iMX RT.
2023-02-28 14:11:06 -05:00
Dan Halbert
f9831b3bbc
Merge pull request #7639 from adafruit/8.0.x
Merge 8.0.x up to main
2023-02-24 19:32:09 -05:00
Scott Shawcroft
b79661d631
Alphabetize, fix typo and remove incorrect comment 2023-02-23 14:34:54 -08:00
Scott Shawcroft
1acf65ee22
Fix pwmio on iMX RT.
It now handles deinit, never_reset and sharing tracking. PWM
now runs in the WAIT state as well during a time.sleep().

_reset_ok() was removed because it was called in one spot right
before deinit().

Some PWMOut were also switched to a bitmap for use instead of
reference count. That way init and deinit are idempotent.

Fixes #6589. Fixes #4841. Fixes #4541.
2023-02-22 11:22:39 -08:00
Scott Shawcroft
de5f58a61d
Merge branch 'main' into banglejs2 2023-02-21 12:04:28 -08:00
Dan Halbert
2684aeb838 don't check for RX and TX both none in ports: now checked in shared-bindings 2023-02-20 19:11:16 -05:00
Scott Shawcroft
931c7c1c51
Add Bangle.js 2, JDI memory displays and ACeP epd
This 2-in-1 PR started with the goal of support the Bangle.js 2
smartwatch with *no USB*.
* Adds "secure" DFU build support with a committed private key.
* Adds 3-bit color support with one dummy bit for the JDI memory display
* Allows nrf boards to have a board_background_task() run in RUN_BACKGROUND_TASK.
  This is needed because the Bangle.js 2 uses the watchdog to reset.
* Renamed port_background_task() to port_background_tick() to indicate it
  runs on tick, not RUN_BACKGROUND_TASK.
* Marks serial connected when the display terminal is inited. This means
  that safe mode messages show up on the display.

ACep, 7-color epaper displays also pack 3 bits in 4. So, I added that
support as well.
* Adds 3-bit ACeP color support for 7-color e-paper displays. (Not
  watch related but similar due to color depth.)
* Allows a refresh sequence instead of a single int command. The 7" ACeP
  display requires a data byte for refresh.
* Adds optional delay after resetting the display. The ACeP displays
  need this. (Probably to load LUTs from flash.)
* Adds a cleaning phase for ACeP displays before the real refresh.

For both:
* Add dither support to Palette.
* Palette no longer converts colors when set. Instead, it caches
  converted colors at each index.
* ColorConverter now caches the last converted color. It should make
  conversions faster for repeated colors (not dithering.)
2023-02-15 15:03:40 -08:00
Dan Halbert
d8231f1588 Implement safemode.py 2023-02-13 18:26:38 -05:00
Dan Halbert
f826904995
Merge pull request #7468 from DavePutz/issue_6975
Fixes for microcontroller.on_next_reset() on NRF
2023-01-19 19:03:46 -05:00
root
a30f69aaed Fixes for microcontroller.on_next_reset() on NRF 2023-01-19 15:58:03 -06:00
Scott Shawcroft
dca66eb98c
Watch for ctrl-c over BLE workflow serial
Before this, it was impossible to interrupt a running program over
BLE.
2023-01-18 16:28:35 -08:00
Pontus Oldberg
14417a21d1
Merge branch 'adafruit:main' into main 2023-01-03 09:31:49 +01:00
Dan Halbert
cc92ce4820 Use memory fence when disabling cache to avoid -O2 problems 2022-12-29 19:49:40 -05:00
Pontus Oldberg
9f266c361b Initializing external flash SPI speed to SPI_FLASH_MAX_BAUDRATE, instead of using driver default speed (32MHz), before probing JEDEC identifier. 2022-12-21 16:33:06 +01:00
Jeff Epler
56d4f8f552
can't use object-based calls at this time 2022-12-13 11:32:33 -06:00
Jeff Epler
31fd7cb51b
Merge remote-tracking branch 'origin/main' into dotenv-becomes-toml 2022-12-11 11:06:51 -06:00
Pontus Oldberg
66eca9c35e Updated formatting. 2022-12-11 17:25:26 +01:00
Pontus Oldberg
f7e735b492 Added LDO control pin, new flash variants and support functions for the LDO control pin. 2022-12-11 17:11:24 +01:00
Pontus Oldberg
9ef5b7d118 Merge branch 'main' of https://github.com/PontusO/circuitpython 2022-12-11 13:02:03 +01:00
Pontus Oldberg
da413094f8 Added LDO control pin and initial setup 2022-12-11 13:01:00 +01:00
Jeff Epler
2bf5d2bc07
Merge remote-tracking branch 'origin/main' into dotenv-becomes-toml 2022-12-10 15:39:50 -06:00
Jeff Epler
3cb628d290
fix nrf build 2022-12-08 16:45:58 -06:00
Jeff Epler
3459fe322b
Withdraw the _environ module
This existed solely for testing, so expose it a different way during
the unix coverage build

Also turn off os.getenv support on samd21.
2022-12-08 15:33:10 -06:00