Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c17f147

Browse files
committed
A variety of displayio improvements
This changes a number of things in displayio: * Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with a font it is available as board.TERMINAL_FONT. Fixes #1172 * Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191 * Add width and height properties to Bitmap. * Add insert and [] access to Group. Fixes #1518 * Add index param to pop on Group. * Terminal no longer takes unicode character info. It takes a BuiltinFont instead. * Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history. * Add x and y positions to Group plus scale as well. * Add bitmap accessor for BuiltinFont
1 parent 1a6ad20 commit c17f147

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1680
-853
lines changed

locale/ID.po

Lines changed: 73 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2019-02-07 09:09-0600\n"
11+
"POT-Creation-Date: 2019-02-11 17:39-0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -1356,7 +1356,7 @@ msgstr ""
13561356
msgid "division by zero"
13571357
msgstr ""
13581358

1359-
#: py/modmicropython.c:155
1359+
#: py/modmicropython.c:117
13601360
msgid "schedule stack full"
13611361
msgstr ""
13621362

@@ -2181,7 +2181,7 @@ msgid "buffer must be a bytes-like object"
21812181
msgstr ""
21822182

21832183
#: shared-bindings/audioio/WaveFile.c:78
2184-
#: shared-bindings/displayio/OnDiskBitmap.c:87
2184+
#: shared-bindings/displayio/OnDiskBitmap.c:85
21852185
msgid "file must be a file opened in byte mode"
21862186
msgstr ""
21872187

@@ -2344,74 +2344,88 @@ msgstr ""
23442344
msgid "Unsupported pull value."
23452345
msgstr ""
23462346

2347-
#: shared-bindings/displayio/Bitmap.c:84 shared-bindings/displayio/Shape.c:88
2348-
msgid "y should be an int"
2347+
#: shared-bindings/displayio/Bitmap.c:131 shared-bindings/pulseio/PulseIn.c:272
2348+
msgid "Cannot delete values"
2349+
msgstr ""
2350+
2351+
#: shared-bindings/displayio/Bitmap.c:139 shared-bindings/displayio/Group.c:194
2352+
#: shared-bindings/pulseio/PulseIn.c:278
2353+
msgid "Slices not supported"
2354+
msgstr ""
2355+
2356+
#: shared-bindings/displayio/Bitmap.c:156
2357+
msgid "pixel coordinates out of bounds"
23492358
msgstr ""
23502359

2351-
#: shared-bindings/displayio/Bitmap.c:89
2352-
msgid "row buffer must be a bytearray or array of type 'b' or 'B'"
2360+
#: shared-bindings/displayio/Bitmap.c:166
2361+
msgid "pixel value requires too many bits"
23532362
msgstr ""
23542363

2355-
#: shared-bindings/displayio/Bitmap.c:94
2356-
msgid "row data must be a buffer"
2364+
#: shared-bindings/displayio/BuiltinFont.c:74
2365+
msgid "%q should be an int"
23572366
msgstr ""
23582367

2359-
#: shared-bindings/displayio/ColorConverter.c:72
2368+
#: shared-bindings/displayio/ColorConverter.c:70
23602369
msgid "color should be an int"
23612370
msgstr ""
23622371

2363-
#: shared-bindings/displayio/Display.c:131
2372+
#: shared-bindings/displayio/Display.c:129
23642373
msgid "Display rotation must be in 90 degree increments"
23652374
msgstr ""
23662375

2367-
#: shared-bindings/displayio/Display.c:143
2376+
#: shared-bindings/displayio/Display.c:141
23682377
msgid "Too many displays"
23692378
msgstr ""
23702379

2371-
#: shared-bindings/displayio/Display.c:167
2380+
#: shared-bindings/displayio/Display.c:165
23722381
msgid "Must be a Group subclass."
23732382
msgstr ""
23742383

2375-
#: shared-bindings/displayio/Display.c:209
2376-
#: shared-bindings/displayio/Display.c:219
2384+
#: shared-bindings/displayio/Display.c:207
2385+
#: shared-bindings/displayio/Display.c:217
23772386
msgid "Brightness not adjustable"
23782387
msgstr ""
23792388

2380-
#: shared-bindings/displayio/FourWire.c:93
2381-
#: shared-bindings/displayio/ParallelBus.c:98
2389+
#: shared-bindings/displayio/FourWire.c:91
2390+
#: shared-bindings/displayio/ParallelBus.c:96
23822391
msgid "Too many display busses"
23832392
msgstr ""
23842393

2385-
#: shared-bindings/displayio/FourWire.c:109
2386-
#: shared-bindings/displayio/ParallelBus.c:113
2394+
#: shared-bindings/displayio/FourWire.c:107
2395+
#: shared-bindings/displayio/ParallelBus.c:111
23872396
msgid "Command must be an int between 0 and 255"
23882397
msgstr ""
23892398

2390-
#: shared-bindings/displayio/Group.c:62
2391-
msgid "Group must have size at least 1"
2399+
#: shared-bindings/displayio/Group.c:61 shared-bindings/displayio/Group.c:66
2400+
#: shared-bindings/displayio/Group.c:93
2401+
msgid "Group must have %q at least 1"
23922402
msgstr ""
23932403

2394-
#: shared-bindings/displayio/Palette.c:93
2404+
#: shared-bindings/displayio/Palette.c:91
23952405
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
23962406
msgstr ""
23972407

2398-
#: shared-bindings/displayio/Palette.c:99
2408+
#: shared-bindings/displayio/Palette.c:97
23992409
msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
24002410
msgstr ""
24012411

2402-
#: shared-bindings/displayio/Palette.c:103
2412+
#: shared-bindings/displayio/Palette.c:101
24032413
msgid "color must be between 0x000000 and 0xffffff"
24042414
msgstr ""
24052415

2406-
#: shared-bindings/displayio/Palette.c:107
2416+
#: shared-bindings/displayio/Palette.c:105
24072417
msgid "color buffer must be a buffer or int"
24082418
msgstr ""
24092419

2410-
#: shared-bindings/displayio/Palette.c:120
2411-
#: shared-bindings/displayio/Palette.c:134
2420+
#: shared-bindings/displayio/Palette.c:118
2421+
#: shared-bindings/displayio/Palette.c:132
24122422
msgid "palette_index should be an int"
24132423
msgstr ""
24142424

2425+
#: shared-bindings/displayio/Shape.c:88
2426+
msgid "y should be an int"
2427+
msgstr ""
2428+
24152429
#: shared-bindings/displayio/Shape.c:92
24162430
msgid "start_x should be an int"
24172431
msgstr ""
@@ -2424,19 +2438,19 @@ msgstr ""
24242438
msgid "position must be 2-tuple"
24252439
msgstr ""
24262440

2427-
#: shared-bindings/displayio/TileGrid.c:117
2441+
#: shared-bindings/displayio/TileGrid.c:115
24282442
msgid "unsupported bitmap type"
24292443
msgstr ""
24302444

2431-
#: shared-bindings/displayio/TileGrid.c:128
2445+
#: shared-bindings/displayio/TileGrid.c:126
24322446
msgid "Tile width must exactly divide bitmap width"
24332447
msgstr ""
24342448

2435-
#: shared-bindings/displayio/TileGrid.c:131
2449+
#: shared-bindings/displayio/TileGrid.c:129
24362450
msgid "Tile height must exactly divide bitmap height"
24372451
msgstr ""
24382452

2439-
#: shared-bindings/displayio/TileGrid.c:198
2453+
#: shared-bindings/displayio/TileGrid.c:196
24402454
msgid "pixel_shader must be displayio.Palette or displayio.ColorConverter"
24412455
msgstr ""
24422456

@@ -2464,6 +2478,7 @@ msgstr ""
24642478
#: shared-bindings/neopixel_write/__init__.c:67
24652479
#: shared-bindings/pulseio/PulseOut.c:76
24662480
#: shared-bindings/terminalio/Terminal.c:63
2481+
#: shared-bindings/terminalio/Terminal.c:68
24672482
msgid "Expected a %q"
24682483
msgstr ""
24692484

@@ -2513,19 +2528,7 @@ msgid ""
25132528
"PWM frequency not writable when variable_frequency is False on construction."
25142529
msgstr ""
25152530

2516-
#: shared-bindings/pulseio/PulseIn.c:272
2517-
msgid "Cannot delete values"
2518-
msgstr ""
2519-
2520-
#: shared-bindings/pulseio/PulseIn.c:278
2521-
msgid "Slices not supported"
2522-
msgstr ""
2523-
2524-
#: shared-bindings/pulseio/PulseIn.c:284
2525-
msgid "index must be int"
2526-
msgstr ""
2527-
2528-
#: shared-bindings/pulseio/PulseIn.c:290
2531+
#: shared-bindings/pulseio/PulseIn.c:285
25292532
msgid "Read-only"
25302533
msgstr ""
25312534

@@ -2574,11 +2577,6 @@ msgstr ""
25742577
msgid "Stack size must be at least 256"
25752578
msgstr ""
25762579

2577-
#: shared-bindings/terminalio/Terminal.c:68
2578-
#, fuzzy
2579-
msgid "unicode_characters must be a string"
2580-
msgstr "keyword harus berupa string"
2581-
25822580
#: shared-bindings/time/__init__.c:78
25832581
msgid "sleep length must be non-negative"
25842582
msgstr ""
@@ -2697,25 +2695,26 @@ msgstr ""
26972695
msgid "Only bit maps of 8 bit color or less are supported"
26982696
msgstr ""
26992697

2700-
#: shared-module/displayio/Bitmap.c:69
2698+
#: shared-module/displayio/Bitmap.c:81
27012699
msgid "row must be packed and word aligned"
27022700
msgstr ""
27032701

2702+
#: shared-module/displayio/Bitmap.c:118
2703+
#, fuzzy
2704+
msgid "Read-only object"
2705+
msgstr "sistem file (filesystem) bersifat Read-only"
2706+
27042707
#: shared-module/displayio/Display.c:67
27052708
#, fuzzy
27062709
msgid "Unsupported display bus type"
27072710
msgstr "Baudrate tidak didukung"
27082711

2709-
#: shared-module/displayio/Group.c:39
2712+
#: shared-module/displayio/Group.c:48
27102713
msgid "Group full"
27112714
msgstr ""
27122715

2713-
#: shared-module/displayio/Group.c:46
2714-
msgid "Layer must be a Group or TileGrid subclass."
2715-
msgstr ""
2716-
27172716
#: shared-module/displayio/Group.c:55
2718-
msgid "Group empty"
2717+
msgid "Layer must be a Group or TileGrid subclass."
27192718
msgstr ""
27202719

27212720
#: shared-module/displayio/OnDiskBitmap.c:49
@@ -2848,31 +2847,35 @@ msgid ""
28482847
"exit safe mode.\n"
28492848
msgstr ""
28502849

2850+
#~ msgid "Looks like our core CircuitPython code crashed hard. Whoops!\n"
2851+
#~ msgstr ""
2852+
#~ "Sepertinya inti kode CircuitPython kita crash dengan sangat keras. Ups!\n"
2853+
2854+
#~ msgid "Invalid UUID parameter"
2855+
#~ msgstr "Parameter UUID tidak valid"
2856+
28512857
#~ msgid ""
28522858
#~ "enough power for the whole circuit and press reset (after ejecting "
28532859
#~ "CIRCUITPY).\n"
28542860
#~ msgstr ""
28552861
#~ "tegangan cukup untuk semua sirkuit dan tekan reset (setelah mencabut "
28562862
#~ "CIRCUITPY).\n"
28572863

2858-
#, fuzzy
2859-
#~ msgid "unpack requires a buffer of %d bytes"
2860-
#~ msgstr "Gagal untuk megalokasikan buffer RX dari %d byte"
2861-
28622864
#~ msgid "Invalid UUID string length"
28632865
#~ msgstr "Panjang string UUID tidak valid"
28642866

2865-
#~ msgid "Invalid UUID parameter"
2866-
#~ msgstr "Parameter UUID tidak valid"
2867-
2868-
#~ msgid "All PWM peripherals are in use"
2869-
#~ msgstr "Semua perangkat PWM sedang digunakan"
2870-
2871-
#~ msgid "Looks like our core CircuitPython code crashed hard. Whoops!\n"
2872-
#~ msgstr ""
2873-
#~ "Sepertinya inti kode CircuitPython kita crash dengan sangat keras. Ups!\n"
2874-
28752867
#~ msgid ""
28762868
#~ "Please file an issue here with the contents of your CIRCUITPY drive:\n"
28772869
#~ msgstr ""
28782870
#~ "Silahkan taruh masalah disini dengan isi dari CIRCUITPY drive: anda \n"
2871+
2872+
#, fuzzy
2873+
#~ msgid "unpack requires a buffer of %d bytes"
2874+
#~ msgstr "Gagal untuk megalokasikan buffer RX dari %d byte"
2875+
2876+
#~ msgid "All PWM peripherals are in use"
2877+
#~ msgstr "Semua perangkat PWM sedang digunakan"
2878+
2879+
#, fuzzy
2880+
#~ msgid "unicode_characters must be a string"
2881+
#~ msgstr "keyword harus berupa string"

0 commit comments

Comments
 (0)