<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/shared-bindings/busio, branch master</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=master</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-05-19T01:13:31+00:00</updated>
<entry>
<title>Merge pull request #2837 from k0d/serial-debug</title>
<updated>2020-05-19T01:13:31+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@adafruit.com</email>
</author>
<published>2020-05-19T01:13:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2c2b53303d17e07daa8f7a61740835d30f671a18'/>
<id>urn:sha1:2c2b53303d17e07daa8f7a61740835d30f671a18</id>
<content type='text'>
Add support for a debug console, such as ST-Link VCP.</content>
</entry>
<entry>
<title>Enable showing the console on a debug uart</title>
<updated>2020-05-19T00:02:52+00:00</updated>
<author>
<name>Mark Olsson</name>
<email>post@markolsson.se</email>
</author>
<published>2020-05-18T12:04:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=007c92ee6ab8da342dacb8967ef999b6d83596ec'/>
<id>urn:sha1:007c92ee6ab8da342dacb8967ef999b6d83596ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update countio to python stub docs</title>
<updated>2020-05-13T15:36:16+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-05-13T15:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3ffa5604fc0523aa131be4a353fb883a9c8a37ff'/>
<id>urn:sha1:3ffa5604fc0523aa131be4a353fb883a9c8a37ff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Swap sphinx to autoapi and the inline stubs</title>
<updated>2020-05-13T00:28:24+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-05-13T00:15:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4e8de3c554024d3ac89e9ee77b958a6932a64bec'/>
<id>urn:sha1:4e8de3c554024d3ac89e9ee77b958a6932a64bec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into master</title>
<updated>2020-05-12T16:26:02+00:00</updated>
<author>
<name>dherrada</name>
<email>33632497+dherrada@users.noreply.github.com</email>
</author>
<published>2020-05-12T16:26:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c534a872a2b5a2d5e6b7543f56539afb24261443'/>
<id>urn:sha1:c534a872a2b5a2d5e6b7543f56539afb24261443</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ujson: do not eat trailing whitespace</title>
<updated>2020-05-11T03:45:42+00:00</updated>
<author>
<name>warriorofwire</name>
<email>3454741+WarriorOfWire@users.noreply.github.com</email>
</author>
<published>2020-05-11T03:45:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=eb3d5fa453bd04cc116e704c36a97250c93b7b4b'/>
<id>urn:sha1:eb3d5fa453bd04cc116e704c36a97250c93b7b4b</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Added newlines after every ellipsis</title>
<updated>2020-04-29T19:55:06+00:00</updated>
<author>
<name>dherrada</name>
<email>dylan.herrada@gmail.com</email>
</author>
<published>2020-04-29T19:55:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a2a32fea1acc4caefb6c4142b547d8a09b2ba761'/>
<id>urn:sha1:a2a32fea1acc4caefb6c4142b547d8a09b2ba761</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed indentation</title>
<updated>2020-04-29T19:45:19+00:00</updated>
<author>
<name>dherrada</name>
<email>dylan.herrada@gmail.com</email>
</author>
<published>2020-04-29T19:45:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=093461e81670d8ad635d8f893a44426a46b9779c'/>
<id>urn:sha1:093461e81670d8ad635d8f893a44426a46b9779c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Did the same for the rest of busio</title>
<updated>2020-04-29T19:20:05+00:00</updated>
<author>
<name>dherrada</name>
<email>dylan.herrada@gmail.com</email>
</author>
<published>2020-04-29T19:20:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=deccdcc1d668a9e65036872aa0a3064ae9ec959c'/>
<id>urn:sha1:deccdcc1d668a9e65036872aa0a3064ae9ec959c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hopefully fixed whitespace issues</title>
<updated>2020-04-29T18:19:04+00:00</updated>
<author>
<name>dherrada</name>
<email>dylan.herrada@gmail.com</email>
</author>
<published>2020-04-29T18:19:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=93d1e53c66f73b6a2d85398dba7924472f1f053d'/>
<id>urn:sha1:93d1e53c66f73b6a2d85398dba7924472f1f053d</id>
<content type='text'>
</content>
</entry>
</feed>
