Dan Halbert
bbadc00599
Merge pull request #7577 from dhalbert/safemode-py
...
Implement safemode.py
2023-02-16 14:15:20 -05:00
Dan Halbert
d8231f1588
Implement safemode.py
2023-02-13 18:26:38 -05:00
Kamil Tomaszewski
3fdebd4f60
spresense: Add HDR camera support
2023-02-01 12:37:29 +01:00
Jeff Epler
346fff2e7c
cyw43 basic gpio support, hwaddr in boot_out
2022-09-28 10:06:33 -05:00
Dan Halbert
f63b26c534
address jepler's comments and further squeezes
2022-05-20 10:10:55 -04:00
Dan Halbert
a01dec1df9
message consolidation and more use of validators
2022-05-19 15:38:37 -04:00
Michael Wisslead
e63a327107
Bound PulseIn start indexes to maxlen.
2022-04-28 02:28:34 +00:00
Scott Gauche
a8d8651873
Canonical C style for half_duplex = true/false
2022-02-08 23:13:22 -05:00
Scott Gauche
89ad767b8f
add half_duplex to spi constructs in other ports but raise not implemented errors
2022-02-08 22:25:23 -05:00
Dan Halbert
cc410ad6a3
common-hal I2C combined write_read
2022-01-31 22:03:30 -05:00
Timon
a1052d5f73
Initial broadcom port for Raspberry Pi
...
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.
There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
and unnecessary for the vast majority of builds.
Fixes #4314
2021-11-22 14:54:44 -08:00
Kamil Tomaszewski
a0d960f2a1
spresense: update SDK to 2.3.0
2021-09-13 11:04:15 +02:00
Jeff Epler
2b64318a57
Update all implementations of common_hal_busio_spi_read to honor write_value
...
(nrf, rp2040, and cxd56)
.. as well as a misleading comment that said that read always output
zeros.
Closes : #3447
2021-08-18 10:20:40 -05:00
Scott Shawcroft
de796e2304
Move OneWire to onewireio
from busio
...
This will allow finer grained inclusion in 8.0.0
Fixes #5135
2021-08-12 10:47:14 -07:00
Scott Shawcroft
412eb87080
Switch to pin, frequency and duty_cycle PulseOut
...
Passing in a PWMOut still works but is deprecated. It will be
removed in CircuitPython 8.0.0
This also switches STM32 timer indices and channel indices to
0-based in our pin data rather than `- 1` everywhere. The latter is
more bug prone.
Most of the way for #3264
Tested on Metro M0, Metro M4, Feather S2, Feather nRF52840, Feather
STM32F4 and Arduino RP2040.
2021-07-26 18:35:49 -07:00
Scott Shawcroft
9cb8ce67ed
Merge pull request #4412 from kamtom480/spi_and_i2c
...
spresense: minor changes for i2c, spi and uart
2021-03-15 17:35:06 -07:00
Kamil Tomaszewski
ed3f636be5
spresense: empty rx uart fifo after initialization
2021-03-15 16:14:16 +01:00
Kamil Tomaszewski
22ed0abf6c
spresens: configure pin mode for i2c and spi
2021-03-15 16:14:16 +01:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Kamil Tomaszewski
18668f6e28
spresense: fix spi to work with only one data pin
2021-03-11 18:06:49 +01:00
Kamil Tomaszewski
76d0870fba
spresense: return error as positive value for i2c
2021-03-11 18:04:01 +01:00
Kamil Tomaszewski
f9d21637a3
spresense: return valid reference voltage
2021-03-02 14:25:22 +01:00
Kamil Tomaszewski
d68fdf3a3d
spresense: return the correct value for Analog In
2021-03-01 15:45:10 +01:00
Dan Halbert
f0564b4986
merge from upstream; complicated webusb merge
2021-02-11 18:50:02 -05:00
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
Kamil Tomaszewski
61687c81d8
camera: Pass width and height to take_picture()
2020-09-16 13:55:57 +02:00
Kamil Tomaszewski
ce7ee58e92
camera: Update camera module
2020-09-14 13:12:20 +02:00
Kamil Tomaszewski
c2fc592c2c
camera: Change API
2020-09-14 13:11:15 +02:00
Kamil Tomaszewski
1fde8ef9bc
spresense: Add support for camera
2020-09-14 13:11:15 +02:00
Lucian Copeland
8021da08d3
Fix problematic whitespace on pulseout parameter errors
2020-08-27 11:07:47 -04:00
Scott Shawcroft
1527a3ce92
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-24 18:25:18 -07:00
Scott Shawcroft
644d2ba7a2
Add more "extern" declarations for gcc10 compat
...
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
2020-08-21 14:39:37 -05:00
Scott Shawcroft
83deea0e03
Fix copy pasta and stub build
2020-08-21 11:17:42 -07:00
Scott Shawcroft
a5b01f7361
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-21 11:13:53 -07:00
Scott Shawcroft
6857f98426
Split pulseio.PWMOut into pwmio
...
This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.
Fixes #3211
2020-08-18 13:08:33 -07:00
Lucian Copeland
da75445cd5
Style changes, reposition runtime errors
2020-08-18 11:42:06 -04:00
Lucian Copeland
0fc730bc5a
Expand PulseOut API, debug cleanup
2020-08-14 16:36:02 -04:00
Jeff Epler
93b373d617
"pop from empty %q"
...
Saves 12 bytes code on trinket m0
2020-08-04 18:42:09 -05:00
Jeff Epler
c849b781c0
Combine 'index out of range' messages
2020-08-04 14:45:45 -05:00
Jeff Epler
dddd25a776
Combine similar strings to reduce size of translations
...
This is a slight trade-off with code size, in places where a "_varg"
mp_raise variant is now used. The net savings on trinket_m0 is
just 32 bytes.
It also means that the translation will include the original English
text, and cannot be translated. These are usually names of Python
types such as int, set, or dict or special values such as "inf" or
"Nan".
2020-08-04 13:34:29 -05:00
Kamil Tomaszewski
97355f8fb7
spresense: update SDK to 2.0.1
2020-07-06 17:13:28 +02:00
Kamil Tomaszewski
f4a2474447
spresense: Add support for sdioio
2020-07-02 15:26:59 +02:00
Jeff Epler
fcddfd0f39
Merge pull request #3083 from tannewt/esp32s2_busio
...
Add busio support for the ESP32-S2
2020-07-01 21:02:08 -05:00
Scott Shawcroft
965a40b6a1
Fix cxd56 function signature
2020-06-29 17:17:46 -07:00
Scott Shawcroft
a26102607e
Add UART support
2020-06-24 12:47:58 -07:00