summaryrefslogtreecommitdiff
path: root/shared-bindings
AgeCommit message (Collapse)Author
2020-11-09RGBMatrix: Detect invalid bit_depth selectionJeff Epler
Closes: #3650
2020-10-26Fix lost board.SPI and board.I2C after explicitly deiniting them.Christian Walther
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-15Add hostname validationmicroDev
2020-10-14Update wifi hostname methodmicroDev
2020-10-13Add method to set custom hostnamemicroDev
2020-10-10rgbmatrix: update protomatter to 1.0.5 tagJeff Epler
this is compile-tested on stm32f405 feather matrixportal nrf52840 feather but not actually tested-tested.
2020-10-09Merge pull request #3501 from hierophect/esp32-analoginScott Shawcroft
ESP32S2: Add AnalogIn
2020-10-07Replace _bleio.ConnectionError with the native versionScott Shawcroft
Replace uses of _bleio.ConnectionError with regular ConnectionError Fixes #3008
2020-10-06Merge pull request #3492 from hierophect/esp32-update-idfScott Shawcroft
ESP32S2: move to official IDF submodule
2020-10-06Remove logging from shared-bindings, fix translations, revert config target ↵Lucian Copeland
macro
2020-10-05Merge branch 'main' into esp32-analoginhierophect
2020-10-01Merge branch 'main' into framebuffer-zero-sizeScott Shawcroft
2020-10-01Update shared-bindings/rgbmatrix/RGBMatrix.cJeff Epler
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2020-09-30Merge pull request #3450 from mdroberts1243/New_quirk_for_SH1107Scott Shawcroft
New quirk for sh1107
2020-09-30Ran pre-commit locallyMark Roberts
2020-09-30Change submodule, rework all includesLucian Copeland
2020-09-29canio.CAN: clarify read-only status of several propertiesJeff Epler
2020-09-29rgbmatrix: Check that the number of rgb pins is supported.Jeff Epler
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-29rgbmatrix: validate width= constructor parameterJeff Epler
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-29canio: doc improvement -- don't needlessly call out deinit behaviorJeff Epler
2020-09-29canio: actually drop the _error_count propertiesJeff Epler
thanks @tannewt
2020-09-29Allow the _state_count properties to be unimplementedJeff Epler
This is the case on the SPI implementations MCP2515 and MCP2518.
2020-09-28more doc improvementsJeff Epler
2020-09-28can: RemoteTransmissionRequest: remove duplicate docstringsJeff Epler
2020-09-28Merge branch 'main' into New_quirk_for_SH1107mdroberts1243
2020-09-28canio: remove stray remote_transmission_request method declarationJeff Epler
2020-09-28CAN: Use mp_obj_t insteaed of canio_message_obj_t, get rid of rtr fieldJeff Epler
2020-09-28canio: CAN.Match: improve how an unspecified `mask` is implementedJeff Epler
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-28canio: CAN.listen: rename argument to 'matches', reflecting that it is a ↵Jeff Epler
sequence
2020-09-28canio: RemoteTransmissionRequest: Split implementation, keep one structureJeff Epler
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-28canio: Correct type annotations of CAN.send, Listener.receiveJeff Epler
2020-09-28canio: docs: fix how we refer to 'the listen method'Jeff Epler
2020-09-28canio: Split RemoteTransmissionRequest to its own classJeff Epler
It reuses most of canio.Message's implementation, and structure
2020-09-28Listerner: read -> receive, drop readintoJeff Epler
This prepares for creating a separate RemoteTransmissionRequest class
2020-09-28Match: address -> idJeff Epler
2020-09-28canio: doc improvementsJeff Epler
2020-09-25Merge pull request #3471 from tannewt/i2c_100kScott Shawcroft
Change I2C default to 100khz
2020-09-25Change I2C default to 100khzScott Shawcroft
Greater that 100khz is technically out of the original spec. Background here: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/issues/36
2020-09-25Print package if it exists for pin or module only if it does notaskpatricw
2020-09-24Mostly-working-version with commentsMark Roberts
2020-09-23Merge pull request #3448 from hierophect/esp32-sd-fixScott Shawcroft
ESP32S2 - Fix SPI's SD card issue, add pin protections
2020-09-23Move missing pin warning to shared-bindingsLucian Copeland
2020-09-22canio: fix read(), iterable bindingsJeff Epler
2020-09-22canio: fix bugs in shared-bindingsJeff Epler
2020-09-21Changes to compile cleanlyMark Roberts
2020-09-21Initial commit bool column_and_page_addressingMark Roberts
2020-09-21canio: a few more stray _caniosJeff Epler
2020-09-21Fix unintentional cross referencesJeff Epler
2020-09-21canio: rename from _canioJeff Epler
This reflects our belief that the API is stable enough to avoid incompatible changes during 6.x.
2020-09-21CAN.listen: block until a message comes in or timeout is reachedJeff Epler