Dan Halbert
d0b2544f88
Add precision info to time.monotonic()
2021-10-08 10:21:35 -04:00
Dan Halbert
431e784a7e
big cleanup of SPI and I2C doc; fix arg names on SPI
2021-10-07 21:25:52 -04:00
Dan Halbert
b48bb75e24
change len(buffer) to sys.maxsize; must import sys
2021-10-07 18:15:37 -04:00
Dan Halbert
1acafbf675
Fix n_args_min on many MP_DEFINE_CONST_FUN_OBJ_KW()
2021-10-07 16:55:19 -04:00
Dan Halbert
8b97ad1b7e
remove unused self in usb_hid_enable
2021-10-07 14:37:57 -04:00
Scott Shawcroft
75db5a21a7
Merge pull request #5392 from dhalbert/report-id-0
...
allow usb_hid.Device(..., report_ids=(0,), ...)
2021-10-07 10:08:35 -07:00
Dan Halbert
1ae69b5cc5
debugging, with instrumentation
2021-10-07 08:19:53 -04:00
Dan Halbert
de8f7b11ef
fix error message
2021-10-07 10:36:00 +05:30
microDev
a46aa48e23
Convert more modules to use MP_REGISTER_MODULE
...
Convert espidf, os, rp2pio, samd and time to use MP_REGISTER_MODULE.
Related to #5183 .
2021-10-05 16:58:24 +05:30
Dan Halbert
24c6295ed4
Boot protocol and feature reports: compiles; needs to be tested
2021-10-04 22:48:18 -04:00
Neradoc
ab65e88a87
add board_id to the board module documentation
2021-09-30 19:21:03 +02:00
microDev
3da86b0ac2
add initial esp32c3 support
2021-09-26 09:39:40 +05:30
Dan Halbert
d4ec3e2927
allow usb_hid.Device(..., report_ids=(0,)
2021-09-25 18:09:41 -04:00
Jeff Epler
10fdc80b9c
Merge pull request #5378 from jepler/esp32s2-paralleldisplay-i2s
...
Espressif: Use i2s peripheral for parallel LCD displays
2021-09-23 20:25:43 -05:00
Dan Halbert
f7c9147f66
Merge pull request #5383 from michthom/michthom-patch-1
...
Enable CS "active-high" device support
2021-09-23 18:04:42 -04:00
Michael Thomson
94ca3f594e
Enable CS "active-high" device support
...
Reference https://github.com/adafruit/Adafruit_CircuitPython_BusDevice/issues/71
Add a new parameter cs_active_value for devices that require CS to use "active high" logic.
Update mpconfigboard.mk to disable pyb_nano_v2 from core build as its flash is too small now.
2021-09-23 09:14:39 +01:00
Dan Halbert
bb2dbf4aa3
Merge pull request #5379 from dhalbert/improve-usb_hid-Device-doc
...
Correct and improve usb_hid.Device doc
2021-09-22 11:53:13 -04:00
Dan Halbert
24774246f9
Correct and improve usb_hid.Device doc
2021-09-22 07:56:04 -04:00
Jeff Epler
30c363d7cd
doc markup fix
2021-09-21 19:36:56 -05:00
Jeff Epler
4714861f38
espressif: Implement parallel display using i2s
2021-09-21 14:38:12 -05:00
Dan Halbert
651350a957
Merge pull request #5360 from jepler/keypad-ticks
...
keypad: Event: add timestamp.
2021-09-21 10:19:28 -04:00
Jeff Epler
91223c8d97
fix type annotations and default argument
2021-09-21 07:43:06 -05:00
Scott Shawcroft
276d425899
Merge pull request #5302 from maholli/pycubed_v05c
...
updating pycubed firmware for mainboardv05
2021-09-20 15:00:25 -07:00
James Carr
f5c015285f
Update Display.fill_row() to accept all WriteableBuffers
2021-09-19 17:55:52 +01:00
James Carr
db936f8a20
bitmaptools.__init__ minor update
...
Update the error message in bitmaptools_readinto() to match the code.
2021-09-18 21:04:45 +01:00
Max Holliday
818020d4c9
Merge branch 'adafruit:main' into pycubed_v05c
2021-09-17 14:35:17 -06:00
Neradoc
23e4f08bc6
Remove leftover stop from I2C.writeto docs
2021-09-17 15:17:39 +02:00
Jeff Epler
72bfd39a17
keypad: Event: add timestamp.
...
this will probably need simplification before it fits on constrained
boards.
2021-09-16 21:08:05 -05:00
Jeff Epler
2916167bf4
paralleldisplay: make it actually importable
2021-09-16 14:11:16 -05:00
Max Holliday
5b69aa0a58
Merge branch 'adafruit:main' into pycubed_v05c
2021-09-15 14:23:56 -06:00
Dan Halbert
59b1bedcda
Merge pull request #5333 from microDev1/patch
...
Make `next_code_allocation` and `prev_traceback_allocation` movable
2021-09-14 19:27:40 -04:00
Dan Halbert
31e1b89f9f
Restore sdioio name (was sdio)
2021-09-14 11:01:12 -04:00
James Carr
5f519b8ba9
Update shared-bindings/vectorio/Polygon.c
...
As per microDev1
Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com>
2021-09-13 17:04:46 +01:00
microDev
7316c742cf
make `next_code_allocation` and `prev_traceback_allocation` movable
2021-09-12 18:06:03 +05:30
Max Holliday
d9ae2c00b4
Merge branch 'adafruit:main' into pycubed_v05c
2021-09-11 20:09:59 -06:00
James Carr
f35d1578cc
Update the docs for vectorio
2021-09-11 23:37:41 +01:00
James Carr
2bc260a102
Rework of changes to bounds checking of location in VectorShape, moving most of the code into shared-module.
2021-09-10 21:48:01 +01:00
Max Holliday
aaf2c3752e
boot counter using existing nvm object
2021-09-10 13:43:04 -06:00
James Carr
1f446916c3
Improve the bounds checking on the location (the x, y co-ordinates) of a
...
VectorShape object so that it is consistent no matter where it is set from:
* the constructor
* the x and y setters
* the location setter
2021-09-10 09:39:12 +01:00
Robert Pafford
65f8804816
Implement reset_reason for raspberrypi port
2021-09-08 18:34:34 -04:00
microDev
119cc8488b
Merge pull request #5300 from kamtom480/fix_movable
...
Fix incorrect use of allocate_memory()
2021-09-05 09:46:07 +05:30
Kamil Tomaszewski
ff807f8f19
Fix incorrect use of allocate_memory()
2021-09-04 11:17:39 +02:00
Neradoc
8625e53817
change board dicts to include a common macro with __name__
2021-09-03 21:03:55 +02:00
James Carr
a1e4105f1e
Documentation update for ColorConverter
2021-09-02 20:29:53 +01:00
James Carr
b3aea212cb
Documentation update for Display.refresh()
...
Update the documentation for `Display.refresh()` which had two paragraphs starting 'When auto refresh is off,'
2021-09-02 14:00:23 +01:00
James Carr
9fffb5bada
Document missing 'frequency' parameter on ParallelBus.c
2021-09-02 11:01:15 +01:00
foamyguy
6af0038a84
update TileGrid docstrings to include OnDiskBitmap
2021-09-01 20:01:15 -05:00
Scott Shawcroft
cf7e29da6c
Merge pull request #5281 from capellini/mp-register-module-non-pybadge
...
Convert more modules to use MP_REGISTER_MODULE
2021-09-01 09:02:43 -07:00
Rob Capellini
9002f351b4
Convert more modules to use MP_REGISTER_MODULE
...
Convert _eve, _pew, aesio, alarm, audiopwmio, bitops, camera, canio, dualbank, gnss, i2cperipheral, imagecapture, ipaddress, memorymonitor, sdioio, socketpool, ssl, uheap, ustack, watchdog, and wifi modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-09-01 00:19:05 -04:00
foamyguy
b1d7b6efd2
update TileGrid docstrings to include Shape
2021-08-31 19:52:43 -05:00
Rob Capellini
1c8828223f
Convert more modules to use MP_REGISTER_MODULE
...
Convert neopixel_write, onewireio, ps2io, pulseio, pwmio, rainbowio, random, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, _stage, storage, struct, supervisor, synthio, touchio, traceback, usb_cdc, usb_hid, usb_midi, and vectorio modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-30 22:29:51 -04:00
Scott Shawcroft
838d30b3a4
Fix incorrect macros
2021-08-30 14:40:14 -07:00
Jeff Epler
83120eb1b2
Actually fix building ports without parallel displays
2021-08-29 11:49:47 -05:00
Jeff Epler
f4bb3cc2c8
Fix stubs & doc redirects
2021-08-29 11:43:51 -05:00
Jeff Epler
7520feed1c
Move ParallelBus to its own module
2021-08-29 07:33:54 -05:00
Scott Shawcroft
b17216d9d4
Merge pull request #5199 from aramcon-badge/aramcon/quick-refresh
...
Adding quick refresh support
2021-08-27 08:54:44 -07:00
Rob Capellini
b8f2799609
Convert more modules to use MP_REGISTER_MODULE
...
Convert bitbangio, bitmaptools, _bleio, board, busio, countio, digitalio, framebufferio, frequencyio, gamepadshift, getpass, keypad, math, microcontroller, and msgpack modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-26 21:35:02 -04:00
Neradoc
b14b294516
add board.ID
2021-08-26 23:11:55 +02:00
amit-sides
27502f90cd
Fixed formatting
2021-08-26 20:51:32 +03:00
amit-sides
23bb0bd262
Improved documentation
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-08-26 20:45:38 +03:00
amit-sides
24fcc3f955
Added type hints
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-08-26 20:44:27 +03:00
Dan Halbert
a608934f31
restrict WaveFile buffer size to 8-1024
2021-08-26 09:34:02 -04:00
Rob Capellini
ad103ac6f1
Convert more modules to use MP_REGISTER_MODULE
...
Convert adafruit_bus_device, adafruit_pixelbuf, analogio, atexit, audiobusio, audiocore, audioio, audiomixer, and audiomp3 modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-25 20:48:55 -04:00
Amit Sides
98f026fbb4
Fixing comments for PR
2021-08-25 15:07:19 -07:00
James Carr
86d8d9f6a7
Minor docs fix in FourWire.c
2021-08-25 11:23:33 +01:00
Rob Capellini
17af5cd492
Use MP_REGISTER_MODULE with displayio, terminalio, and fontio
...
Convert from using MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS to using MP_REGISTER_MODULE for displayio, terminalio, and fontio modules.
Related to #5183 .
2021-08-24 20:07:10 -04:00
microDev
da320c30f0
Merge pull request #5214 from dhalbert/usb-hid-device-args-fix
...
Fix incorrect subscription in `usb_hid.Device` constructor
2021-08-24 23:30:41 +05:30
Dan Halbert
1685e1a996
../../shared-bindings/usb_hid/Device.c
2021-08-24 12:36:06 -04:00
Dan Halbert
ce5e267143
shrink thunderpack_v11; fix PulseOut doc
2021-08-23 21:57:29 -04:00
Dan Halbert
7587a521cb
Merge pull request #5145 from FoamyGuy/bitmaptools_paint_fill
...
Bitmaptools boundary_fill
2021-08-23 16:20:38 -04:00
Scott Shawcroft
6d49a9f0c5
Merge pull request #5205 from jepler/deprecate-vertical-scroll
...
Deprecate Display's constructor arg set_vertical_scroll
2021-08-23 12:52:12 -07:00
microDev
57b4d0176f
Merge pull request #5077 from microDev1/atexit
...
Add atexit module
2021-08-23 19:49:46 +05:30
Jeff Epler
379461df7d
Deprecate Display's constructor arg set_vertical_scroll
2021-08-23 09:17:59 -05:00
James Carr
e35bcd348a
Use the modified args to sort in displayio.Group
2021-08-23 12:34:13 +01:00
Amit Sides
1b6283a5ae
Adding quick refresh support
2021-08-21 23:51:24 +03:00
foamyguy
aeeba3904b
changed argument names and make replaced_color_value argument optional
2021-08-21 11:08:25 -05:00
microDev
f6d1caabc9
Merge pull request #5182 from tannewt/fix_imx
...
Check background pending before sleep
2021-08-21 08:00:10 +05:30
Christian Walther
d79a9e0e69
Fix linker error when ONEWIREIO = 0
...
This addendum to #5139 allows actually turning off onewireio. (Not
currently used by any board.)
2021-08-20 18:11:04 +02:00
microDev
25437dcb33
Merge branch 'main' into atexit
2021-08-20 09:45:54 +05:30
microDev
60c0271e72
Merge pull request #5173 from jepler/issue3447
...
Update all implementations of spi read to honor write_value
2021-08-20 09:31:20 +05:30
Mark
f9f106b58d
Merge pull request #5123 from gamblor21/keypad_dup_pin_check
...
Check for duplicate pins in rows and columns
2021-08-19 22:20:04 -05:00
gamblor21
47db00f0af
Made error message clear and reduce calls
2021-08-19 20:03:49 -05:00
Scott Shawcroft
d2860b58b0
Check background pending before sleep
...
There is a race between when we run background tasks and when we
sleep. If an interrupt happens between the two, then we may delay
executing the background task. On some ports we checked this for
TinyUSB already. On iMX RT, we didn't which caused USB issues.
This PR makes it more generic for all background tasks including
USB.
Fixes #5086 and maybe others.
2021-08-19 12:18:13 -07:00
Jeff Epler
2b64318a57
Update all implementations of common_hal_busio_spi_read to honor write_value
...
(nrf, rp2040, and cxd56)
.. as well as a misleading comment that said that read always output
zeros.
Closes : #3447
2021-08-18 10:20:40 -05:00
gamblor21
e5dc722176
Fix for int type and pin validation
2021-08-17 19:16:26 -05:00
gamblor21
168ed355b1
Made check function generic
2021-08-17 17:55:26 -05:00
microDev
1c4a6c3667
atexit module refinements
...
- add test for atexit module
- add callback to gc collection
- fix callback memory allocation
- execute callback on both code and repl exit
2021-08-16 21:37:32 +05:30
foamyguy
6bd8a1d669
ensure bitmap type in argument
2021-08-16 09:10:29 -05:00
foamyguy
029150ac3b
validate initial point is in-bounds
2021-08-15 19:46:20 -05:00
Dan Halbert
3dc2b4c2d3
at least original functionality with new API
2021-08-14 12:36:40 -04:00
Dan Halbert
4f8ff12afa
wip
2021-08-14 12:36:40 -04:00
Dan Halbert
ffb9ecfeca
Merge pull request #5139 from tannewt/onewireio
...
Move OneWire to `onewireio`
2021-08-13 18:10:04 -04:00
foamyguy
4d8494f1cd
fix stubs
2021-08-13 10:42:21 -05:00
foamyguy
c1e164e1ff
rename to boundary_fill and clean up comments
2021-08-13 09:52:51 -05:00
foamyguy
0bbb0f1d06
Merge branch 'adafruit_main' into bitmaptools_paint_fill
2021-08-13 09:49:24 -05:00
microDev
78f073c457
Merge pull request #5138 from jepler/refresh-defaults
...
Displayio: change refresh minimum_frames_per_second default to 0
2021-08-13 09:35:50 +05:30
Scott Shawcroft
7e55905d95
Fix up onewireio docs and other notes
...
Not all of the notes were marked correctly.
2021-08-12 11:15:04 -07:00
Jeff Epler
a89f1c806f
Update Display.c
2021-08-12 12:50:38 -05:00
Scott Shawcroft
de796e2304
Move OneWire to `onewireio` from `busio`
...
This will allow finer grained inclusion in 8.0.0
Fixes #5135
2021-08-12 10:47:14 -07:00
Jeff Epler
e8df829714
Displayio: change refresh minimum_frames_per_second default to 0
...
Closes : #5133
2021-08-12 12:00:07 -05:00
Scott Shawcroft
d294692c4e
Merge pull request #5100 from tannewt/fix_cp_irremote
...
Switch SAMD21 ticks to PER event
2021-08-12 09:52:29 -07:00
James Carr
670d295db5
Update the __init__ documentation for EPaperDisplay.
...
The unknown parameter `single_byte_bounds` was removed.
The missing parameters `set_current_column_command` and `set_current_row_command` were added.
2021-08-12 14:05:17 +01:00
Scott Shawcroft
0c1d6cef75
Merge remote-tracking branch 'adafruit/main' into fix_cp_irremote
2021-08-11 13:43:59 -07:00
Scott Shawcroft
083960ce90
Fix SAMD51 builds and Prox Trinkey
...
Adds CIRCUITPY_BUSIO_UART to disable UART by raising ValueError
that no pins work.
2021-08-11 11:53:26 -07:00
gamblor21
e18ceea9ba
Check for duplicate pins in rows and columns
2021-08-10 18:18:21 -05:00
microDev
93c9d59960
Merge branch 'main' into getpass
2021-08-10 01:00:10 +05:30
microDev
3495cc1ff6
Merge pull request #5110 from jepler/format-exception
...
Implement `traceback.format_exception`
2021-08-10 00:47:18 +05:30
Kattni
c87d90ec4b
Merge pull request #5090 from WarriorOfWire/draw_protocol
...
Draw protocol
2021-08-09 15:04:36 -04:00
microDev
32ee06b293
fix crash when traceback object is supplied
2021-08-09 22:53:23 +05:30
Jeff Epler
9a932a5a48
traceback: Implement format_exception
2021-08-09 08:27:28 -05:00
microDev
51f8603783
add getpass module
2021-08-09 17:50:28 +05:30
foamyguy
158048e56b
trying to make lists
2021-08-08 14:33:07 -05:00
foamyguy
bcfec10552
starting bitmaptools.paint_fill
2021-08-08 09:31:09 -05:00
Kenny
a1fff320fb
add location property to vectorshape and all composed shapes
2021-08-08 00:14:53 -07:00
microDev
063e3946d6
Merge pull request #5094 from jepler/quirc
...
Add qrio: Decode QR codes with quirc lib
2021-08-07 09:30:20 +05:30
Scott Shawcroft
be2342f32f
Merge pull request #5072 from microDev1/traceback
...
Add traceback module
2021-08-06 12:10:17 -07:00
Jeff Epler
67551c1ac0
qrio: Split QRInfo & PixelPolicy to their own .c/.h files
2021-08-06 09:53:17 -05:00
Jeff Epler
8e201d519e
better document constructor arguments
2021-08-05 15:04:28 -05:00
Jeff Epler
0fbe56c915
Better Document PixelPolicy and the pixel_policy argument
2021-08-05 12:27:49 -05:00
Jeff Epler
e5a57d2399
Fix function name in prototype
2021-08-05 12:24:12 -05:00
Jeff Epler
46ac717538
Rename qrinfo -> QRInfo
2021-08-05 12:24:12 -05:00
Jeff Epler
14f1d95d2d
qrio: Fix handling of 1-arg decode()
2021-08-05 12:24:12 -05:00
microDev
870f26bfc4
traceback module refinements
2021-08-05 20:11:15 +05:30
Kenny
6be952d3ba
found more documentation dependencies that needed updating
2021-08-05 00:13:10 -07:00
Kenny
85bf3d074f
stub checker does not approve of shared vectorshape properties
2021-08-04 23:55:03 -07:00
Jeff Epler
bd903f2f03
Add qrio: Decode QR codes with quirc lib
2021-08-04 09:16:00 -05:00
microDev
fb0f2583db
update traceback module
2021-08-04 12:22:21 +05:30
microDev
193a8d2e67
add traceback object
2021-08-04 12:10:57 +05:30
Scott Shawcroft
713c8e7b3f
Fix builds without the ble workflow
2021-08-03 14:36:41 -07:00
Kenny
48ea81e2f1
Vexing pedantry
...
Spaces deleted from phone
Eternal chore, lint
2021-08-03 11:25:31 -07:00
Kenny
739ef92fc9
Update __init__.h
...
More random spaces. Why isn’t this in a pre-commit check
2021-08-03 09:20:02 -07:00
Kenny
464281b881
Stub comma
2021-08-03 08:08:11 -07:00
Kenny
8607cdd783
vectorio: add draw protocol
...
* Removes VectorShape from user python interactions
* Re-integrates vectorio with displayio behind draw protocol implementations
* Implements draw protocol with VectorShape
* Composes VectorShape behaviors into Rectangle, Circle and Polygon
* Fixes terrible pixel garbage being left behind
* Improves redraw performance (heuristically) by tracking dirty area separately from current area.
Known Issues:
It does not work with transposed views.
2021-08-02 20:19:54 -07:00
Scott Shawcroft
1e225610cc
Add ability to disable BLE workflow
...
Call `supervisor.disable_ble_workflow()` and the BLE workflow will
be disabled until the chip is reset.
This also includes a couple fixes:
1. Terminals can now be deinit by setting the tilegrid to NULL. This
prevents using the tilegrid before display is init.
2. Fix BLE serial send amount when sending more than a single packet.
Fixes #5049
2021-08-02 18:37:19 -07:00
Kenny
0afd863224
vectorio: palettes don't color dirty rectangles
...
This is a breaking change with previous palette semantic with respect to python code that uses vectorio.
Displayio has breaking changes in cpy 7 for Group's removal of max_size parameter so this is as good a
time as any to break everything.
Currently:
To color vectorio shapes correctly you have to pass in a palette with length 2. Palette[0] must be set transparent and palette[1] must be the color you want.
New:
To color vectorio shapes correctly you pass in a palette with length >= 1. Palette[0] will be the color of the shape.
Also improves pixels per second when skipping areas that aren't covered by the shape.
2021-07-31 16:32:01 -07:00
microDev
a3998d0626
add atexit module
2021-07-30 09:32:28 +05:30
Dan Halbert
e9369d50e1
Merge pull request #5067 from tannewt/pulseout_switch
...
Switch to pin, frequency and duty_cycle PulseOut
2021-07-28 14:58:06 -04:00
microDev
f371c0a609
add traceback module
2021-07-28 18:06:23 +05:30
Dan Halbert
b0fb709d83
more gamepad removal
2021-07-26 23:34:25 -04:00
Dan Halbert
901a6c27c0
remove gamepad; deprecate gamepadshift
2021-07-26 22:15:09 -04:00
Scott Shawcroft
412eb87080
Switch to pin, frequency and duty_cycle PulseOut
...
Passing in a PWMOut still works but is deprecated. It will be
removed in CircuitPython 8.0.0
This also switches STM32 timer indices and channel indices to
0-based in our pin data rather than `- 1` everywhere. The latter is
more bug prone.
Most of the way for #3264
Tested on Metro M0, Metro M4, Feather S2, Feather nRF52840, Feather
STM32F4 and Arduino RP2040.
2021-07-26 18:35:49 -07:00
Christian Walther
0bdff4fd5f
Remove addressed TODO comments
2021-07-23 21:00:00 +02:00
microDev
e790ff7327
Merge pull request #5036 from tannewt/esp_oserror0
...
Remove OSError(0) and old network modules
2021-07-23 11:00:56 +05:30
Scott Shawcroft
beda1f7998
Merge pull request #5037 from hierophect/getprevtraceback
...
Add supervisor.get_previous_traceback() function.
2021-07-22 17:00:14 -07:00
Scott Shawcroft
779b5c1850
Merge pull request #5040 from lesamouraipourpre/max-size
...
Remove the max_size parameter from displayio.Group
2021-07-22 16:56:14 -07:00
Scott Shawcroft
2cb25622d0
Comment where -2 value comes from
2021-07-22 16:38:48 -07:00
James Carr
45fd6dd68c
Remove the max_size parameter from displayio.Group
...
max_size has been ignored for a while with the intention of removing it in 7.0
2021-07-22 19:41:45 +01:00
Lucian Copeland
ace04ef600
Formatting fixes
2021-07-22 12:57:10 -04:00
Christian Walther
cf97793af8
Add supervisor.get_previous_traceback() function.
...
Useful for #1084 .
2021-07-22 12:23:55 -04:00
Scott Shawcroft
f84cb94819
Remove OSError(0) and old network modules
...
The newer modules are `socketpool` and `ssl`.
Fixes #3924 , related to #2021 , closes #1880 , closes #2273 , closes #2274
2021-07-21 17:33:40 -07:00