Dan Halbert
43b8d5e8ab
Update I2C and SPI documentation
2019-10-29 09:58:44 -04:00
Scott Shawcroft
966a48b23a
More size_t usage
2019-08-27 12:49:46 -07:00
Scott Shawcroft
a35d9b469d
Refactor deinit check to reduce code size.
2019-06-12 11:36:43 -07:00
Scott Shawcroft
cfe24b8532
Improve rST consistency for rst2pyi use
2019-05-30 19:02:47 -07:00
Scott Shawcroft
747f2cfe26
Add subclass support to displayio.
...
Also, swap make_news to accept a kwarg map and refine param checking.
Fixes #1237
2019-01-14 17:29:19 -08:00
Dan Halbert
b6b5ed9c89
Remove nRF52832 support
2018-12-30 22:49:20 -05:00
Dan Halbert
21d331c8cc
round SPI freq down; check max freq
2018-10-02 21:06:40 -04:00
Dan Halbert
aa95526428
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
2018-10-01 18:54:13 -04:00
Scott Shawcroft
933add6cd8
Support internationalisation.
2018-08-07 14:58:57 -07:00
Scott Shawcroft
bf05183158
Merge remote-tracking branch 'adafruit/2.x' into merge_2x
2018-02-27 15:24:16 -08:00
Dan Halbert
cc87363234
documentation: caution on SPI clock speed for SAMD21
2018-01-30 14:31:20 -05:00
Dan Halbert
e550b024c5
atmel-samd: Correct computation of SPI baud rate.
...
all: Add .frequency read-only property for busio.SPI to return actual frequency.
Fix esp8266/posix_helpers.c, which was not up to date for the new
long-lived/short-lived heap allocation scheme.
2018-01-30 12:08:41 -05:00
Dan Halbert
065e82015f
merge from 2.2.0 + fix up board defs
2018-01-02 21:25:41 -05:00
Dan Halbert
e75fd0e166
add SPI.write_readinto() - bidirectional SPI
2017-12-05 11:17:16 -08:00
Radomir Dopieralski
78f6c2232c
Allow empty reads and writes for busio.SPI
...
This is mostly for convenience, so that user code doesn't
need to add additional checks.
Also, bring the bitbangio into compatibility with busio wrt. empty
buffers.
2017-11-03 17:33:37 +01:00
Dan Halbert
f738996164
Allow writing buffer of length zero to I2C device; it can be used to poll for existence.
2017-10-30 18:32:36 -07:00
Scott Shawcroft
bd7abcda97
shared-bindings: Check that I2C and SPI reads and writes are given a buffer of at least 1. ( #370 )
...
Fixes #358
2017-10-25 17:28:23 -04:00
Dan Halbert
c478c10923
Do not allow a *io object to be used after deinit().
...
Fixes #278 , #277 , #276 , #275 .
2017-10-03 12:07:17 -07:00
Scott Shawcroft
6467e3d40b
shared-bindings: Prevent check_lock from being optimized away. ( #240 )
...
Fixes #229
2017-09-06 17:49:30 -04:00
Scott Shawcroft
714521a4c7
shared-bindings: Update docs to remove with statements from examples but add more detail to the design guide about their use.
2017-06-07 14:39:12 -07:00
Scott Shawcroft
939c0045db
Switch to a shared piece of code to compute start and length of a
...
buffer from start, end and length. The old code miscomputed length
leading to writing and reading from memory past the end of the buffer.
Consolidating the code should make it easier to get right everywhere.
2017-04-20 11:24:05 -07:00
Scott Shawcroft
f28f8ba568
Split up nativeio.
...
This was done to allow greatly granularity when deciding what functionality
is built into each board's build. For example, this way pulseio can be
omitted to allow for something else such as touchio.
2017-04-10 13:32:19 -07:00