Commit Graph

25931 Commits

Author SHA1 Message Date
Scott Shawcroft 153ff6031e
Merge pull request #5616 from jepler/bitmaptools-bugfixes
Bitmaptools bugfixes
2021-11-24 11:50:29 -08:00
Scott Shawcroft b09c777d0a
Merge pull request #5584 from gamblor21/is31
IS31FL3741 Framebuffer Driver
2021-11-24 11:41:51 -08:00
Jeff Epler ddf24772c3
tests: move bitmaptools files to their own directory 2021-11-24 09:53:19 -06:00
Jeff Epler 30c07a772f
bitmaptools: dither: get rid of shifts
this happens to make the occasional FS dither artifact disappear.
I guess `a * b >> 8` and `(a * b) / 256` are not identical.  I'm not
sure if it was just the parens or not, but write the clearer code and
rely on the compiler to substitute an appropriate shift if possible.
2021-11-24 09:51:24 -06:00
Jeff Epler 9af76a2f03
bitmaptools dither: Fix off-by-one error filling row data 2021-11-24 09:51:23 -06:00
Jeff Epler 6191696232
bitmaptools: Fix the DitgherAlorithm.FloydStenberg value 2021-11-24 09:51:19 -06: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
gamblor21 9b85714b76 Removed unused imports 2021-11-23 13:24:36 -06:00
gamblor21 fc3b0340b5 Remove hard coded mapping of LEDs 2021-11-23 13:21:09 -06:00
gamblor21 f7df39ef88 Re-enable on microbit v2 2021-11-23 13:20:00 -06:00
Scott Shawcroft af2ac0aa60
Merge pull request #5602 from aivarannamaa/skip-main-script-in-raw-mode-soft-reboot
Don't run main script when soft-rebooting in raw mode
2021-11-23 10:32:48 -08:00
Scott Shawcroft 565bfeb28e
Merge pull request #5611 from jepler/issue5588
Don't use reset reason to skip writing boot_out.txt
2021-11-23 10:26:39 -08:00
Jeff Epler f495ea4760
Don't use reset reason to skip writing boot_out.txt
As @neradoc and @anecdata noted, we can't depend on the reset reason.

Instead, just rely on the existing safe mode logic (the write already is
skipped anytime boot.py was skipped), and otherwise potentially write
boot_out.txt anytime it differs from the version on disk (or if the file
doesn't exist in the first place)

Testing performed: On qtpy m0 haxpress, removed boot_out.txt and clicked
reset button.  verified boot_out.txt was recreated.

Closes #5588
2021-11-23 10:51:21 -06:00
Aivar Annamaa e8c809e594
Fix formatting 2021-11-22 23:45:28 +02:00
Aivar Annamaa 0c4597f387
Move friendly REPL check to main function 2021-11-22 21:28:39 +02:00
Scott Shawcroft 387a8a46b3
Merge pull request #5605 from jepler/bitmaptools-bugfixes
Bitmaptools bugfixes
2021-11-22 11:02:40 -08:00
Dan Halbert 40a00c1e53
Merge pull request #5608 from microDev1/traceback
Traceback object init - set it to empty only if null
2021-11-22 12:38:18 -05:00
microDev ed9595a9be
traceback object init - set it to empty only if null 2021-11-22 21:38:02 +05:30
gamblor21 c38612d59d Fixed capitalization 2021-11-21 11:39:42 -06:00
gamblor21 5337e45411 Only enable if not disabled 2021-11-21 11:39:42 -06:00
Jeff Epler 711f1f833b
bitmaptools: Fix the case where `factor`'s Python type is int
mp_obj_float_get gets the value of an object, which must be
exactly a float.  mp_obj_get_float gets the float value of
an object of various types, including floats & ints.
2021-11-20 21:15:26 -05:00
Jeff Epler 492402f23f
these must be treated as manual tests for now 2021-11-20 21:14:31 -05:00
Jeff Epler db44df5dbf
blend & dither tests 2021-11-20 21:13:56 -05:00
gamblor21 5243a33584 Check map to display size 2021-11-20 14:04:49 -06:00
gamblor21 16c52b76d6 Capitalize module 2021-11-20 14:04:49 -06:00
gamblor21 6d412e20c4 Disabling from some boards 2021-11-20 14:04:49 -06:00
gamblor21 6b2d43d3c8 Mapping for LEDs to diplay 2021-11-20 14:04:49 -06:00
gamblor21 9fa3feffb1 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21 2f277eba3e Cleanup and i2c fix 2021-11-20 13:46:12 -06:00
gamblor21 e877449ae0 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21 aa92d3a476 Cleanup and scaling addition 2021-11-20 13:46:11 -06:00
gamblor21 29c58575b0 Removed prints updated brightness 2021-11-20 13:46:11 -06:00
gamblor21 d063bf2675 Initial commit for IS31 2021-11-20 13:46:11 -06:00
Jeff Epler f4e68e8fae
use mp_get_stream_raise, it's more specific 2021-11-20 08:53:04 -05:00
Jeff Epler de455b5c4e
Add bitmap loading test 2021-11-20 08:52:18 -05:00
Jeff Epler ee5e7161af
bitmaptools: use stream API
this allows `readinto` to succeed in the unix port, where the VFS
is not FAT
2021-11-20 08:51:40 -05:00
Jeff Epler dca696dec1
some test images for bitmaptools 2021-11-20 08:31:17 -05:00
Jeff Epler 932131b4ff
Merge pull request #5596 from kamtom480/camera_fix
camera: Update camera_make_new arguments
2021-11-18 09:06:50 -05:00
microDev 4fefb71b9f
Merge pull request #5599 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-11-18 14:31:18 +05:30
Aivar Annamaa 146e8830f9
Don't run main script when soft-rebooting in raw mode 2021-11-18 10:21:51 +02:00
Hosted Weblate 9dff70adb2
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-11-17 19:26:47 +01:00
Hosted Weblate 6296a73aa9
Merge remote-tracking branch 'origin/main' 2021-11-17 19:26:45 +01:00
Clay a51bfdf88a
Translated using Weblate (Russian)
Currently translated at 31.7% (326 of 1026 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2021-11-17 19:26:44 +01:00
Wellington Terumi Uemura 3871926e44
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1026 of 1026 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-11-17 19:26:42 +01:00
Scott Shawcroft 3b7d2f1dc3
Merge pull request #5593 from anecdata/ap_extras
Set AP MAC address
2021-11-17 10:26:36 -08:00
Kamil Tomaszewski 00426dc232 camera: Update camera_make_new arguments 2021-11-17 16:42:47 +01:00
Kattni a4be846d67
Merge pull request #5587 from dhalbert/update-frozen-libs-2021-11
update frozen libraries, especially adafruit_hid
2021-11-16 19:23:58 -05:00
Dan Halbert e77de3c73e
Merge pull request #5595 from adafruit/anecdata-patch-1
INVERT the sense of the I2C_POWER pin (active low)
2021-11-16 19:20:50 -05:00
anecdata c2a5ca2fa2
INVERT the sense of the I2C_POWER pin (active low)
I don't have the board to test, but this was reported and discussed on Discord.
2021-11-16 14:47:53 -06:00