summaryrefslogtreecommitdiff
path: root/shared-bindings/busio
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2021-03-01Fix formatting in SPI docsajs256
Close #4293 by changing `..note::` to `.. note::`.
2021-02-25Merge remote-tracking branch 'adafruit/main' into busio-uart-rpScott Shawcroft
2021-02-25A few minor fixes for corner casesScott Shawcroft
* Always clear the peripheral interrupt so we don't hang when full * Store the ringbuf in the object so it gets collected when we're alive * Make UART objects have a finaliser so they are deinit when their memory is freed * Copy bytes into the ringbuf from the FIFO after we read to ensure the interrupt is enabled ASAP * Copy bytes into the ringbuf from the FIFO before measuring our rx available because the interrupt is based on a threshold (not > 0). For example, a single byte won't trigger an interrupt.
2021-02-25implement suggested changesmicroDev
- add internal buffering - rtc initialization fix
2021-02-19uart implementation for rp2040microDev
2021-02-17add timeout; finish up for PRDan Halbert
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-23Move missing pin warning to shared-bindingsLucian Copeland
2020-08-07Modify some Python stubsTaku Fukada
2020-07-27Fix several type hintsTaku Fukada
2020-07-24Add and correct some type hintsTaku Fukada
2020-07-23Remove stop kwarg from I2C writeto.Scott Shawcroft
Fixes #2082
2020-07-17Merge branch 'main' into type_hintsdherrada
2020-07-03Made every init return Nonedherrada
2020-07-03Made most of the requested changesdherrada
2020-07-02Remove trailing spaceScott Shawcroft
2020-07-02Changed unions to ReadableBuffer and WriteableBufferdherrada
2020-07-02Merge branch 'main' into patch-1Scott Shawcroft
2020-07-02Removed all 'self, )'dherrada
2020-07-02Made suggested changesdherrada
2020-07-02Changed bytearray to a uniondherrada
2020-07-02Did busio, fixed up analogiodherrada
2020-07-01Merge pull request #3083 from tannewt/esp32s2_busioJeff Epler
Add busio support for the ESP32-S2
2020-06-26sdcardio: implement new library for SD card I/OJeff Epler
Testing performed: That a card is successfully mounted on Pygamer with the built in SD card slot This module is enabled for most FULL_BUILD boards, but is disabled for samd21 ("M0"), litex, and pca10100 for various reasons.
2020-06-25Use main/selected terminology in docstringsJeff Epler
Also copy some notes from busio docstrings to bitbangio docstrings
2020-06-24Compiles!Scott Shawcroft
2020-06-24Add UART supportScott Shawcroft
2020-05-18Merge pull request #2837 from k0d/serial-debugScott Shawcroft
Add support for a debug console, such as ST-Link VCP.
2020-05-19Enable showing the console on a debug uartMark Olsson
2020-05-13Update countio to python stub docsScott Shawcroft
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-12Merge branch 'master' into masterdherrada
2020-05-10ujson: do not eat trailing whitespacewarriorofwire
Ujson should only worry about whitespace before JSON. This becomes apparent when you are using MP stream protocol to read directly from input buffers. When you attempt to read(1) on a UART (and possibly other protocols) you have to wait for either the byte or the timeout. Fixes: - Waiting for a timeout after you have completed reading a correct and complete JSON off the input. - Raising an OSError after reading a correct and complete JSON off the input. - Eating more data than semantically owned off the input buffer. - Blocking to start parsing JSON until the entire JSON body has been loaded into a potentially large, contiguous Python object. Code you would write before: ``` line = board_busio_uart_port.read_line() json_dict = json.loads(line) ``` or reaching for fixed buffers and swapping them around in Python. Code that did not work before that does now: ``` json_dict = json.load(board_busio_uart_port) ``` - This removes the need for intermediate copies of data when reading JSON from micropython stream protocol inputs. - It also increases total application speed by parsing JSON concurrently with receiving on boards that read from UART via DMA. - It simplifies code that users write while improving their apps.
2020-04-29Added newlines after every ellipsisdherrada
2020-04-29Fixed indentationdherrada
2020-04-29Did the same for the rest of busiodherrada
2020-04-29Hopefully fixed whitespace issuesdherrada
2020-04-28Fixed whitespace in busiodherrada
2020-04-25Added pyi to OneWire.cdherrada
2020-04-25Fixed empty linesdherrada
2020-04-25Added inline pyi to UART.cdherrada
2020-04-25Added inline pyi to I2C.cdherrada
2020-04-23Reorganized pyi againdherrada
2020-04-23Reogranized pyi in spi.cdherrada
2020-04-22Added pyi to SPI.cdherrada
2020-04-17busio/UART: Correct and clarify readline() return.AndrewR-L
Surely readline() "rtype" is string not int as stated (and not bytes as some might expect). Also it is not totally unambiguous what happens on a timeout so it would help to clarify in docs that on a timeout it does NOT return with what it has read so far, rather it leaves all that in the buffer ready for a future read and returns nothing. Likewise clarify that if timeout=0 but there is no newline it DOES return what it has read so far (NOT None). At least this is what I think it does and/or is supposed to do! Python docs are generally not too explicit about what is the proper treatment, so perhaps all the more reason to clarify the interpretation adopted?
2020-03-05rename routines to be clearer; fix wiznet arg typesDan Halbert
2020-02-28new pin validation routines; don't use mp_const_none if NULL will doDan Halbert
2020-02-18Addition of RS485 supportDave Marples