Dan Halbert
8293e1eedc
fix display rotation and position
2021-03-19 00:09:48 -04:00
Dan Halbert
47437cb415
make translate; fix display pins
2021-03-18 23:42:24 -04:00
Dan Halbert
ea82ca1d02
correct PID
2021-03-18 23:24:20 -04:00
Dan Halbert
21c55f8e75
update funhouse pins for latest rev b
2021-03-18 23:14:59 -04:00
Dan Halbert
b2d913412f
merge from upstream
2021-03-18 23:14:43 -04:00
Scott Shawcroft
5d2b60cbf6
Redo RP2040 flash settings
...
This switches stage2 to C and uses Jinja to change the C code based
on flash settings from https://github.com/adafruit/nvm.toml . It
produces the fastest settings for the given set of external flashes.
Flash size is no longer hard coded so switching flashes with similar
capabilities but different sizes should *just work*.
This PR also places "ITCM" code in RAM to save the XIP cache for
code execution. Further optimization is possible. A blink code.py
still requires a number of flash fetches every blink.
Fixes #4041
2021-03-18 16:55:42 -07:00
Hosted Weblate
0d52725b36
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-03-19 00:41:42 +01:00
Hosted Weblate
c54468a45b
Merge remote-tracking branch 'origin/main' into main
2021-03-19 00:41:40 +01:00
Jose David M
768c9db058
Translated using Weblate (Spanish)
...
Currently translated at 99.7% (975 of 977 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-03-19 00:41:40 +01:00
Jeff Epler
d0125617fd
Merge pull request #4428 from kmatch98/bitmap-read-2
...
Add `reverse_rows` to speedy bitmaptools.readinto function
2021-03-18 18:41:35 -05:00
Jeff Epler
623ece2c73
Merge pull request #4429 from jepler/displayio-bitmap-memoryview
...
displayio.Bitmap: Make memoryview()able
2021-03-18 18:38:25 -05:00
Jeff Epler
2589515342
Merge pull request #4435 from jepler/metro-m7
...
Fixes for Metro M7
2021-03-18 17:56:12 -05:00
Jeff Epler
0b22a9397a
mimxrt: Quiet some warnings down in the sdk
...
Closes #2487
2021-03-18 16:54:11 -05:00
Jeff Epler
0ba0fae495
mimxrt: Enable USB Midi
...
Closes #2473
2021-03-18 16:54:11 -05:00
Jeff Epler
74243fd71a
metro_m7: Update board name, flash chip size
2021-03-18 16:54:11 -05:00
Scott Shawcroft
e3c54b0660
Merge pull request #3513 from microDev1/checkUSB
...
Implement function to check usb connection
2021-03-18 10:43:30 -07:00
Scott Shawcroft
c480047880
Merge pull request #4430 from jepler/bitmap-arrayblit-dirty
...
arrayblit: mark bitmap area as dirty
2021-03-18 10:39:30 -07:00
Jeff Epler
f5fd42c393
displayio: Move bitmap read-only checking to displayio_bitmap_set_dirty_area
...
This is a modest code savings, but more importantly it reduces
boilerplate in bitmap-modifying routines.
Callers need only ensure they call displayio_bitmap_set_dirty_area in
advance of the bitmap modifications they perform.
(note that this assumes that no bitmap operation can enter background
tasks. If an operation COULD enter background tasks, it MUST re-dirty
the area it touches when it exits, simply by a fresh call to
set_dirty_area with the same area as before)
2021-03-18 09:20:56 -05:00
Jeff Epler
36d608aa67
displayio_bitmap_set_dirty_area: rewrite in terms of displayio_area
...
.. simplifying code in the process. For instance, now fill_region
uses area routines to order and constrain its coordinates.
Happily, this change also frees a modest amount of code space.
2021-03-18 09:20:56 -05:00
Jeff Epler
3b506f0fa5
displayio: area: add displayio_area_canon
...
This routine will be used to simplify code that deals with ranges
of bitmap coordinates.
2021-03-18 09:06:00 -05:00
Jeff Epler
f40c0c13ad
displayio: area: add displayo_area_copy_coords, displayio_area_empty
...
.. and simplify the implmentation of displayio_area_union
This _slightly_ changes the behavior of displayio_area_union:
Formerly, if one of the areas was empty, its coordinates were still
used in the min/max calculations.
Now, if one of the areas is empty, the result gets the other area's coords
In particular, taking the union of the empty area with coords (0,0,0,0)
with the non-empty area (x1,y1,x2,y2) would give the area (0,0,x2,y2)
before, and (x1,y1,x2,y2) after the change.
2021-03-18 09:05:07 -05:00
microDev
bd95914e88
implement function to check usb connection
2021-03-18 10:00:01 +05:30
Jeff Epler
47ca792765
arrayblit: mark bitmap area as dirty
2021-03-17 20:25:22 -05:00
Scott Shawcroft
11e510a06a
Merge pull request #4419 from spe2/main
...
Add board definition for Sparkfun Pro Micro RP2040
2021-03-17 18:17:24 -07:00
Scott Shawcroft
670375dc0d
Merge pull request #4426 from kmatch98/main
...
Add getter for displayio.Palette item transparency/opacity.
2021-03-17 18:13:39 -07:00
Scott Shawcroft
588e4b8421
Merge pull request #4427 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-03-17 18:12:41 -07:00
Jeff Epler
720d242b4f
doc fix
2021-03-17 16:38:10 -05:00
Jeff Epler
c157ada90c
displayio.Bitmap: Make memoryview()able
2021-03-17 16:26:45 -05:00
Hosted Weblate
d27055aa4a
Merge remote-tracking branch 'origin/main' into main
2021-03-17 22:24:04 +01:00
Jonny Bergdahl
36aa861458
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (977 of 977 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-03-17 22:24:04 +01:00
Wellington Terumi Uemura
4d89893aff
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (977 of 977 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-03-17 22:24:04 +01:00
Jeff Epler
719e8710f2
Merge pull request #4411 from mintakka/thingplus-rp2040
...
added board configuration for Sparkfun ThingPlus RP2040
2021-03-17 16:23:55 -05:00
Phil Howard
b8d4f9655f
RP2040: Only bitbang 0-byte writes
...
The I2C.c for RP2040 included a special case for writes <=2 bytes to match the MicroPython implementation,
however RP2040 does support 1 and 2 byte reads, with only 0 bytes being the exception.
Signed-off-by: Philip Howard <phil@pimoroni.com>
2021-03-17 16:25:54 +00:00
Kevin Matocha
c37a1f45f3
ran pre-commit for formatting fixes
2021-03-17 11:00:32 -05:00
Kevin Matocha
580121d46e
minor formatting
2021-03-17 09:38:53 -05:00
Kevin Matocha
ef91e1752c
merge upstream/main
2021-03-17 09:30:51 -05:00
Hosted Weblate
f6cabccd9e
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-03-17 13:57:41 +01:00
Jeff Epler
bfc8c89536
Merge pull request #4403 from jepler/bitmap-read-2
...
bitmaptools: Add readinto, arrayblit
2021-03-17 07:57:31 -05:00
Kevin Matocha
592f89f6ae
add back peculiar r to docstring
2021-03-16 20:45:55 -05:00
Kevin Matocha
5c3cce6f5d
add is_transparent getter to displayio.Palette
2021-03-16 20:43:23 -05:00
mintakka
337727ba0c
renamed board folder to match board name in boards.yml
2021-03-16 21:10:10 -04:00
Jeff Epler
074ba1daff
more doc fixes
2021-03-16 19:05:06 -05:00
Jeff Epler
94fa8e8a60
disable bitmaptools on small board
2021-03-16 19:04:21 -05:00
Jeff Epler
5810004bc9
fix doc error
2021-03-16 19:01:38 -05:00
Jeff Epler
75ba26ee7c
Merge pull request #4421 from kattni/led-pin
...
Adding LED for D13/L pin name.
2021-03-16 18:58:14 -05:00
Mark
1be5ca7881
Merge pull request #4130 from gamblor21/rp_dp_parallel
...
Add RP2040 displayio.ParallelBus Support
2021-03-16 13:49:55 -05:00
Scott Shawcroft
856bf302b4
Merge pull request #4418 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-03-16 11:48:51 -07:00
Jeff Epler
df2d08366a
make translate
2021-03-16 13:37:19 -05:00
Jeff Epler
e1dd396de7
fix stub docs
2021-03-16 13:37:04 -05:00
spe2
dcd9a8ab91
Update ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-16 10:54:20 -07:00