microDev
90b9ec6f2c
Initial Sleep Support
2020-10-27 16:13:22 -07:00
gamblor21
2374b0d013
Fixed whitespace issues
2020-10-27 09:13:14 -05:00
gamblor21
9ec224539b
Clean up
2020-10-27 08:43:51 -05:00
Scott Shawcroft
0d1649880f
Add grayscale EInk support
2020-10-26 16:59:59 -07:00
gamblor21
8a379830a8
Added doc and translations
2020-10-26 16:54:24 -05:00
Christian Walther
99a3750a2c
Fix lost board.SPI and board.I2C after explicitly deiniting them.
...
After calling board.SPI().deinit(), calling board.SPI() again would return the unusable deinited object and there was no way of getting it back into an initialized state until the end of the session.
2020-10-26 22:44:38 +01:00
Jeff Epler
c9f7df3bab
canio: Give implementation-specific limits for CAN.Listen
2020-10-26 10:06:49 -05:00
gamblor21
12d770b427
Added __probe_for_device
2020-10-25 10:15:45 -05:00
gamblor21
b637d3911e
Initial commit
2020-10-24 20:48:35 -05:00
Jensen Kuras
38c8248b9e
Merge branch 'main' into color-converter-transparency
2020-10-19 18:13:44 -05:00
Scott Shawcroft
c5d8c12e34
Merge pull request #3563 from gamblor21/recv_into_size_check
...
Add socketpool.socket.recv_into size check
2020-10-19 15:40:41 -07:00
Jensen Kuras
d2dada869c
displayio: Update docs for ColorConverter's make_opaque
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2020-10-19 17:27:01 -05:00
Scott Shawcroft
d606a3e968
Merge pull request #3484 from astrobokonon/esp32s2-morenet
...
Esp32s2: Expose more network parameters
2020-10-19 15:07:20 -07:00
Jensen Kuras
575b2e607b
Merge branch 'main' into color-converter-transparency
2020-10-16 19:55:24 -05:00
Jensen
74c07a4bdc
displayio: Add in opaque pixel option for future
2020-10-16 19:50:41 -05:00
Mark
8e6d3e5b91
Merge branch 'main' into recv_into_size_check
2020-10-16 15:52:45 -05:00
Ryan T. Hamilton
9d840aab0b
Cleaned up and now testing
2020-10-15 23:45:11 -07:00
Ryan T. Hamilton
b336039aab
Disable the long way and return an ap_info object
...
still needs work and cleanup
2020-10-15 23:18:30 -07:00
gamblor21
fa75231ae3
Added max size check to recv_into
2020-10-15 18:46:42 -05:00
microDev
26fd2c6223
Add hostname validation
2020-10-15 16:08:01 +05:30
Jensen
b02a5bcbd5
displayio: Remove verbose error
2020-10-14 23:05:19 -05:00
Jensen
3c5a08628a
Merge branch 'color-converter-transparency' of github.com:jensechu/circuitpython into color-converter-transparency
2020-10-14 21:52:49 -05:00
Jensen
2517e4b486
displayio: ColorConverter handle if opaque color is black
2020-10-14 21:51:40 -05:00
microDev
18fbff4f57
Update wifi hostname method
2020-10-14 11:11:59 +05:30
microDev
ceb531086e
Add method to set custom hostname
2020-10-13 14:22:02 +05:30
Jensen Kuras
de9ea47e8e
Merge branch 'main' into color-converter-transparency
2020-10-12 20:48:55 -05:00
Jensen
337019626a
displayio: Add make_transparent to ColorConverter
2020-10-12 20:48:04 -05:00
Jensen
b359e2945a
displayio: Add make_transparent and make_opaque to ColorConvertor
2020-10-12 20:48:04 -05:00
Jensen
57b44928a3
displayio: Pass transparent_color to ColorConverter
...
Signed-off-by: Jensen <jensechu@gmail.com>
2020-10-12 20:48:04 -05:00
Jeff Epler
5e38bb98cb
rgbmatrix: update protomatter to 1.0.5 tag
...
this is compile-tested on
stm32f405 feather
matrixportal
nrf52840 feather
but not actually tested-tested.
2020-10-10 14:30:37 -05:00
Scott Shawcroft
375676ff58
Merge pull request #3501 from hierophect/esp32-analogin
...
ESP32S2: Add AnalogIn
2020-10-09 14:10:24 -07:00
Ryan T. Hamilton
99f27bea61
Merge branch 'main' of https://github.com/adafruit/circuitpython into esp32s2-morenet
2020-10-08 12:43:52 -07:00
Scott Shawcroft
9fcf96cb64
Replace _bleio.ConnectionError with the native version
...
Replace uses of _bleio.ConnectionError with regular ConnectionError
Fixes #3008
2020-10-07 17:11:32 -07:00
Scott Shawcroft
8c428a3bdd
Merge pull request #3492 from hierophect/esp32-update-idf
...
ESP32S2: move to official IDF submodule
2020-10-06 16:53:32 -07:00
Lucian Copeland
68cb384f8f
Remove logging from shared-bindings, fix translations, revert config target macro
2020-10-06 13:29:12 -04:00
hierophect
e93a274f2f
Merge branch 'main' into esp32-analogin
2020-10-05 13:02:42 -04:00
Scott Shawcroft
c27e3857b6
Merge branch 'main' into framebuffer-zero-size
2020-10-01 11:04:21 -07:00
Jeff Epler
e477d27be3
Update shared-bindings/rgbmatrix/RGBMatrix.c
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2020-10-01 10:59:02 -05:00
Scott Shawcroft
5ac3c36d64
Merge pull request #3450 from mdroberts1243/New_quirk_for_SH1107
...
New quirk for sh1107
2020-09-30 12:03:10 -07:00
Mark Roberts
9f19a8a760
Ran pre-commit locally
2020-09-30 11:06:13 -07:00
Lucian Copeland
66b8559fd4
Change submodule, rework all includes
2020-09-30 11:26:07 -04:00
Jeff Epler
88cbf772df
canio.CAN: clarify read-only status of several properties
2020-09-29 20:13:52 -05:00
Jeff Epler
e4b9c16891
rgbmatrix: Check that the number of rgb pins is supported.
...
Having zero RGB pins may not have been caught, nor having a non-multiple-of-6
value. Generally, users will only have 6 RGB pins unless they are driving
multiple matrices in parallel. No existing breakouts exist to do this, and
there are probably not any efficient pinouts to be had anyway.
2020-09-29 19:55:31 -05:00
Jeff Epler
176b337611
rgbmatrix: validate width= constructor parameter
...
In #3482 , @cwalther noted that, hypothetically, a zero byte allocation
could be made in the RGBMatrix constructor. Ensure that width is positive.
Height was already checked against the number of RGB pins if it was specified,
so zero is ruled out there as well.
2020-09-29 19:44:25 -05:00
Jeff Epler
d79f4e2662
canio: doc improvement -- don't needlessly call out deinit behavior
2020-09-29 14:32:27 -05:00
Jeff Epler
611f81ac1a
canio: actually drop the _error_count properties
...
thanks @tannewt
2020-09-29 14:25:53 -05:00
Jeff Epler
1bea099eb2
Allow the _state_count properties to be unimplemented
...
This is the case on the SPI implementations MCP2515 and MCP2518.
2020-09-29 14:05:50 -05:00
Jeff Epler
03bd968450
more doc improvements
2020-09-28 19:56:19 -05:00
Jeff Epler
979ec3a458
can: RemoteTransmissionRequest: remove duplicate docstrings
2020-09-28 19:47:06 -05:00
Ryan T. Hamilton
2a4a244245
Add ap_ssid and ap_bssid
2020-09-28 17:25:09 -07:00
Ryan T. Hamilton
66d55738c1
Enable DNS info
2020-09-28 16:49:20 -07:00
mdroberts1243
b1e1237887
Merge branch 'main' into New_quirk_for_SH1107
2020-09-28 19:40:47 -04:00
Jeff Epler
04e434a7ce
canio: remove stray remote_transmission_request method declaration
2020-09-28 17:22:02 -05:00
Jeff Epler
f4e36fc7f6
CAN: Use mp_obj_t insteaed of canio_message_obj_t, get rid of rtr field
2020-09-28 17:22:00 -05:00
Jeff Epler
13493730a1
canio: CAN.Match: improve how an unspecified mask
is implemented
...
0 should actually indicate a "match everything" filter which you otherwise
couldn't indicate with any single Match object, and an
all-address-bits-set number should indicate a "match single address"
filter. Use an optional/default None argument to do the job.
2020-09-28 17:22:00 -05:00
Jeff Epler
4f7f1e8106
canio: CAN.listen: rename argument to 'matches', reflecting that it is a sequence
2020-09-28 17:22:00 -05:00
Jeff Epler
a4cc3ad6cb
canio: RemoteTransmissionRequest: Split implementation, keep one structure
...
This already begins obscuring things, because now there are two sets of
shared-module functions for manipulating the same structure, e.g.,
common_hal_canio_remote_transmission_request_get_id and
common_hal_canio_message_get_id
2020-09-28 17:22:00 -05:00
Jeff Epler
ea2f5b6396
canio: Correct type annotations of CAN.send, Listener.receive
2020-09-28 17:22:00 -05:00
Jeff Epler
f4fd5bbfc4
canio: docs: fix how we refer to 'the listen method'
2020-09-28 17:22:00 -05:00
Jeff Epler
8d45be1cd9
canio: Split RemoteTransmissionRequest to its own class
...
It reuses most of canio.Message's implementation, and structure
2020-09-28 17:22:00 -05:00
Jeff Epler
48bda589b8
Listerner: read -> receive, drop readinto
...
This prepares for creating a separate RemoteTransmissionRequest class
2020-09-28 17:22:00 -05:00
Jeff Epler
79ca430ddf
Match: address -> id
2020-09-28 17:22:00 -05:00
Jeff Epler
8b82c239b8
canio: doc improvements
2020-09-28 17:22:00 -05:00
Ryan T. Hamilton
deefeecb45
Fix ap_rssi bound_method
...
Forgot to make it a property!
2020-09-26 14:27:42 -07:00
Ryan T. Hamilton
b9968ea801
Merge branch 'main' of https://github.com/adafruit/circuitpython into esp32s2-morenet
2020-09-26 13:37:14 -07:00
Scott Shawcroft
2c8ee08520
Merge pull request #3471 from tannewt/i2c_100k
...
Change I2C default to 100khz
2020-09-25 14:08:25 -07:00
Scott Shawcroft
b9d68bc5a6
Change I2C default to 100khz
...
Greater that 100khz is technically out of the original spec.
Background here: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/issues/36
2020-09-25 11:07:22 -07:00
askpatricw
33952023e8
Print package if it exists for pin or module only if it does not
2020-09-25 10:08:26 -07:00
Mark Roberts
06a3d15266
Mostly-working-version with comments
2020-09-24 22:07:33 -04:00
Scott Shawcroft
dd86cb00ad
Merge pull request #3448 from hierophect/esp32-sd-fix
...
ESP32S2 - Fix SPI's SD card issue, add pin protections
2020-09-23 12:30:01 -07:00
Lucian Copeland
00517b2600
Move missing pin warning to shared-bindings
2020-09-23 11:39:39 -04:00
Jeff Epler
82f37c9252
canio: fix read(), iterable bindings
2020-09-22 10:28:25 -05:00
Jeff Epler
9fd9cf1138
canio: fix bugs in shared-bindings
2020-09-22 09:36:47 -05:00
Mark Roberts
5536e574db
Changes to compile cleanly
2020-09-21 22:08:16 -04:00
Mark Roberts
f21dc253e0
Initial commit bool column_and_page_addressing
2020-09-21 18:42:16 -04:00
Jeff Epler
10245c0ff8
canio: a few more stray _canios
2020-09-21 17:04:30 -05:00
Jeff Epler
a8147c125c
Fix unintentional cross references
2020-09-21 16:47:28 -05:00
Jeff Epler
4869dbdc67
canio: rename from _canio
...
This reflects our belief that the API is stable enough to avoid incompatible changes during 6.x.
2020-09-21 16:44:26 -05:00
Jeff Epler
493679da3b
CAN.listen: block until a message comes in or timeout is reached
2020-09-21 16:44:26 -05:00
Jeff Epler
9e8f1820c8
canio.CAN: switch rx/tx, make both mandatory, move declarations around
2020-09-21 16:44:26 -05:00
Jeff Epler
fd9df164c0
canio: Message: remove size property
...
This is just duplicating what len(message.data) gives you.
2020-09-21 16:44:26 -05:00
Jeff Epler
7fd6cab2ac
canio: Make both tx and rx (but not both) optional
...
.. loopback and silent come from the (optional) constructor parameters
not guessing based on the pin specification
.. docstring & comment improvements
2020-09-21 16:44:26 -05:00
Jeff Epler
c39ec1581e
_canio: Message: setting data clears rtr, and vice versa
2020-09-21 16:44:26 -05:00
Jeff Epler
44c5b2bbb1
Respond to review comments
...
Thanks @tannewt!
2020-09-21 16:44:26 -05:00
Jeff Epler
a69b298aed
Whitespace
2020-09-21 16:44:26 -05:00
Jeff Epler
27cbb690e5
_canio: Add listener matching
...
Lightly tested:
* no matches (catch-all)
* standard address single address matches (even and odd positions)
* standard address mask matches
* only tested that extended doesn't match non-extended
2020-09-21 16:44:26 -05:00
Jeff Epler
2cb4707f92
Message: add extended address flag
2020-09-21 16:44:26 -05:00
Jeff Epler
40d4a69133
more doc improvements
2020-09-21 16:44:26 -05:00
Jeff Epler
1eb0587917
correct docstring
2020-09-21 16:44:26 -05:00
Jeff Epler
635fcadb59
_canio.CAN: add error handling & bus state
2020-09-21 16:44:26 -05:00
Jeff Epler
f8dcf2118e
_canio: Add _canio.State enum-like class
2020-09-21 16:44:26 -05:00
Jeff Epler
37af9dde90
Listener: fix doc markup, include in globals of its module
2020-09-21 16:44:26 -05:00
Jeff Epler
a2e1867f69
_canio: Minimal implementation for SAM E5x MCUs
...
Tested & working:
* Send standard packets
* Receive standard packets (1 FIFO, no filter)
Interoperation between SAM E54 Xplained running this tree and
MicroPython running on STM32F405 Feather with an external
transceiver was also tested.
Many other aspects of a full implementation are not yet present,
such as error detection and recovery.
2020-09-21 16:44:26 -05:00
Ryan T. Hamilton
04ffd0dca0
Add gateway, subnet, and rssi info for current connected AP
...
ap_rssi is a bound method, which I'm not keen on, but it works
2020-09-19 13:38:04 -07:00
Dan Halbert
dfd09bba57
Merge pull request #3433 from astrobokonon/esp32s2-bssid
...
ESP32S2: Allow connecting to specific bssid
2020-09-18 21:31:15 -04:00
Jeff Epler
28043c94b5
supervisor: Improve serial connection detection
...
These changes remove the caveat from supervisor.runtime.serial_connected.
It appears that _tud_cdc_connected() only tracks explicit changes to the
"DTR" bit, which leads to disconnects not being registered.
Instead:
* when line state is changed explicitly, track the dtr value in
_serial_connected
* when the USB bus is suspended, set _serial_connected to False
Testing performed (using sam e54 xplained): Run a program to show
the state of `serial_connected` on the LED:
```
import digitalio
import supervisor
import board
led = digitalio.DigitalInOut(board.LED)
while True:
led.switch_to_output(not supervisor.runtime.serial_connected)
```
Try all the following:
* open, close serial terminal program
- LED status tracks whether terminal is open
* turn on/off data lines using the switchable charge-only cable
- LED turns off when switch is in "charger" position
- LED turns back on when switch is in Data position and terminal is
opened (but doesn't turn back on just because switch position is
changed)
2020-09-17 18:32:06 -05:00
Ryan T. Hamilton
1e3241ec6d
Merge branch 'main' into esp32s2-bssid
2020-09-16 17:15:01 -07:00
Ryan T. Hamilton
daa1dd278d
connect now accepts bssid
2020-09-16 16:25:17 -07:00
Dan Halbert
d774678a0f
Merge pull request #3369 from kamtom480/camera
...
Add camera module
2020-09-16 12:29:58 -04:00
Kamil Tomaszewski
61687c81d8
camera: Pass width and height to take_picture()
2020-09-16 13:55:57 +02:00
Ryan T. Hamilton
fead60d2d8
Add BSSID to Network
2020-09-15 23:32:53 -07:00
Scott Shawcroft
3d8bac50e4
Merge pull request #3397 from tannewt/fix_size_0_bug
...
Fix bug with socket.recv_into size == 0.
2020-09-14 14:47:28 -07: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
064c597b60
camera: Implement new library for camera
2020-09-14 13:11:15 +02:00
Jeff Epler
a81a2cff02
Merge pull request #3411 from jepler/ble-doc-typo
...
_bleio: fix markup typo
2020-09-13 12:50:12 -05:00
Jeff Epler
e5122b1acf
_bleio: fix markup typo
2020-09-13 11:56:34 -05:00
Carl Karsten
2f058029e9
doc fix: remove the text about the non-existing clock specification
2020-09-12 15:25:04 -05:00
Scott Shawcroft
8f58669ddd
Fix bug with socket.recv_into size == 0.
...
It returned 0 when it should have filled the buffer.
Python reference: https://docs.python.org/3/library/socket.html#socket.socket.recv_into
2020-09-11 16:17:20 -07:00
Scott Shawcroft
9256e6b376
Merge pull request #3302 from xiongyihui/main
...
support to get HID OUT report
2020-09-10 17:35:04 -07:00
Dan Halbert
f0bb9635bf
MIssed one change for .last_received_report
2020-09-10 14:21:36 -04:00
Dan Halbert
40f3cd3615
Change .report
to .last_received_report
2020-09-10 13:26:51 -04:00
Scott Shawcroft
96cf60fbbd
Merge remote-tracking branch 'adafruit/main' into native_wifi
2020-09-03 16:34:56 -07:00
Scott Shawcroft
0b94638aeb
Changes based on Dan's feedback
2020-09-03 16:32:12 -07:00
Scott Shawcroft
5d17d6402d
Merge pull request #3366 from kmatch98/refresh_now
...
Update refresh to force immediate redraw with `display.refresh()`
2020-09-02 16:37:46 -07:00
Scott Shawcroft
786f4ed114
Merge pull request #3344 from jepler/issue-3184
...
Fix RGBMatrix, FrameBufferDisplay bugs
2020-09-02 15:32:30 -07:00
Jeff Epler
17a5a85528
rgbmatrix: Move struct definition to shared-module, rename 'core' member
2020-09-02 13:34:16 -05:00
Kevin Matocha
d224183a7e
Delete trailing whitespace
2020-09-02 11:26:37 -05:00
Kevin Matocha
8256bf7ea6
Add backticks to function references in docs
2020-09-02 11:20:30 -05:00
Kevin Matocha
4b9306aa7c
Cleanup for sphinx
2020-09-01 18:10:40 -05:00
Kevin Matocha
554cc356db
Delete trailing whitespace
2020-09-01 15:43:18 -05:00
Kevin Matocha
7b6d805580
Add Optional[int] to docs string
2020-09-01 15:40:55 -05:00
Kevin Matocha
649a955a74
Modified docs to try to pass sphinx build
2020-09-01 15:02:37 -05:00
Kevin Matocha
c6529daac5
Added some backticks to clarify the docs
2020-09-01 14:44:32 -05:00
Kevin Matocha
f5015e4485
Add hanging tab to doc
2020-09-01 14:36:43 -05:00
Kevin Matocha
e14de38528
Revise .refresh input default value for target_frames_per_second to None
2020-09-01 13:57:19 -05:00
Dan Halbert
4e3cb55ce7
share more of _bleio dict; fix one doc error
2020-09-01 12:41:58 -04:00
Kevin Matocha
8be862e644
Remove trailing whitespace
2020-09-01 10:26:48 -05:00
Kevin Matocha
c4b1db006f
delete unnecessary comment
2020-09-01 09:38:57 -05:00
Kevin Matocha
fc513956be
Update refresh to force immediate redraw with display.refresh() or display.refresh(target_frames_per_second=None), even with auto_refresh=False
2020-09-01 09:36:29 -05:00
Dan Halbert
f5a5fc4c84
Fix stub; mismatched triple quotes
2020-08-30 14:59:03 -04:00
Dan Halbert
6dbd369272
merge from upstream
2020-08-30 14:39:03 -04:00
Dan Halbert
b27d511251
address review; use constructor for HCI Adapter
2020-08-30 14:06:48 -04:00
Scott Shawcroft
46dc133d04
Fix stub and doc builds
2020-08-26 17:18:16 -07:00
Scott Shawcroft
8b71e26abd
Merge remote-tracking branch 'adafruit/main' into native_wifi
2020-08-25 16:39:23 -07:00
Scott Shawcroft
380cbfba55
Add hash to Socket so it can be used in dicts
2020-08-25 16:15:45 -07:00
Scott Shawcroft
f3bc712539
Fix SocketPool radio check
2020-08-25 16:15:00 -07:00
Scott Shawcroft
1527a3ce92
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-24 18:25:18 -07:00
Scott Shawcroft
5b1a1c773f
Merge pull request #3275 from kmatch98/bitmap_v2
...
Add `bitmap.blit` command for bitmap copy
2020-08-24 17:58:53 -07:00
Kevin Matocha
f55f2bfee1
shorten error strings
2020-08-21 21:40:46 -05:00
Kevin Matocha
7f629624db
Added hanging indents to docs per @sommersoft's suggestion
2020-08-21 20:50:15 -05:00
Kevin Matocha
983e1af33d
remove other extraneous files
2020-08-21 19:10:13 -05:00
Kevin Matocha
dc502a5f26
remove extraneous files
2020-08-21 19:08:25 -05:00
Kevin Matocha
5b6313e642
More tweaks to try to fix documentation failing
2020-08-21 16:13:18 -05:00
Kevin Matocha
f1fb2cde17
Minor tweaks to try to fix documentation failing
2020-08-21 16:12:40 -05:00
Dan Halbert
770c204d5a
sphinx fixes
2020-08-21 17:03:45 -04:00
Kevin Matocha
9a6a156512
Update documentation string with blank line
2020-08-21 15:26:50 -05: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
Kevin Matocha
a9f6d147c4
Merge adafruit/main latest
2020-08-21 14:37:32 -05:00
Kevin Matocha
7e529ed4c5
Merge with latest adafruit/main
2020-08-21 14:28:24 -05:00