Commit Graph

26423 Commits

Author SHA1 Message Date
Jeff Epler 9cf2baf68e
remove unneeded LONGINT_IMPL logic 2021-12-27 16:39:33 -06:00
Jeff Epler 34e8bfd09e
explicitly use mpz long ints on this board 2021-12-27 16:39:04 -06:00
Kenny 8de5f90086 vectorio contains(x, y)
new utility function for all vectorio shape specializations for testing
whether a screen-space x,y point falls within a shape's x,y.

This respects the current orientation of the screen in the manner of
displayio and vectorio - so your x,y requests are in the same coordinate
domain as your x,y locations and your width/height etc. properties that
ou set on other shapes. I.e., if you're using this for touch points then
you will need to make sure the touch events are in the same x,y domain as
your display.

```
contains(2, 4) -> true
------------------
|                |
|                |
| --             |
| | \            |
| |. \           |
| |   \          |
| |____\         |
|                |
------------------

contains(5, 4) -> false
------------------
|                |
|                |
| --             |
| | \            |
| |  \.          |
| |   \          |
| |____\         |
|                |
------------------
```

This helps provide low overhead introspection of shape coverage on screen.
It's envisioned that this will be used for things like touch-and-drag
widget controls, touch "areas" and may help with random ornament placement
on toy Christmas trees.
2021-12-27 12:01:19 -10:00
Hosted Weblate 4603846919
Merge remote-tracking branch 'origin/main' 2021-12-27 17:41:52 +01:00
Jeff Epler f5fa4ae237
Merge pull request #5764 from dannystaple/patch-1
Fix RST formatting for readthedocs
2021-12-27 09:41:46 -07:00
Jeff Epler 75857ce141
Install setuptool_scm for `make check-stubs`
This fixes the lengthy build-time message

> setuptools_scm-6.3.2-py3.9.egg/setuptools_scm/integration.py:16: RuntimeWarning:
> ERROR: setuptools==44.1.1 is used in combination with setuptools_scm>=6.x
>
> Your build configuration is incomplete and previously worked by accident!
>
>
> This happens as setuptools is unable to replace itself when a activated build dependency requires a more recent setuptools version (it does not respect "setuptools>X" in setup_requires).
>
>
> setuptools>=31 is required for setup.cfg metadata support
> setuptools>=42 is required for pyproject.toml configuration support
>
> Suggested workarounds if applicable:
>  - preinstalling build dependencies like setuptools_scm before running setup.py
>  - installing setuptools_scm using the system package manager to ensure consistency
>  - migrating from the deprecated setup_requires mechanism to pep517/518 and using a pyproject.toml to declare build dependencies which are reliably pre-installed before running the build tools
2021-12-27 10:36:56 -06:00
Jeff Epler 316c25303d
Provide a protocol for `Font`s 2021-12-27 10:31:35 -06:00
Jeff Epler 1d13c4ccd1
Centralize LONGINT_IMPL handling
This closes #5782
2021-12-27 10:21:47 -06:00
Hosted Weblate 2fda15f6d7
Merge remote-tracking branch 'origin/main' 2021-12-27 14:35:16 +01:00
Jeff Epler 3dcebf1085
Merge pull request #5774 from RetiredWizard/Broadcom-long-integer-enable
Add enable long integer flags to Broadcom
2021-12-27 06:35:10 -07:00
0hotpotman0 0f5b20c650 Correct pin name 2021-12-27 13:45:39 +08:00
hexthat a9592644f2
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.0% (1019 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-12-27 03:51:37 +01:00
0hotpotman0 9810f0f824 Correct the pin LED 2021-12-27 09:24:33 +08:00
MicroDev 928695f757
Merge pull request #5769 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-26 11:48:18 +05:30
Hosted Weblate 286f2d2420
Merge remote-tracking branch 'origin/main' 2021-12-25 06:35:58 +01:00
MicroDev dd6f9abbd4
Merge pull request #5775 from jpconstantineau/update-nrf52833-uf2-familly
updating UF2_FAMILY_ID for nrf52833
2021-12-25 11:05:50 +05:30
Dan Halbert ab9cef736c
Merge pull request #5779 from dhalbert/feather-esp32-s2-turn-on-i2c-power-by-default
Feather ESP32-S2: turn on I2C power after reset
2021-12-24 18:21:16 -05:00
River Wang 9a043528a8
Translated using Weblate (Chinese (Pinyin))
Currently translated at 98.3% (1012 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-12-24 22:51:29 +01:00
Dan Halbert cf70a9ca61 Turn on I2C power for each VM, instead of just after hard reset 2021-12-24 16:27:17 -05:00
Dan Halbert 889b25d792 put I2C_POWER_INVERTED alias before D7, for prettypins 2021-12-24 11:49:58 -05:00
Dan Halbert cf349af35e turn on I2C power after reset 2021-12-24 11:45:07 -05:00
Dan Halbert 78637e0462
Merge pull request #5778 from dhalbert/update-frozen-libraries-2021-12-24-7.1.x
update frozen libraries for 7.1.x
2021-12-24 11:13:29 -05:00
Dan Halbert b9f7fd663b shrink CPX crickit build 2021-12-24 08:57:27 -05:00
Dan Halbert 5594024bb6 update frozen libraries for 7.1.x 2021-12-24 08:21:24 -05:00
0hotpotman0 0cbbfadad9 Correct the pin name and add the monitor battry function 2021-12-24 18:51:26 +08:00
Pierre Constantineau e86810fce2 updating UF2_FAMILY_ID for nrf52833 2021-12-23 16:32:00 -06:00
RetiredWizard 4683619bb0
Add long integer flags to enable
Code stolen from raspberrypi port
2021-12-23 14:29:25 -05:00
Hosted Weblate 56bac1bfc0
Merge remote-tracking branch 'origin/main' 2021-12-23 20:08:46 +01:00
Scott Shawcroft 605753cd7d
Merge pull request #5771 from hathach/s3-familyid
use family id for s2 and s3 depending on IDF_TARGET
2021-12-23 11:08:41 -08:00
Hosted Weblate ad51528a71
Merge remote-tracking branch 'origin/main' 2021-12-23 20:00:35 +01:00
Dan Halbert 35f0330d16
Merge pull request #5773 from dhalbert/update-frozen-libraries-2021-12-23-7.1.x
Update frozen libraries in preparation for 7.1.0-rc.0
2021-12-23 14:00:31 -05:00
Dan Halbert 325c2161e9 shrink CPX crickit build 2021-12-23 12:24:16 -05:00
Dan Halbert 7ecd7bcac1 Update frozen libraries 2021-12-23 11:50:40 -05:00
Hosted Weblate a838ead120
Merge remote-tracking branch 'origin/main' 2021-12-23 14:30:16 +01:00
Jeff Epler 900ec91fa6
Merge pull request #5761 from adafruit/7.1.x
Bring 7.1.x changes into main - cascadetoml undo + alarm fixes
2021-12-23 06:30:05 -07:00
hathach 53869d71fd
use family id for s2 and s3 depending on IDF_TARGET 2021-12-23 14:53:00 +07:00
Dan Halbert 41db3f6fb6
Merge pull request #5765 from adafruit/revert-5755-fix-cascadetoml-more
Revert "Fix cascadetoml more"
2021-12-22 22:35:27 -05:00
Hosted Weblate 4bd4856682
Merge remote-tracking branch 'origin/main' 2021-12-23 04:17:38 +01:00
Jeff Epler c1236fb4d6
Merge pull request #5766 from tannewt/rp2040_sideset_enable
Add sideset_enable support to PIO
2021-12-22 20:17:33 -07:00
Scott Shawcroft 827ad327a5
Only ignore warnings if in gcc >= 11 2021-12-22 18:21:18 -08:00
dronecz 05b814e8b4
Translated using Weblate (Czech)
Currently translated at 5.8% (60 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/cs/
2021-12-23 02:53:48 +01:00
Scott Shawcroft 674c845fb6
Merge pull request #5760 from jepler/rename_under_typing
circuitpython_stubs: Use `circuitpython_typing` for cp-specific typing
2021-12-22 14:05:04 -08:00
Scott Shawcroft 3e13d4f5b5
Add sideset_enable support to PIO
This allows for UART TX via PIO
2021-12-22 12:00:19 -08:00
Scott Shawcroft 9d5ae2e072
Merge pull request #5762 from dhalbert/stale-wakeup-reasons
Fix recording of wake_alarm
2021-12-22 10:21:50 -08:00
Scott Shawcroft 936644c157
Revert "Fix cascadetoml more" 2021-12-22 10:07:30 -08:00
Jeff Epler 828b7d88d8 update sphinx
note that per the https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
specify "3" for the latest python version (not 3.x as on github actions)
2021-12-22 11:32:54 -06:00
Jeff Epler fb79d1c1d1 bitmaptools: add missing types
These diagnostics occurred, but weren't treated as errors:
```
[WARN] Missing return type: alphablend on line 38
[WARN] Missing argument type: dest_bitmap on line 38
[WARN] Missing argument type: source_bitmap_1 on line 38
[WARN] Missing argument type: source_bitmap_2 on line 38
```
2021-12-22 11:16:38 -06:00
Jeff Epler 166793f843 circuitpython_stubs: Use `circuitpython_typing` for cp-specific typing
Installing stubs for a module named `_typing` seems like a dubious
decision.
2021-12-22 11:14:21 -06:00
Danny Staple 174a2cbf25
Fix RST formatting for readthedocs
And also a typo/grammar thing.
2021-12-22 17:03:58 +00:00
Dan Halbert 3bb9a4439d Fix recording of wake_alarm 2021-12-21 21:48:36 -05:00