Commit Graph

359 Commits

Author SHA1 Message Date
gamblor21 863a8bce03 Fix with PWM for brightness slowing devices down 2022-09-11 20:34:53 -05:00
Pepijn de Vos f69f517352
allow writing empty color frame 2022-09-06 19:32:15 +02:00
Dan Halbert 02cc6c2aee Merge remote-tracking branch 'adafruit/main' into remove-autobrightness 2022-08-10 08:35:53 -04:00
Dan Halbert 41bcd7b260 Remove support for auto-brightness 2022-08-09 22:40:21 -04: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
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
foamyguy c9c864a4f7 fix off by one right and bottom edges of tilegrid.contains() 2022-06-03 17:51:33 -05:00
foamyguy 6831dd8aaa return expression formatting 2022-06-03 17:04:53 -05:00
foamyguy 87f4cd6bca
return expression instead of if statement
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-06-03 16:21:50 -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
foamyguy 6b04b7efc8 display brightness pwm 500hz frequency 2022-05-21 12:09:23 -05:00
Dan Halbert a01dec1df9 message consolidation and more use of validators 2022-05-19 15:38:37 -04:00
Scott Shawcroft f975c97c63
Merge pull request #6363 from FoamyGuy/hidden_vectorio
Hidden vectorio
2022-05-18 09:00:13 -07:00
foamyguy 1c564764d6 use draw protocol impl in parent hidden too 2022-05-08 12:14:28 -05:00
foamyguy b6a5f421a9 use draw protocol impl 2022-05-08 12:02:59 -05:00
foamyguy 330e01d8e0 handle groups inside of groups with vectorio hidden 2022-05-07 12:27:36 -05:00
foamyguy c77dc3c828 code format 2022-05-07 11:59:26 -05:00
foamyguy d1aab89a59 remove prints and extra whitespace 2022-05-07 11:57:27 -05:00
foamyguy b03968aee5 hide vectorio objects if their containing group is hidden 2022-05-07 11:50:40 -05:00
foamyguy c8a98d1a18 Merge branch 'adafruit_main' into hidden_vectorio 2022-05-07 10:25:34 -05:00
Jeff Epler 030d5fefa0
Ignore SH1107 quirk if not 1bpp 2022-05-03 09:23:36 -05:00
foamyguy 16b81c855d adding bitmap property to TileGrid 2022-04-09 11:26:36 -05:00
foamyguy 666a5ff04c trying to make vectorio shape hidable 2022-04-09 10:09:46 -05:00
Scott Shawcroft dcc3ec171e
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2 2022-03-15 13:56:11 -07:00
Scott Shawcroft 32ac396a41
Further refine autoreload
This unifies the delay into the post-run delay that also waits
for user input and fake sleep. This ensures we always delay.
Previous code would only delay if the code.py was running when
autoreload was triggered. Now it will always delay.

We also now suspend autoreload when a USB write starts and then
resume on completion. This should prevent reloading in between
sectors of a single write.
2022-03-14 16:49:30 -07:00
Dan Halbert e4cd9690f1 rework auto-reload delay logic 2022-03-11 14:03:04 -05:00
Radomir Dopieralski 102ee716a7 Add support for 9-bit mode to displayio.FourWire
If the ``command`` pin is None, that information will instead be
sent as a ninth bit in the SPI transactions.

Fix #6109
2022-03-04 22:59:17 +01:00
Kevin Matocha 03f42406d3 updated code so the REPL will retain its text if not resized when code stops 2022-02-21 10:33:08 -06:00
Dan Halbert 4dc9b00221
Merge pull request #5954 from kmatch98/repl_wrangler
Expose display’s root_group, add function to resize REPL terminal
2022-02-02 15:36:22 -05:00
Mark 5972fdc108
Merge branch 'main' into is31pixelbuf 2022-02-01 13:59:28 -06:00
Kevin Matocha 0290fc35d2 Removing some unnecessary files that were changed 2022-02-01 08:28:40 -06:00
Dan Halbert 83e6e6690a wip; works on espressif 2022-01-29 22:44:27 -05:00
Dan Kulinski 19f9163892 Bringing branch up to date with current main 2022-01-25 11:02:00 -07:00
gamblor21 af93817552 Fixing bad merge 2022-01-23 14:57:06 -06:00
Mark 21c8ac9d4c
Merge branch 'main' into is31pixelbuf 2022-01-23 13:41:10 -06:00
gamblor21 563d8f297c Major refractor to make a common base object 2022-01-23 13:12:37 -06:00
microDev 67293c265c
Merge branch 'main' into board-bus 2022-01-21 10:08:39 +05:30
Dan Kulinski ca8299e51b Update logic for offset 2022-01-14 15:25:40 -07:00
Dan Kulinski fbd9e3284b Add two byte length check 2022-01-14 15:25:40 -07:00
foamyguy c4be8a5c94 tilegrid size properties 2021-12-13 09:44:08 -06:00
microDev b6858e4ca7
allow multiple board buses
Co-authored-by: Neradoc <neraOnGit@ri1.fr>
2021-12-11 23:07:21 +05:30
Scott Shawcroft ee5536386d
Merge remote-tracking branch 'adafruit/main' into rpi 2021-11-24 14:23:23 -08:00
Scott Shawcroft 927a720de9
Fix I2C and feedback from Dan 2021-11-23 17:23:13 -08:00
gamblor21 97032fdbd0 Renaming files 2021-11-23 17:21:13 -06:00
gamblor21 9f2660f6ac Capitalization changes 2021-11-23 17:06:39 -06:00
Timon a1052d5f73
Initial broadcom port for Raspberry Pi
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.

There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
  themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
  mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
  and unnecessary for the vast majority of builds.

Fixes #4314
2021-11-22 14:54:44 -08:00
gamblor21 2f277eba3e Cleanup and i2c fix 2021-11-20 13:46:12 -06:00
gamblor21 aa92d3a476 Cleanup and scaling addition 2021-11-20 13:46:11 -06:00