Commit Graph

2485 Commits

Author SHA1 Message Date
Alec Delaney
b90a3160d4 Add information on canio 2022-09-12 21:09:07 -04:00
Alec Delaney
a7c7d1428a Add information for countio 2022-09-12 20:46:29 -04:00
Alec Delaney
fcdb988fa1 Add information for audioio 2022-09-12 20:36:51 -04:00
Alec Delaney
5a1223fea8 Add info for rotaryio 2022-09-12 20:07:37 -04:00
Jeff Epler
56112e00a1 Give fontio its own enable
.. the default is intended to be the equivalent of the original,
implementing `DISPLAYIO && TERMINALIO`.

This is a possible alternative to #6889, if I understand the intent.
2022-09-11 08:09:14 -05:00
Lee Atkinson
f279a2dbb2
Merge branch 'adafruit:main' into adcdma 2022-09-08 11:46:01 -04:00
Dan Halbert
dd37c81136
Merge pull request #6847 from dhalbert/status-bar-control
Allow enabling and disabling of status bar
2022-09-08 10:48:36 -04:00
latkinso42
c1f57c6ceb Pushing for resolution 2022-09-07 18:53:35 -04:00
latkinso42
a87d3bd89e Bad quotes 2022-09-06 19:40:20 -04:00
latkinso42
51dab921ea Bad object reference 2022-09-06 19:09:00 -04:00
latkinso42
25078a24a3 Attempt to fix Build-Docs and Pre-Commit 2022-09-06 18:58:57 -04:00
latkinso42
a1856ea3e9 Renaming module from adcbuffer to analogbufio 2022-09-05 12:11:49 -04:00
latkinso42
d7a1db5b87 Changes per review 2022-09-04 15:57:59 -04:00
latkinso42
6fe2ea4513 Merging back with updated main files 2022-09-02 15:51:45 -04:00
Alec Delaney
85f0206fa4 Document socketpool.SocketPool.__init__() 2022-09-01 19:44:08 -04:00
MicroDev
b1371ceb62
Merge pull request #6846 from tekktrik/dev/fix-uart-docs
Fix UART documentation
2022-09-01 13:08:34 +05:30
Dan Halbert
2fa671c0f8 avoid status bar updates immediately after hard restart 2022-08-30 22:33:29 -04:00
Dan Halbert
52080e24eb status bar control 2022-08-30 15:23:44 -04:00
thetazero
1a40757cdd
Change unpopulated to always 0 2022-08-30 11:48:17 -04:00
Alec Delaney
0d8dab7381
Update write() function definition 2022-08-30 11:18:06 -04:00
Alec Delaney
bf9f329a61
Fix UART.readline docstring 2022-08-30 11:12:47 -04:00
thetazero
92c77013bf
Lint 2022-08-30 10:37:48 -04:00
thetazero
f5286b4e79
Improve os.stat docs 2022-08-29 13:01:11 -07:00
Dan Halbert
98cc46e784 Merge pull request #6834 from DavePutz/issue_6565
Make PulseIn object long-lived
2022-08-28 19:00:49 -04:00
root
44a5ca2f85 Make pulsein object long-lived 2022-08-28 12:07:26 -05:00
root
09dd2294f6 Make Pulsein long-lived 2022-08-28 12:00:48 -05:00
Lee Atkinson
04af01a672 Pin Validation fixed/readmultiple return fixed 2022-08-27 14:47:12 -04:00
Lee Atkinson
7cd969e236 Fixing document triple quotes 2022-08-25 17:09:50 -04:00
Lee Atkinson
532ae2a39d Fixing Document issues 2022-08-25 11:57:07 -04:00
Dan Halbert
aa5f892a11
Merge pull request #6810 from maximkulkin/usb-hid-get-last-report-doc
shared-bindings/usb_hid: Fix docs for Device.get_last_received_report()
2022-08-25 07:55:59 -04:00
MicroDev
48967ed725
Merge pull request #6802 from dhalbert/remove-last_received_report-property
remove usb_hid.Device.last_received_report
2022-08-25 12:19:07 +05:30
Lee Atkinson
37b6079c05 Merge branch 'adcdma' of https://github.com/latkinso42/circuitpython into adcdma
Reconciling remote updates
2022-08-24 21:46:28 -04:00
Lee Atkinson
55c0404d85
Merge branch 'adafruit:main' into adcdma 2022-08-24 21:07:12 -04:00
Alec Delaney
c395e0d217
Fix type annotation in adafruit_bus_device.SPIDevice.__init__() 2022-08-24 20:48:32 -04:00
Maxim Kulkin
76ce46a530 shared-bindings/usb_hid: Fix docs for Device.get_last_received_report()
Update documentation for Device.get_last_received_report() fixing
type signature and adding note on "consume" behavior.
2022-08-24 17:59:14 -04:00
Lee Atkinson
6fd08483e2 Tidying code for PR/ Minor Issues 2022-08-24 17:41:51 -04:00
Dan Halbert
fa5fcb612d remove usb_hid.Device.last_received_report 2022-08-24 08:56:48 -04:00
Jeff Epler
e920c977d4
hashlib: fix the 'digest_size' property
Closes: #6796
2022-08-23 14:57:26 -05:00
Lee Atkinson
57c9d9cad5
Merge branch 'adafruit:main' into adcdma 2022-08-23 08:04:23 -04:00
root
fc21b30762 Make rotaryio object long-lived 2022-08-21 15:09:27 -05:00
Lee Atkinson
f5655dd48c Fixing Build errors/ DMA Xfer Rate 2022-08-21 11:44:40 -04:00
gamblor21
f134f86291 Two small fixes, remove hardcoded height and non-scale issues 2022-08-19 15:13:38 -05:00
Lee Atkinson
68671399d1 More formating 2022-08-19 10:51:13 -04:00
Lee Atkinson
d3c3c9eac4 Tidy a few things 2022-08-18 19:10:16 -04:00
Lee Atkinson
f91af513b7 Introduced odule adcbuffer / removed analogio/AnalogFastIn 2022-08-18 16:23:17 -04:00
Lee Atkinson
1836a14fc6 Adding ifdef in AnalogFastIn.h 2022-08-15 10:23:16 -04:00
Lee Atkinson
3a45a8eae6 Adding ifdef in __init__.c 2022-08-15 07:52:34 -04:00
Lee Atkinson
4542c801b0 Tidying up loose endson draft PR 2022-08-14 13:03:33 -04:00
Lee Atkinson
8cd12b2478 Copyright Change 2022-08-12 16:01:58 -04:00
Lee Atkinson
81c7ba899d Copyright Update/Acknowledgements 2022-08-12 13:57:45 -04:00
Lee Atkinson
6d8e8c71fc Merge branch 'adcdma' of https://github.com/latkinso42/circuitpython into adcdma
Fixing code behind commits
2022-08-11 17:58:46 -04:00
Lee Atkinson
ce24469848
Merge branch 'adafruit:main' into adcdma 2022-08-11 17:57:01 -04:00
Lee Atkinson
c3c1e307c4 Sample Rate Enhancements 2022-08-11 17:50:30 -04:00
Dan Halbert
5a2d870a9b
Merge pull request #6741 from tannewt/remove_pulseout_pwm_param
Remove PWMOut parameter to PulseOut
2022-08-11 09:26:51 -04:00
Lee Atkinson
5fb5fd0558
Merge branch 'adafruit:main' into adcdma 2022-08-10 18:33:52 -04:00
Jeff Epler
c2a45c1f27
Merge pull request #6739 from jepler/qrio-esp32camera
Enable qrio to work with rgb565 data, including byte-swapped data
2022-08-10 13:54:40 -05:00
Jeff Epler
3c3b7cb1e7 whitespace in docstrings 2022-08-10 11:14:33 -05:00
Jeff Epler
5168f6ec1f Add support for RGB565 images in qrio
Most cameras produce RGB565_SWAPPED data
2022-08-10 11:13:26 -05:00
Lee Atkinson
e778112710
Merge branch 'adafruit:main' into adcdma 2022-08-10 10:29:17 -04:00
Lee Atkinson
9e0c580d3d AnalogFastIn 2022-08-10 09:42:24 -04:00
Dan Halbert
02cc6c2aee Merge remote-tracking branch 'adafruit/main' into remove-autobrightness 2022-08-10 08:35:53 -04:00
Dan Halbert
ce2bd9b9bc
Merge pull request #6712 from jepler/keyboard-keypad-ioctl
Make keypad select/poll'able, which leads to async goodness
2022-08-10 08:18:36 -04:00
Scott Shawcroft
e50fc237f8
Merge pull request #6730 from tannewt/remove_scanentry_all
Remove all kwarg from ScanEntry.matches
2022-08-09 22:03:14 -07:00
Jeff Epler
76f03a2bee
Make keypad select/poll'able for better async
This allows a small wrapper class to be written
```py
class AsyncEventQueue:
    def __init__(self, events):
        self._events = events

    async def __await__(self):
        yield asyncio.core._io_queue.queue_read(self._events)
        return self._events.get()

    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_value, traceback):
        pass

```
and used to just "await" the next event:
```py
async def key_task():
    print("waiting for keypresses")
    with keypad.KeyMatrix([board.D4], [board.D5]) as keys, AsyncEventQueue(keys.events) as ev:
        while True:
            print(await ev)
```

Because checking the empty status of the EventQueue does not enter
CircuitPython bytecode, it's assumed (but not measured) that this is
more efficient than an equivalent loop with an `await async.sleep(0)`
yield and introduces less latency than any non-zero sleep value.
2022-08-09 21:48:27 -05:00
Dan Halbert
41bcd7b260 Remove support for auto-brightness 2022-08-09 22:40:21 -04:00
Scott Shawcroft
35f3773e94
Remove PWMOut parameter to PulseOut
Fixes #3264
2022-08-09 14:55:13 -07:00
Scott Shawcroft
7a07247974
Remove all kwarg from ScanEntry.matches
Fixes #3007
2022-08-09 14:37:52 -07:00
Scott Shawcroft
554063a817
Merge branch 'main' into espressif-camera-2 2022-08-09 14:07:14 -07:00
Jeff Epler
c74746f052 Cross references in documentation always help 2022-08-09 12:20:02 -05:00
Dan Halbert
84807cd6eb Change I2C terminology from "peripheral" to "target" 2022-08-09 13:13:19 -04:00
Lee Atkinson
f69939c49c First Commit for AnalogFastIn 2022-08-06 16:22:50 -04:00
Jeff Epler
1a11ff864a
Merge remote-tracking branch 'origin/main' into espressif-camera-2 2022-08-05 21:08:12 -05:00
Jeff Epler
1da8065d6b
Merge remote-tracking branch 'origin/main' into espressif-camera-2 2022-08-05 16:38:51 -05:00
Scott Shawcroft
207311b02a
Merge branch 'main' into title_execution_status 2022-08-05 13:42:58 -07:00
gamblor21
9b9f8de0ba Changed error handling to use new routine 2022-08-04 19:34:12 -05:00
Scott Shawcroft
5e015001c0
Add supervisor.runtime.autoreload
This replaces supervisor.enable_autoreload() and
supervisor.disable_autoreload(). It also allows user code to get
the current autoreload state.

Replaces #5352 and part of #5414
2022-08-04 16:34:25 -07:00
Scott Shawcroft
83cbbc9946
Add BLE status to title bar 2022-08-04 16:33:10 -07:00
gamblor21
0ca29fa213 Check if CS parameter is DigitalInOut type 2022-08-04 18:12:27 -05:00
Jeff Epler
64b1d003df
Allow a Bitmap to be constructed from a buffer (in C anyway)
.. so that Camera.take() can return one without copying
2022-08-04 15:11:58 -05:00
Jeff Epler
07afb3eab8
Fix typo 2022-08-04 15:11:49 -05:00
Jeff Epler
5ac3aeaac7
Remove unused header 2022-08-04 15:11:47 -05:00
Scott Shawcroft
c4c15206e7
Merge pull request #6608 from tannewt/web_workflow_port
Allow for dynamic reconfigure including port
2022-07-28 12:59:31 -07:00
Scott Shawcroft
babd4ee618
Tweaks based on review comments 2022-07-28 08:43:36 -07:00
Neradoc
eabe8b971a list extensions instead of macros names ("bin,uf2" not BIN_UF2)
the modules_support_matrix usees a dictionnary per board instead of a list
optionally include the frozen modules URLs in it
2022-07-26 18:15:59 +02:00
Scott Shawcroft
78b4159448
Allow for dynamic reconfigure including port 2022-07-15 16:33:12 -07:00
Scott Shawcroft
01b18cc8dc
Merge pull request #6595 from Neradoc/add-root-group-to-framebufferio
Add root_group accessor in framebufferio.FramebufferDisplay
2022-07-14 11:05:14 -07:00
Neradoc
17d65fe8f3 fix the docs 2022-07-14 13:31:41 +02:00
Neradoc
626296b613 implement root_group in framebufferio.FramebufferDisplay 2022-07-14 11:47:36 +02:00
Scott Shawcroft
2f9de1cb07
Merge pull request #6584 from tannewt/websocket_serial
Add WebSocket at /cp/serial/
2022-07-13 14:15:49 -07:00
Scott Shawcroft
f869a86d9a
Merge pull request #6581 from FoamyGuy/docs_links_foamyguy_0
adding links in docs
2022-07-13 10:30:35 -07:00
Scott Shawcroft
23bbb19138
Merge remote-tracking branch 'adafruit/main' into websocket_serial 2022-07-12 13:15:38 -07:00
Scott Shawcroft
425a0efeca
A bit more cleanup 2022-07-11 14:53:20 -07:00
foamyguy
e92ac0caf4 adding links in docs 2022-07-11 11:04:06 -05:00
Tod Kurt
5bf07d9662
Update shared-bindings/wifi/Radio.h
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-07-09 22:17:35 -07:00
Tod Kurt
d3e1d1b104 Fix #6559 2022-07-07 19:42:11 -07:00
Dan Halbert
8814ee03f1
Merge pull request #6542 from todbot/wifi-tx-power
Add wifi.radio.tx_power
2022-07-01 14:09:08 -04:00
Scott Shawcroft
7589e53fea
WIP websocket accept and hashlib 2022-07-01 10:18:33 -07:00
Tod Kurt
2d7793e140 update tx_power description per dhalbert suggestion 2022-07-01 09:49:59 -07:00
Tod Kurt
d13f24648e first cut at wifi.radio.tx_power 2022-06-30 15:27:57 -07:00
Tod Kurt
2a563cc8ba first cut at wifi.radio.tx_power 2022-06-30 15:10:16 -07:00
Scott Shawcroft
41039445c9
Clean up and add docs 2022-06-27 13:39:09 -07:00
Scott Shawcroft
3cd05291d0
Static files + welcome page 2022-06-27 13:39:09 -07:00
Scott Shawcroft
4f0a7aedfd
WIP adding devices.json and auth 2022-06-27 13:34:13 -07:00
Scott Shawcroft
0882cbf823
web server kinda works 2022-06-27 13:34:13 -07:00
Scott Shawcroft
61d0f7947b
WIP doesn't flush response before closing 2022-06-27 13:34:13 -07:00
Scott Shawcroft
301f3e0456
Start of web server 2022-06-27 13:34:13 -07:00
foamyguy
a45de19731 use validate_int_range(). remove string translation entry 2022-06-23 07:28:04 -05:00
foamyguy
8daa1be701 validate bounds of pixel index in make_opaque and is_transparent 2022-06-21 22:11:58 -05:00
foamyguy
fcf46552f0 validate bounds of pixel index in make_transparent 2022-06-21 22:03:59 -05:00
Scott Shawcroft
0c418e98b1
Merge remote-tracking branch 'adafruit/main' into auto_wifi 2022-06-13 15:44:43 -07:00
Scott Shawcroft
b191075ab8
Better length checks 2022-06-13 09:18:42 -07:00
foamyguy
b6c7815f83 improving rotozoom() argument docstrings 2022-06-10 18:01:02 -05:00
Scott Shawcroft
6446010753
Wi-Fi autoconnect and title bar status
This adds support for CIRCUITPY_WIFI_SSID and CIRCUITPY_WIFI_PASSWORD
in `/.env`. When both are defined, CircuitPython will attempt to
connect to the network even when user code isn't running. If the
user code attempts to a network with the same SSID, it will return
immediately. Connecting to another SSID will disconnect from the
auto-connected network. If the user code initiates the connection,
then it will be shutdown after user code exits. (Should match <8
behavior.)

This PR also reworks the default displayio terminal. It now supports
a title bar TileGrid in addition to the (newly renamed) scroll area.
The default title bar is the top row of the display and is positioned
to the right of the Blinka logo when it is enabled. The scroll area
is now below the Blinka logo.

The Wi-Fi auto-connect code now uses the title bar to show its
state including the IP address when connected. It does this through
the "standard" OSC control sequence `ESC ] 0 ; <s> ESC \` where <s>
is the title bar string. This is commonly supported by terminals
so it should work over USB and UART as well.

Related to #6174
2022-06-09 14:55:54 -07:00
Scott Shawcroft
b90563d504
Merge pull request #6442 from FoamyGuy/tilegrid_contains
tilegrid.contains() function
2022-06-06 11:02:43 -07:00
Dan Halbert
80ae14202a
Merge pull request #6416 from FoamyGuy/display_brightness_pwm
display brightness pwm 500hz frequency
2022-06-05 23:52:42 -04:00
foamyguy
260994d16e Merge branch 'main' into display_brightness_pwm 2022-06-04 11:32:15 -05:00
Scott Shawcroft
be67067809
Merge remote-tracking branch 'adafruit/main' into translate_header 2022-06-03 15:18:18 -07:00
foamyguy
bc0fdaa026 fix tilegrid.contains() docstring 2022-06-03 17:01:24 -05:00
gamblor21
1d0546da31 Made tcp set arguments keywords 2022-06-02 16:31:39 -05:00
gamblor21
40e890323b Add DNS optional to set IP 2022-06-01 20:13:51 -05:00
gamblor21
4f6d4e2284 Doc fix and add set for DNS 2022-05-31 22:13:18 -05:00
foamyguy
ffc451b338 argument for backlight_pwm_frequency and use it in pyportal titano build 2022-05-28 12:01:05 -05:00
foamyguy
db318726a2 tilegrid.contains() function 2022-05-27 18:05:44 -05:00
gamblor21
90fe20a153 Adding manual IP address set 2022-05-27 15:33:54 -05:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO 2022-05-27 12:59:54 -07:00
Dan Halbert
d631ec38c6
Merge pull request #6407 from tannewt/dotenv
Add dotenv read support
2022-05-26 12:11:33 -04:00
Dan Halbert
1fb210bd40
Merge pull request #5491 from pypewpew/remove-gamepadshift
Remove gamepadshift module
2022-05-25 13:58:06 -04:00
Radomir Dopieralski
c0152e7dab Remove gamepadshift module
Everything should be using the keypad module instead.

Note: there are several boards that still had gamepadshift enabled. I
did not contact their authors to make sure they already switched to
keypad in their code and documentation. We should probably wait with
merging this for their go ahead.
2022-05-25 00:48:55 +02:00
Dan Halbert
74c92ffe9e Remove busio.OneWire and bitbangio.OneWire 2022-05-24 12:26:33 -04:00
Scott Shawcroft
a6b60d2083
Merge remote-tracking branch 'adafruit/main' into dotenv 2022-05-23 11:23:20 -07:00
Tyler Crumpton
4a15571295
Fix a minor namespace issue in the countio example 2022-05-23 13:03:03 -05:00
Dan Halbert
f63b26c534 address jepler's comments and further squeezes 2022-05-20 10:10:55 -04:00
Dan Halbert
a01dec1df9 message consolidation and more use of validators 2022-05-19 15:38:37 -04:00
Scott Shawcroft
a30de85d57
Add dotenv read support
os.getenv() will use it (when available) to load variables from
/.env

This will also be useful when we need secrets or config for
CircuitPython outside of the VM (like WiFi credentials.)

Fixes #4212
2022-05-18 14:01:35 -07:00
Scott Shawcroft
f975c97c63
Merge pull request #6363 from FoamyGuy/hidden_vectorio
Hidden vectorio
2022-05-18 09:00:13 -07:00
Dan Halbert
06dac4071d
Merge pull request #6288 from Neradoc/add-frozen-modules-to-support-matrix
List frozen modules in the support matrix
2022-05-13 20:34:41 -04:00
Dan Halbert
936f5bf23e
Merge pull request #6338 from jepler/fix-display-invalid-sh1107
Fix display invalid sh1107
2022-05-13 20:33:43 -04:00
Dan Halbert
951eea7748
Merge pull request #6391 from tekktrik/doc/add-additional-builtins-docs
Add additional documentation for modules, builtin exceptions
2022-05-13 15:59:39 -04:00
Alec Delaney
fca1a9bb5f Change "library" to "module" 2022-05-13 14:00:09 -04:00
Dan Halbert
ae8347f5e5 add error msg for SH1107 fix 2022-05-13 12:54:46 -04:00
Alec Delaney
cb3932ce29 Make other documentation links prettier 2022-05-13 11:51:30 -04:00
Alec Delaney
82810085b5 Add note about display guide to bitmaptools 2022-05-13 11:47:21 -04:00
Alec Delaney
a51b1353ea Add link to Learn guide for alarm module 2022-05-13 11:24:02 -04:00
Alec Delaney
78a87c3bb2 Added link to Learn guide for audiomp3 2022-05-13 11:15:05 -04:00
Alec Delaney
e30d510192 Reformatting for fontio module 2022-05-13 11:14:48 -04:00
Scott Shawcroft
269d51d023
Add two stage reset for BLE
This lets the BLE stack run through the wait period after a VM run
when it may be waiting for more writes due to an auto-reload.

User BLE functionality will have their events stopped. Scanning and
advertising is also stopped.
2022-05-12 13:20:44 -07:00
Alec Delaney
b035277e15
Mention other hardware in microcontroller module 2022-05-12 15:33:11 -04:00
Alec Delaney
aa74f21321
Add note about REPL in terminalio 2022-05-12 15:31:00 -04:00
Alec Delaney
9c0dbbab2e
Add links to information for fontio 2022-05-12 15:21:46 -04:00
Alec Delaney
a4f4effb44
Update qrio documentation 2022-05-12 14:53:01 -04:00