Merge remote-tracking branch 'adafruit/master' into lower_power
This commit is contained in:
commit
b580b34cbf
52
.github/workflows/build.yml
vendored
52
.github/workflows/build.yml
vendored
@ -16,24 +16,29 @@ jobs:
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: echo "$GITHUB_CONTEXT"
|
||||
- name: Set up Python 3.5
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||
- run: git submodule sync
|
||||
- run: git submodule foreach git remote -v
|
||||
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
|
||||
- name: CircuitPython version
|
||||
run: git describe --dirty --tags
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.5
|
||||
python-version: 3.8
|
||||
- name: Install deps
|
||||
run: |
|
||||
sudo apt-get install -y eatmydata
|
||||
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
|
||||
pip install requests sh click setuptools cpp-coveralls "Sphinx<3" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
|
||||
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
|
||||
- name: Versions
|
||||
run: |
|
||||
gcc --version
|
||||
python3 --version
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: CircuitPython version
|
||||
run: git describe --dirty --always --tags
|
||||
- name: Build mpy-cross
|
||||
run: make -C mpy-cross -j2
|
||||
- name: Build unix port
|
||||
@ -42,7 +47,7 @@ jobs:
|
||||
make -C ports/unix -j2
|
||||
make -C ports/unix coverage -j2
|
||||
- name: Test all
|
||||
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1
|
||||
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1
|
||||
working-directory: tests
|
||||
- name: Print failure info
|
||||
run: |
|
||||
@ -54,10 +59,10 @@ jobs:
|
||||
working-directory: tests
|
||||
if: failure()
|
||||
- name: Native Tests
|
||||
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
|
||||
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
|
||||
working-directory: tests
|
||||
- name: mpy Tests
|
||||
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
|
||||
run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
|
||||
working-directory: tests
|
||||
- name: Docs
|
||||
run: sphinx-build -E -W -b html . _build/html
|
||||
@ -103,11 +108,16 @@ jobs:
|
||||
gcc --version
|
||||
python3 --version
|
||||
msgfmt --version
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||
- run: git submodule sync
|
||||
- run: git submodule foreach git remote -v
|
||||
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
|
||||
- name: CircuitPython version
|
||||
run: git describe --dirty --always --tags
|
||||
run: git describe --dirty --tags
|
||||
- name: Build mpy-cross
|
||||
run: make -C mpy-cross -j2
|
||||
- uses: actions/upload-artifact@v1.0.0
|
||||
@ -189,6 +199,7 @@ jobs:
|
||||
- "mini_sam_m4"
|
||||
- "monster_m4sk"
|
||||
- "ndgarage_ndbit6"
|
||||
- "nfc_copy_cat"
|
||||
- "ohs2020_badge"
|
||||
- "openbook_m4"
|
||||
- "particle_argon"
|
||||
@ -244,10 +255,10 @@ jobs:
|
||||
- "xinabox_cs11"
|
||||
|
||||
steps:
|
||||
- name: Set up Python 3.5
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.5
|
||||
python-version: 3.8
|
||||
- name: Install deps
|
||||
run: |
|
||||
sudo apt-get install -y gettext
|
||||
@ -259,9 +270,14 @@ jobs:
|
||||
gcc --version
|
||||
arm-none-eabi-gcc --version
|
||||
python3 --version
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||
- run: git submodule sync
|
||||
- run: git submodule foreach git remote -v
|
||||
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
|
||||
- name: mpy-cross
|
||||
run: make -C mpy-cross -j2
|
||||
- name: build
|
||||
@ -290,10 +306,10 @@ jobs:
|
||||
- "fomu"
|
||||
|
||||
steps:
|
||||
- name: Set up Python 3.5
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.5
|
||||
python-version: 3.8
|
||||
- name: Install deps
|
||||
run: |
|
||||
sudo apt-get install -y gettext
|
||||
|
11
.github/workflows/create_website_pr.yml
vendored
11
.github/workflows/create_website_pr.yml
vendored
@ -12,10 +12,10 @@ jobs:
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: echo "$GITHUB_CONTEXT"
|
||||
- name: Set up Python 3.5
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.5
|
||||
python-version: 3.8
|
||||
- name: Install deps
|
||||
run: |
|
||||
pip install requests sh click
|
||||
@ -23,11 +23,14 @@ jobs:
|
||||
run: |
|
||||
gcc --version
|
||||
python3 --version
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
|
||||
- name: CircuitPython version
|
||||
run: git describe --dirty --always --tags
|
||||
run: git describe --dirty --tags
|
||||
- name: Website
|
||||
run: python3 build_board_info.py
|
||||
working-directory: tools
|
||||
|
5
.gitmodules
vendored
5
.gitmodules
vendored
@ -109,7 +109,7 @@
|
||||
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
|
||||
[submodule "extmod/ulab"]
|
||||
path = extmod/ulab
|
||||
url = https://github.com/v923z/micropython-ulab/
|
||||
url = https://github.com/v923z/micropython-ulab
|
||||
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
|
||||
path = frozen/Adafruit_CircuitPython_ESP32SPI
|
||||
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
|
||||
@ -119,3 +119,6 @@
|
||||
[submodule "ports/stm/st_driver"]
|
||||
path = ports/stm/st_driver
|
||||
url = https://github.com/hathach/st_driver.git
|
||||
[submodule "lib/protomatter"]
|
||||
path = lib/protomatter
|
||||
url = https://github.com/adafruit/Adafruit_Protomatter
|
||||
|
14
conf.py
14
conf.py
@ -17,7 +17,7 @@ import json
|
||||
import sys
|
||||
import os
|
||||
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
import recommonmark
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
@ -55,16 +55,20 @@ extensions = [
|
||||
'sphinx.ext.todo',
|
||||
'sphinx.ext.coverage',
|
||||
'rstjinja',
|
||||
'c2rst'
|
||||
'c2rst',
|
||||
'recommonmark',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = ['.rst', '.md', '.c', '.h']
|
||||
source_suffix = {
|
||||
'.rst': 'restructuredtext',
|
||||
'.md': 'markdown',
|
||||
'.c': ''
|
||||
}
|
||||
|
||||
source_parsers = {'.md': CommonMarkParser}
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
@ -357,4 +361,4 @@ intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
|
||||
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
|
||||
|
||||
def setup(app):
|
||||
app.add_stylesheet("customstyle.css")
|
||||
app.add_css_file("customstyle.css")
|
||||
|
@ -247,7 +247,7 @@ Methods
|
||||
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
|
||||
|
||||
.. method:: wlan.config('param')
|
||||
.. method:: wlan.config(param=value, ...)
|
||||
wlan.config(param=value, ...)
|
||||
|
||||
Get or set general network interface parameters. These methods allow to work
|
||||
with additional parameters beyond standard IP configuration (as dealt with by
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a91b36986d81fd906a6232010778f2a93d690f8e
|
||||
Subproject commit a746bd8e0953853056ee405e2fa02c8ebca4fb79
|
1
lib/protomatter
Submodule
1
lib/protomatter
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit c411714cbdc05725e80398acb18c3c1fb6fa68a4
|
95
locale/ID.po
95
locale/ID.po
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -53,6 +53,11 @@ msgstr "output:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr ""
|
||||
@ -284,9 +289,8 @@ msgstr "Semua timer untuk pin ini sedang digunakan"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Semua timer sedang digunakan"
|
||||
|
||||
@ -325,6 +329,10 @@ msgstr ""
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -342,6 +350,7 @@ msgstr ""
|
||||
"menjalankannya atau masuk ke REPL untukmenonaktifkan.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -357,7 +366,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Kedua pin harus mendukung hardware interrut"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -366,6 +377,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -380,10 +392,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -643,11 +657,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -765,6 +781,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -853,7 +870,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr ""
|
||||
|
||||
@ -908,7 +925,7 @@ msgstr ""
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Pin tidak valid"
|
||||
|
||||
@ -1023,6 +1040,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1106,6 +1128,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1182,6 +1208,14 @@ msgstr "Pin tidak mempunya kemampuan untuk ADC (Analog Digital Converter)"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr "Tambahkan module apapun pada filesystem\n"
|
||||
@ -1200,6 +1234,11 @@ msgstr ""
|
||||
"Tekan tombol apa saja untuk masuk ke dalam REPL. Gunakan CTRL+D untuk reset "
|
||||
"(Reload)"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1398,13 +1437,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Terlalu banyak channel dalam sampel"
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1655,6 +1692,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr ""
|
||||
@ -2166,10 +2207,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "fungsi tidak dapat mengambil argumen keyword"
|
||||
@ -2183,10 +2220,6 @@ msgstr "fungsi diharapkan setidaknya %d argumen, hanya mendapatkan %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "fungsi mendapatkan nilai ganda untuk argumen '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2667,14 +2700,6 @@ msgstr "modul tidak ditemukan"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2684,10 +2709,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2801,6 +2822,16 @@ msgstr "anotasi return harus sebuah identifier"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3103,7 +3134,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3115,7 +3146,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -53,6 +53,11 @@ msgstr ""
|
||||
msgid "%%c requires int or char"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr ""
|
||||
@ -282,9 +287,8 @@ msgstr ""
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr ""
|
||||
|
||||
@ -323,6 +327,10 @@ msgstr ""
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -338,6 +346,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -353,7 +362,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -362,6 +373,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -376,10 +388,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -632,11 +646,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -754,6 +770,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -842,7 +859,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr ""
|
||||
|
||||
@ -897,7 +914,7 @@ msgstr ""
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr ""
|
||||
|
||||
@ -1012,6 +1029,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1095,6 +1117,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1170,6 +1196,14 @@ msgstr ""
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr ""
|
||||
@ -1186,6 +1220,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1382,13 +1421,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1632,6 +1669,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr ""
|
||||
@ -2142,10 +2183,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr ""
|
||||
@ -2159,10 +2196,6 @@ msgstr ""
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2642,14 +2675,6 @@ msgstr ""
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2659,10 +2684,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2776,6 +2797,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3077,7 +3108,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3089,7 +3120,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||
"Last-Translator: Pascal Deneaux\n"
|
||||
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
|
||||
@ -55,6 +55,11 @@ msgstr " Ausgabe:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c erwartet int oder char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q in Benutzung"
|
||||
@ -284,9 +289,8 @@ msgstr "Alle timer für diesen Pin werden bereits benutzt"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Alle timer werden benutzt"
|
||||
|
||||
@ -325,6 +329,10 @@ msgstr "Array muss Halbwörter enthalten (type 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Array-Werte sollten aus Einzelbytes bestehen."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -342,6 +350,7 @@ msgstr ""
|
||||
"auszuführen oder verbinde dich mit der REPL zum Deaktivieren.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr "Unterhalb der minimalen Frame Rate"
|
||||
|
||||
@ -357,7 +366,9 @@ msgstr "Bit depth muss ein Vielfaches von 8 sein."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Beide pins müssen Hardware Interrupts unterstützen"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr "Die Helligkeit muss zwischen 0 und 1.0 liegen"
|
||||
|
||||
@ -366,6 +377,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "Die Helligkeit muss zwischen 0 und 255 liegen"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "Die Helligkeit ist nicht einstellbar"
|
||||
|
||||
@ -380,10 +392,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Der Puffergröße ist inkorrekt. Sie sollte %d bytes haben."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr "Der Puffer ist kein Byte-Array"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr "Der Puffer ist zu klein"
|
||||
|
||||
@ -636,11 +650,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr "Display muss einen 16 Bit Farbraum haben."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr "Die Rotation der Anzeige muss in 90-Grad-Schritten erfolgen"
|
||||
|
||||
@ -760,6 +776,7 @@ msgstr "Die Funktion erwartet, dass der 'lock'-Befehl zuvor ausgeführt wurde"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr "Gruppe schon benutzt"
|
||||
|
||||
@ -850,7 +867,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Ungültiges Argument"
|
||||
|
||||
@ -905,7 +922,7 @@ msgstr "Ungültige Phase"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Ungültiger Pin"
|
||||
|
||||
@ -1021,6 +1038,11 @@ msgstr "Muss eine %q Unterklasse sein."
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1104,6 +1126,10 @@ msgstr "Kein Speicherplatz mehr verfügbar auf dem Gerät"
|
||||
msgid "No such file/directory"
|
||||
msgstr "Keine solche Datei/Verzeichnis"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1185,6 +1211,14 @@ msgstr "Pin hat keine ADC Funktionalität"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr "und alle Module im Dateisystem \n"
|
||||
@ -1203,6 +1237,11 @@ msgstr ""
|
||||
"Drücke eine Taste um dich mit der REPL zu verbinden. Drücke Strg-D zum neu "
|
||||
"laden"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Pull wird nicht verwendet, wenn die Richtung output ist."
|
||||
@ -1401,13 +1440,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Zu viele Kanäle im sample"
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Zu viele displays"
|
||||
|
||||
@ -1660,6 +1697,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "Array/Bytes auf der rechten Seite erforderlich"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "Attribute werden noch nicht unterstützt"
|
||||
@ -2171,10 +2212,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr "voll"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "Funktion akzeptiert keine Keyword-Argumente"
|
||||
@ -2188,10 +2225,6 @@ msgstr "Funktion erwartet maximal %d Argumente, aber hat %d erhalten"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "Funktion hat mehrere Werte für Argument '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2678,14 +2711,6 @@ msgstr "offset außerhalb der Grenzen"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr "nur eine bit_depth=16 wird unterstützt"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr "nur eine sample_rate=16000 wird unterstützt"
|
||||
@ -2695,10 +2720,6 @@ msgstr "nur eine sample_rate=16000 wird unterstützt"
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2814,6 +2835,16 @@ msgstr "return annotation muss ein identifier sein"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3122,7 +3153,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3134,7 +3165,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "falsche Anzahl zu entpackender Werte"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -53,6 +53,11 @@ msgstr ""
|
||||
msgid "%%c requires int or char"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr ""
|
||||
@ -282,9 +287,8 @@ msgstr ""
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr ""
|
||||
|
||||
@ -323,6 +327,10 @@ msgstr ""
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -338,6 +346,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -353,7 +362,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -362,6 +373,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -376,10 +388,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -632,11 +646,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -754,6 +770,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -842,7 +859,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr ""
|
||||
|
||||
@ -897,7 +914,7 @@ msgstr ""
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr ""
|
||||
|
||||
@ -1012,6 +1029,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1095,6 +1117,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1170,6 +1196,14 @@ msgstr ""
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr ""
|
||||
@ -1186,6 +1220,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1382,13 +1421,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1632,6 +1669,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr ""
|
||||
@ -2142,10 +2183,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr ""
|
||||
@ -2159,10 +2196,6 @@ msgstr ""
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2642,14 +2675,6 @@ msgstr ""
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2659,10 +2684,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2776,6 +2797,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3077,7 +3108,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3089,7 +3120,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: @sommersoft, @MrCertainly\n"
|
||||
@ -55,6 +55,11 @@ msgstr ""
|
||||
msgid "%%c requires int or char"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr ""
|
||||
@ -284,9 +289,8 @@ msgstr ""
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr ""
|
||||
|
||||
@ -325,6 +329,10 @@ msgstr ""
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -342,6 +350,7 @@ msgstr ""
|
||||
"t' the REPL t' scuttle.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -357,7 +366,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -366,6 +377,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -380,10 +392,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -636,11 +650,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -758,6 +774,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -846,7 +863,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr ""
|
||||
|
||||
@ -901,7 +918,7 @@ msgstr ""
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr ""
|
||||
|
||||
@ -1016,6 +1033,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1099,6 +1121,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1174,6 +1200,14 @@ msgstr "Belay that! Th' Pin be not ADC capable"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr ""
|
||||
@ -1190,6 +1224,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1386,13 +1425,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1636,6 +1673,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr ""
|
||||
@ -2146,10 +2187,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr ""
|
||||
@ -2163,10 +2200,6 @@ msgstr ""
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2646,14 +2679,6 @@ msgstr ""
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2663,10 +2688,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2780,6 +2801,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3081,7 +3112,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3093,7 +3124,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
95
locale/es.po
95
locale/es.po
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -55,6 +55,11 @@ msgstr " salida:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c requiere int o char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q está siendo utilizado"
|
||||
@ -286,9 +291,8 @@ msgstr "Todos los timers para este pin están siendo utilizados"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Todos los timers en uso"
|
||||
|
||||
@ -327,6 +331,10 @@ msgstr "Array debe contener media palabra (type 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Valores del array deben ser bytes individuales."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -344,6 +352,7 @@ msgstr ""
|
||||
"ejecutarlos o entra al REPL para desabilitarlos.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -359,7 +368,9 @@ msgstr "Bits depth debe ser múltiplo de 8."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Ambos pines deben soportar interrupciones por hardware"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -368,6 +379,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "El brillo debe estar entro 0 y 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "El brillo no se puede ajustar"
|
||||
|
||||
@ -382,10 +394,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Tamaño de buffer incorrecto. Debe ser de %d bytes."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -638,11 +652,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr "Rotación de display debe ser en incrementos de 90 grados"
|
||||
|
||||
@ -760,6 +776,7 @@ msgstr "La función requiere lock"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -850,7 +867,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Argumento inválido"
|
||||
|
||||
@ -905,7 +922,7 @@ msgstr "Fase inválida"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Pin inválido"
|
||||
|
||||
@ -1020,6 +1037,11 @@ msgstr "Debe de ser una subclase de %q"
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1103,6 +1125,10 @@ msgstr "No queda espacio en el dispositivo"
|
||||
msgid "No such file/directory"
|
||||
msgstr "No existe el archivo/directorio"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1184,6 +1210,14 @@ msgstr "Pin no tiene capacidad ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
#, fuzzy
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
@ -1202,6 +1236,11 @@ msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
"Presiona cualquier tecla para entrar al REPL. Usa CTRL-D para recargar."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Pull no se usa cuando la dirección es output."
|
||||
@ -1399,13 +1438,11 @@ msgstr "Ancho del Tile debe dividir exactamente el ancho de mapa de bits"
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Demasiados canales en sample."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr "Demasiados buses de pantalla"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Muchos displays"
|
||||
|
||||
@ -1656,6 +1693,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "array/bytes requeridos en el lado derecho"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "atributos aún no soportados"
|
||||
@ -2173,10 +2214,6 @@ msgstr "format requiere un dict"
|
||||
msgid "full"
|
||||
msgstr "lleno"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "la función no tiene argumentos por palabra clave"
|
||||
@ -2190,10 +2227,6 @@ msgstr "la función esperaba minimo %d argumentos, tiene %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "la función tiene múltiples valores para el argumento '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2680,14 +2713,6 @@ msgstr "address fuera de límites"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2697,10 +2722,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "solo se admiten segmentos con step=1 (alias None)"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2814,6 +2835,16 @@ msgstr "la anotación de retorno debe ser un identificador"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "retorno esperado '%q' pero se obtuvo '%q'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3118,7 +3149,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3130,7 +3161,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "numero erroneo de valores a descomprimir"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
|
||||
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
|
||||
"Language-Team: fil\n"
|
||||
@ -53,6 +53,11 @@ msgstr " output:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c nangangailangan ng int o char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q ay ginagamit"
|
||||
@ -286,9 +291,8 @@ msgstr "Lahat ng timers para sa pin na ito ay ginagamit"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Lahat ng timer ginagamit"
|
||||
|
||||
@ -327,6 +331,10 @@ msgstr "May halfwords (type 'H') dapat ang array"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Array values ay dapat single bytes."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -344,6 +352,7 @@ msgstr ""
|
||||
"para patakbuhin sila o pasukin ang REPL para i-disable ito.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -359,7 +368,9 @@ msgstr "Bit depth ay dapat multiple ng 8."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Ang parehong mga pin ay dapat na sumusuporta sa hardware interrupts"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -368,6 +379,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "Ang liwanag ay dapat sa gitna ng 0 o 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -382,10 +394,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Mali ang size ng buffer. Dapat %d bytes."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -644,11 +658,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -768,6 +784,7 @@ msgstr "Function nangangailangan ng lock"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -858,7 +875,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Maling argumento"
|
||||
|
||||
@ -913,7 +930,7 @@ msgstr "Mali ang phase"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Mali ang pin"
|
||||
|
||||
@ -1028,6 +1045,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1111,6 +1133,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr "Walang file/directory"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1190,6 +1216,14 @@ msgstr "Ang pin ay walang kakayahan sa ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr "Kasama ang kung ano pang modules na sa filesystem\n"
|
||||
@ -1208,6 +1242,11 @@ msgstr ""
|
||||
"Pindutin ang anumang key upang pumasok sa REPL. Gamitin ang CTRL-D upang i-"
|
||||
"reload."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Pull hindi ginagamit kapag ang direksyon ay output."
|
||||
@ -1405,13 +1444,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Sobra ang channels sa sample."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1665,6 +1702,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "array/bytes kinakailangan sa kanang bahagi"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "attributes hindi sinusuportahan"
|
||||
@ -2187,10 +2228,6 @@ msgstr "kailangan ng format ng dict"
|
||||
msgid "full"
|
||||
msgstr "puno"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "ang function ay hindi kumukuha ng mga argumento ng keyword"
|
||||
@ -2204,10 +2241,6 @@ msgstr "function na inaasahang %d ang argumento, ngunit %d ang nakuha"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "ang function ay nakakuha ng maraming values para sa argument '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2693,14 +2726,6 @@ msgstr "wala sa sakop ang address"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2710,10 +2735,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "ang mga slices lamang na may hakbang = 1 (aka None) ang sinusuportahan"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2828,6 +2849,16 @@ msgstr "return annotation ay dapat na identifier"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "return umasa ng '%q' pero ang nakuha ay ‘%q’"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3133,7 +3164,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3145,7 +3176,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "maling number ng value na i-unpack"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
95
locale/fr.po
95
locale/fr.po
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: 0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2019-04-14 20:05+0100\n"
|
||||
"Last-Translator: Pierrick Couturier <arofarn@arofarn.info>\n"
|
||||
"Language-Team: fr\n"
|
||||
@ -55,6 +55,11 @@ msgstr " sortie:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c nécessite un entier 'int' ou un caractère 'char'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q utilisé"
|
||||
@ -289,9 +294,8 @@ msgstr "Tous les timers pour cette broche sont utilisés"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Tous les timers sont utilisés"
|
||||
|
||||
@ -331,6 +335,10 @@ msgstr "Le tableau doit contenir des demi-mots (type 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Les valeurs du tableau doivent être des octets simples 'bytes'."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -348,6 +356,7 @@ msgstr ""
|
||||
"lancer ou entrez sur REPL pour le désactiver.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -363,7 +372,9 @@ msgstr "La profondeur de bit doit être un multiple de 8."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Les deux entrées doivent supporter les interruptions matérielles"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -372,6 +383,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "La luminosité doit être entre 0 et 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "Luminosité non-ajustable"
|
||||
|
||||
@ -386,10 +398,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Tampon de taille incorrect. Devrait être de %d octets."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -647,11 +661,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr "La rotation d'affichage doit se faire par incréments de 90 degrés"
|
||||
|
||||
@ -771,6 +787,7 @@ msgstr "La fonction nécessite un verrou"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -862,7 +879,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Argument invalide"
|
||||
|
||||
@ -919,7 +936,7 @@ msgstr "Phase invalide"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Broche invalide"
|
||||
|
||||
@ -1035,6 +1052,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1118,6 +1140,10 @@ msgstr "Il n'y a plus d'espace libre sur le périphérique"
|
||||
msgid "No such file/directory"
|
||||
msgstr "Fichier/dossier introuvable"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1204,6 +1230,14 @@ msgstr "La broche ne peut être utilisée pour l'ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
#, fuzzy
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
@ -1221,6 +1255,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr "Appuyez sur une touche pour entrer sur REPL ou CTRL-D pour recharger."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Le tirage 'pull' n'est pas utilisé quand la direction est 'output'."
|
||||
@ -1420,13 +1459,11 @@ msgstr "La largeur de la tuile doit diviser exactement la largeur de l'image"
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Trop de canaux dans l'échantillon."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr "Trop de bus d'affichage"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Trop d'affichages"
|
||||
|
||||
@ -1682,6 +1719,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "tableau/octets requis à droite"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "attribut pas encore supporté"
|
||||
@ -2212,10 +2253,6 @@ msgstr "le format nécessite un dict"
|
||||
msgid "full"
|
||||
msgstr "plein"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "la fonction ne prend pas d'arguments nommés"
|
||||
@ -2229,10 +2266,6 @@ msgstr "la fonction attendait au plus %d arguments, reçu %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "la fonction a reçu plusieurs valeurs pour l'argument '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2720,14 +2753,6 @@ msgstr "adresse hors limites"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2737,10 +2762,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "seules les tranches avec 'step=1' (cad None) sont supportées"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2860,6 +2881,16 @@ msgstr "l'annotation de return doit être un identifiant"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "return attendait '%q' mais a reçu '%q'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3167,7 +3198,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3179,7 +3210,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "mauvais nombre de valeurs à dégrouper"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
|
||||
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
|
||||
"Language-Team: \n"
|
||||
@ -53,6 +53,11 @@ msgstr " output:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c necessita di int o char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q in uso"
|
||||
@ -285,9 +290,8 @@ msgstr "Tutti i timer per questo pin sono in uso"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Tutti i timer utilizzati"
|
||||
|
||||
@ -326,6 +330,10 @@ msgstr "Array deve avere mezzoparole (typo 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Valori di Array dovrebbero essere bytes singulari"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -343,6 +351,7 @@ msgstr ""
|
||||
"per disabilitarlo.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -359,7 +368,9 @@ msgstr "La profondità di bit deve essere multipla di 8."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Entrambi i pin devono supportare gli interrupt hardware"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -368,6 +379,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "La luminosità deve essere compreso tra 0 e 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "Illiminazione non è regolabile"
|
||||
|
||||
@ -382,10 +394,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Buffer di lunghezza non valida. Dovrebbe essere di %d bytes."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -644,11 +658,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -768,6 +784,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -858,7 +875,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Argomento non valido"
|
||||
|
||||
@ -915,7 +932,7 @@ msgstr "Fase non valida"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Pin non valido"
|
||||
|
||||
@ -1032,6 +1049,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1115,6 +1137,10 @@ msgstr "Non che spazio sul dispositivo"
|
||||
msgid "No such file/directory"
|
||||
msgstr "Nessun file/directory esistente"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1199,6 +1225,14 @@ msgstr "Il pin non ha capacità di ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
#, fuzzy
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
@ -1217,6 +1251,11 @@ msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
"Premi un qualunque tasto per entrare nel REPL. Usa CTRL-D per ricaricare."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1416,13 +1455,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Troppi schermi"
|
||||
|
||||
@ -1668,6 +1705,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "attributi non ancora supportati"
|
||||
@ -2188,10 +2229,6 @@ msgstr "la formattazione richiede un dict"
|
||||
msgid "full"
|
||||
msgstr "pieno"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "la funzione non prende argomenti nominati"
|
||||
@ -2205,10 +2242,6 @@ msgstr "la funzione prevede al massimo %d argmoneti, ma ne ha ricevuti %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "la funzione ha ricevuto valori multipli per l'argomento '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2698,14 +2731,6 @@ msgstr "indirizzo fuori limite"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2715,10 +2740,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "solo slice con step=1 (aka None) sono supportate"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2835,6 +2856,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "return aspettava '%q' ma ha ottenuto '%q'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3140,7 +3171,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3152,7 +3183,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "numero di valori da scompattare non corretto"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
95
locale/ko.po
95
locale/ko.po
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -55,6 +55,11 @@ msgstr " 산출:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c 전수(int)또는 캐릭터(char)필요합니다"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q 사용 중입니다"
|
||||
@ -284,9 +289,8 @@ msgstr "핀의 모든 타이머가 사용 중입니다"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "모든 타이머가 사용 중입니다"
|
||||
|
||||
@ -325,6 +329,10 @@ msgstr ""
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -342,6 +350,7 @@ msgstr ""
|
||||
"성화하려면 REPL을 입력하십시오.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -357,7 +366,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -366,6 +377,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "밝기는 0에서 255 사이 여야합니다"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "밝기를 조절할 수 없습니다"
|
||||
|
||||
@ -380,10 +392,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "잘못된 크기의 버퍼. %d 바이트 여야합니다."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -636,11 +650,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -758,6 +774,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -846,7 +863,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr ""
|
||||
|
||||
@ -901,7 +918,7 @@ msgstr "단계가 잘못되었습니다"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "핀이 잘못되었습니다"
|
||||
|
||||
@ -1016,6 +1033,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1099,6 +1121,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1174,6 +1200,14 @@ msgstr ""
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr ""
|
||||
@ -1190,6 +1224,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1386,13 +1425,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1637,6 +1674,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr ""
|
||||
@ -2147,10 +2188,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr "완전한(full)"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr ""
|
||||
@ -2164,10 +2201,6 @@ msgstr ""
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2647,14 +2680,6 @@ msgstr ""
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2664,10 +2689,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2781,6 +2802,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3082,7 +3113,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3094,7 +3125,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
95
locale/pl.po
95
locale/pl.po
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
|
||||
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
|
||||
"Language-Team: pl\n"
|
||||
@ -54,6 +54,11 @@ msgstr " wyjście:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c wymaga int lub char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q w użyciu"
|
||||
@ -283,9 +288,8 @@ msgstr "Wszystkie timery tej nóżki w użyciu"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Wszystkie timery w użyciu"
|
||||
|
||||
@ -324,6 +328,10 @@ msgstr "Tablica musi zawierać pół-słowa (typ 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Wartości powinny być bajtami."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -341,6 +349,7 @@ msgstr ""
|
||||
"uruchomić, albo wejdź w konsolę aby wyłączyć.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -356,7 +365,9 @@ msgstr "Głębia musi być wielokrotnością 8."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Obie nóżki muszą wspierać przerwania sprzętowe"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -365,6 +376,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "Jasność musi być pomiędzy 0 a 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "Jasność nie jest regulowana"
|
||||
|
||||
@ -379,10 +391,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Zła wielkość bufora. Powinno być %d bajtów."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -635,11 +649,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr "Wyświetlacz można obracać co 90 stopni"
|
||||
|
||||
@ -757,6 +773,7 @@ msgstr "Funkcja wymaga blokady"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -847,7 +864,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Zły argument"
|
||||
|
||||
@ -902,7 +919,7 @@ msgstr "Zła faza"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Zła nóżka"
|
||||
|
||||
@ -1017,6 +1034,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1100,6 +1122,10 @@ msgstr "Brak miejsca"
|
||||
msgid "No such file/directory"
|
||||
msgstr "Brak pliku/katalogu"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1175,6 +1201,14 @@ msgstr "Nóżka nie obsługuje ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr "Oraz moduły w systemie plików\n"
|
||||
@ -1191,6 +1225,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr "Dowolny klawisz aby uruchomić konsolę. CTRL-D aby przeładować."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Podciągnięcie nieużywane w trybie wyjścia."
|
||||
@ -1387,13 +1426,11 @@ msgstr "Szerokość bitmapy musi być wielokrotnością szerokości kafelka"
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Zbyt wiele kanałów."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr "Zbyt wiele magistrali"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Zbyt wiele wyświetlaczy"
|
||||
|
||||
@ -1640,6 +1677,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "tablica/bytes wymagane po prawej stronie"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "atrybuty nie są jeszcze obsługiwane"
|
||||
@ -2151,10 +2192,6 @@ msgstr "format wymaga słownika"
|
||||
msgid "full"
|
||||
msgstr "pełny"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "funkcja nie bierze argumentów nazwanych"
|
||||
@ -2168,10 +2205,6 @@ msgstr "funkcja bierze najwyżej %d argumentów, jest %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "funkcja dostała wiele wartości dla argumentu '%q'"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2651,14 +2684,6 @@ msgstr "offset poza zakresem"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2668,10 +2693,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "tylko fragmenty ze step=1 (lub None) są wspierane"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2786,6 +2807,16 @@ msgstr "anotacja wartości musi być identyfikatorem"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "return oczekiwał '%q', a jest '%q'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3088,7 +3119,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3100,7 +3131,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "zła liczba wartości do rozpakowania"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -53,6 +53,11 @@ msgstr " saída:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c requer int ou char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q em uso"
|
||||
@ -285,9 +290,8 @@ msgstr "Todos os temporizadores para este pino estão em uso"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Todos os temporizadores em uso"
|
||||
|
||||
@ -326,6 +330,10 @@ msgstr "Array deve conter meias palavras (tipo 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr ""
|
||||
@ -341,6 +349,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr ""
|
||||
|
||||
@ -356,7 +365,9 @@ msgstr ""
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Ambos os pinos devem suportar interrupções de hardware"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr ""
|
||||
|
||||
@ -365,6 +376,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "O brilho deve estar entre 0 e 255"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr ""
|
||||
|
||||
@ -379,10 +391,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Buffer de tamanho incorreto. Deve ser %d bytes."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr ""
|
||||
|
||||
@ -639,11 +653,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr ""
|
||||
|
||||
@ -763,6 +779,7 @@ msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr ""
|
||||
|
||||
@ -851,7 +868,7 @@ msgstr ""
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Argumento inválido"
|
||||
|
||||
@ -908,7 +925,7 @@ msgstr "Fase Inválida"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Pino inválido"
|
||||
|
||||
@ -1024,6 +1041,11 @@ msgstr ""
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1107,6 +1129,10 @@ msgstr ""
|
||||
msgid "No such file/directory"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr ""
|
||||
@ -1185,6 +1211,14 @@ msgstr "O pino não tem recursos de ADC"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
#, fuzzy
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
@ -1202,6 +1236,11 @@ msgstr ""
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr ""
|
||||
@ -1399,13 +1438,11 @@ msgstr ""
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Muitos canais na amostra."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr ""
|
||||
|
||||
@ -1650,6 +1687,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "atributos ainda não suportados"
|
||||
@ -2164,10 +2205,6 @@ msgstr ""
|
||||
msgid "full"
|
||||
msgstr "cheio"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "função não aceita argumentos de palavras-chave"
|
||||
@ -2181,10 +2218,6 @@ msgstr "função esperada na maioria dos %d argumentos, obteve %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2664,14 +2697,6 @@ msgstr ""
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr ""
|
||||
@ -2681,10 +2706,6 @@ msgstr ""
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2798,6 +2819,16 @@ msgstr ""
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3101,7 +3132,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3113,7 +3144,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: circuitpython-cn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-04-09 13:15-0700\n"
|
||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
||||
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
|
||||
"Last-Translator: hexthat\n"
|
||||
"Language-Team: Chinese Hanyu Pinyin\n"
|
||||
@ -60,6 +60,11 @@ msgstr " shūchū:\n"
|
||||
msgid "%%c requires int or char"
|
||||
msgstr "%%c xūyào zhěngshù huò char"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/microcontroller/Pin.c
|
||||
msgid "%q in use"
|
||||
msgstr "%q zhèngzài shǐyòng"
|
||||
@ -289,9 +294,8 @@ msgstr "Cǐ yǐn jiǎo de suǒyǒu jìshí qì zhèngzài shǐyòng"
|
||||
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
|
||||
#: ports/cxd56/common-hal/pulseio/PulseOut.c
|
||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-module/_pew/PewPew.c
|
||||
#: ports/nrf/common-hal/pulseio/PulseIn.c ports/nrf/peripherals/nrf/timers.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_pew/PewPew.c
|
||||
msgid "All timers in use"
|
||||
msgstr "Suǒyǒu jìshí qì shǐyòng"
|
||||
|
||||
@ -330,6 +334,10 @@ msgstr "Shùzǔ bìxū bāohán bàn zìshù (type 'H')"
|
||||
msgid "Array values should be single bytes."
|
||||
msgstr "Shùzǔ zhí yīnggāi shì dāngè zì jié."
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
msgid "At most %d %q may be specified (not %d)"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Attempted heap allocation when MicroPython VM not running."
|
||||
msgstr "MicroPython VM zài wèi yùnxíng shí chángshì fēnpèi duī."
|
||||
@ -347,6 +355,7 @@ msgstr ""
|
||||
"huò shūrù REPL jìnyòng.\n"
|
||||
|
||||
#: shared-module/displayio/Display.c
|
||||
#: shared-module/framebufferio/FramebufferDisplay.c
|
||||
msgid "Below minimum frame rate"
|
||||
msgstr "Dī yú zuìdī zhèng sùlǜ"
|
||||
|
||||
@ -362,7 +371,9 @@ msgstr "Bǐtè shēndù bìxū shì 8 bèi yǐshàng."
|
||||
msgid "Both pins must support hardware interrupts"
|
||||
msgstr "Liǎng gè yǐn jiǎo dōu bìxū zhīchí yìngjiàn zhōngduàn"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness must be 0-1.0"
|
||||
msgstr "Liàngdù bìxū wèi 0-1.0"
|
||||
|
||||
@ -371,6 +382,7 @@ msgid "Brightness must be between 0 and 255"
|
||||
msgstr "Liàngdù bìxū jiè yú 0 dào 255 zhī jiān"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Brightness not adjustable"
|
||||
msgstr "Liàngdù wúfǎ tiáozhěng"
|
||||
|
||||
@ -385,10 +397,12 @@ msgid "Buffer incorrect size. Should be %d bytes."
|
||||
msgstr "Huǎnchōng qū dàxiǎo bù zhèngquè. Yīnggāi shì %d zì jié."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is not a bytearray."
|
||||
msgstr "Huǎnchōng qū bùshì bytearray"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Buffer is too small"
|
||||
msgstr "Huǎnchōng qū tài xiǎo"
|
||||
|
||||
@ -643,11 +657,13 @@ msgid "DigitalInOut not supported on given pin"
|
||||
msgstr "Gěi dìng de yǐn jiǎo bù zhīchí DigitalInOut"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display must have a 16 bit colorspace."
|
||||
msgstr "Xiǎnshì bìxū jùyǒu 16 wèi yánsè kōngjiān."
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Display rotation must be in 90 degree increments"
|
||||
msgstr "Xiǎnshì xuánzhuǎn bìxū 90 dù jiā xīn"
|
||||
|
||||
@ -765,6 +781,7 @@ msgstr "Hánshù xūyào suǒdìng"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||
msgid "Group already used"
|
||||
msgstr "Jítuán yǐjīng shǐyòngguò"
|
||||
|
||||
@ -855,7 +872,7 @@ msgstr "Wúxiào de SPI yǐn jiǎo xuǎnzé"
|
||||
msgid "Invalid UART pin selection"
|
||||
msgstr "Wúxiào de UART yǐn jiǎo xuǎnzé"
|
||||
|
||||
#: py/moduerrno.c
|
||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid argument"
|
||||
msgstr "Wúxiào de cānshù"
|
||||
|
||||
@ -910,7 +927,7 @@ msgstr "Jiēduàn wúxiào"
|
||||
|
||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||
#: shared-bindings/pulseio/PWMOut.c
|
||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
||||
msgid "Invalid pin"
|
||||
msgstr "Wúxiào de yǐn jiǎo"
|
||||
|
||||
@ -1025,6 +1042,11 @@ msgstr "Bìxū shì %q zi lèi."
|
||||
msgid "Must provide MISO or MOSI pin"
|
||||
msgstr "Bìxū tígōng MISO huò MOSI yǐn jiǎo"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||
msgstr ""
|
||||
|
||||
#: py/parse.c
|
||||
msgid "Name too long"
|
||||
msgstr ""
|
||||
@ -1108,6 +1130,10 @@ msgstr "Shèbèi shàng méiyǒu kònggé"
|
||||
msgid "No such file/directory"
|
||||
msgstr "Méiyǒu cǐ lèi wénjiàn/mùlù"
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
msgid "No timer available"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Nordic Soft Device failure assertion."
|
||||
msgstr "Nordic ruǎn shèbèi gùzhàng shēngmíng."
|
||||
@ -1189,6 +1215,14 @@ msgstr "Pin méiyǒu ADC nénglì"
|
||||
msgid "Pin number already reserved by EXTI"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||
"bytes. If this cannot be avoided, pass allow_inefficient=True to the "
|
||||
"constructor"
|
||||
msgstr ""
|
||||
|
||||
#: py/builtinhelp.c
|
||||
msgid "Plus any modules on the filesystem\n"
|
||||
msgstr "Zài wénjiàn xìtǒng shàng tiānjiā rènhé mókuài\n"
|
||||
@ -1205,6 +1239,11 @@ msgstr "Qiánzhuì huǎnchōng qū bìxū zài duī shàng"
|
||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||
msgstr "Àn xià rènhé jiàn jìnrù REPL. Shǐyòng CTRL-D chóngxīn jiāzài."
|
||||
|
||||
#: shared-module/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "Protomatter internal error #%d"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/digitalio/DigitalInOut.c
|
||||
msgid "Pull not used when direction is output."
|
||||
msgstr "Fāngxiàng shūchū shí Pull méiyǒu shǐyòng."
|
||||
@ -1408,13 +1447,11 @@ msgstr "Píng pū kuāndù bìxū huàfēn wèi tú kuāndù"
|
||||
msgid "Too many channels in sample."
|
||||
msgstr "Chōuyàng zhōng de píndào tài duō."
|
||||
|
||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||
#: shared-bindings/displayio/ParallelBus.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgstr "Xiǎnshì zǒngxiàn tài duōle"
|
||||
|
||||
#: shared-bindings/displayio/Display.c
|
||||
#: shared-bindings/displayio/EPaperDisplay.c
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many displays"
|
||||
msgstr "Xiǎnshì tài duō"
|
||||
|
||||
@ -1665,6 +1702,10 @@ msgstr ""
|
||||
msgid "array/bytes required on right side"
|
||||
msgstr "yòu cè xūyào shùzǔ/zì jié"
|
||||
|
||||
#: extmod/ulab/code/numerical.c
|
||||
msgid "attempt to get argmin/argmax of an empty sequence"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
msgid "attributes not supported yet"
|
||||
msgstr "shǔxìng shàngwèi zhīchí"
|
||||
@ -2179,10 +2220,6 @@ msgstr "géshì yāoqiú yīgè yǔjù"
|
||||
msgid "full"
|
||||
msgstr "chōngfèn"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
msgid "function does not take keyword arguments"
|
||||
msgstr "hánshù méiyǒu guānjiàn cí cānshù"
|
||||
@ -2196,10 +2233,6 @@ msgstr "hánshù yùjì zuìduō %d cānshù, huòdé %d"
|
||||
msgid "function got multiple values for argument '%q'"
|
||||
msgstr "hánshù huòdé cānshù '%q' de duōchóng zhí"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "function is defined for ndarrays only"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c
|
||||
#, c-format
|
||||
msgid "function missing %d required positional arguments"
|
||||
@ -2681,14 +2714,6 @@ msgstr "piānlí biānjiè"
|
||||
msgid "only bit_depth=16 is supported"
|
||||
msgstr "Jǐn zhīchí wèi shēndù = 16"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarray objects can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only ndarrays can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||
msgid "only sample_rate=16000 is supported"
|
||||
msgstr "Jǐn zhīchí cǎiyàng lǜ = 16000"
|
||||
@ -2698,10 +2723,6 @@ msgstr "Jǐn zhīchí cǎiyàng lǜ = 16000"
|
||||
msgid "only slices with step=1 (aka None) are supported"
|
||||
msgstr "jǐn zhīchí bù zhǎng = 1(jí wú) de qiēpiàn"
|
||||
|
||||
#: extmod/ulab/code/linalg.c
|
||||
msgid "only square matrices can be inverted"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c extmod/ulab/code/vectorise.c
|
||||
msgid "operands could not be broadcast together"
|
||||
msgstr ""
|
||||
@ -2815,6 +2836,16 @@ msgstr "fǎnhuí zhùshì bìxū shì biāozhì fú"
|
||||
msgid "return expected '%q' but got '%q'"
|
||||
msgstr "fǎnhuí yùqí de '%q' dàn huòdéle '%q'"
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_protomatter/Protomatter.c
|
||||
#, c-format
|
||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "right hand side must be an ndarray, or a scalar"
|
||||
msgstr ""
|
||||
@ -3118,7 +3149,7 @@ msgid "wrong argument type"
|
||||
msgstr ""
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong input type"
|
||||
msgid "wrong index type"
|
||||
msgstr ""
|
||||
|
||||
#: py/objstr.c
|
||||
@ -3130,7 +3161,7 @@ msgid "wrong number of values to unpack"
|
||||
msgstr "wúfǎ jiě bāo de zhí shù"
|
||||
|
||||
#: extmod/ulab/code/ndarray.c
|
||||
msgid "wrong operand type on the right hand side"
|
||||
msgid "wrong operand type"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/Shape.c
|
||||
|
@ -95,6 +95,7 @@ void board_init(void) {
|
||||
false, // Pixels in a byte share a row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -76,6 +76,7 @@ void board_init(void) {
|
||||
false, // Pixels in a byte share a row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -11,8 +11,10 @@ LONGINT_IMPL = MPZ
|
||||
|
||||
# Not needed.
|
||||
CIRCUITPY_AUDIOBUSIO = 0
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
CIRCUITPY_DISPLAYIO = 0
|
||||
CIRCUITPY_NETWORK = 0
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
CIRCUITPY_PS2IO = 0
|
||||
CIRCUITPY_AUDIOMP3 = 0
|
||||
|
||||
|
@ -77,6 +77,7 @@ void board_init(void) {
|
||||
false, // pixels in a byte share a row. Only valid for depths < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
38
ports/atmel-samd/boards/nfc_copy_cat/board.c
Normal file
38
ports/atmel-samd/boards/nfc_copy_cat/board.c
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* This file is part of the MicroPython project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "boards/board.h"
|
||||
|
||||
void board_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
bool board_requests_safe_mode(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void reset_board(void) {
|
||||
}
|
51
ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h
Normal file
51
ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h
Normal file
@ -0,0 +1,51 @@
|
||||
#define MICROPY_HW_BOARD_NAME "Electronic Cats NFC Copy Cat"
|
||||
#define MICROPY_HW_MCU_NAME "samd21e18"
|
||||
|
||||
#define MICROPY_HW_LED_STATUS (&pin_PA14)
|
||||
|
||||
#define MICROPY_PORT_A (0)
|
||||
#define MICROPY_PORT_B (0)
|
||||
#define MICROPY_PORT_C (0)
|
||||
|
||||
#define SPI_FLASH_MOSI_PIN &pin_PA08
|
||||
#define SPI_FLASH_MISO_PIN &pin_PA11
|
||||
#define SPI_FLASH_SCK_PIN &pin_PA09
|
||||
#define SPI_FLASH_CS_PIN &pin_PA10
|
||||
|
||||
// No microcontroller.nvm
|
||||
#define CIRCUITPY_INTERNAL_NVM_SIZE 0
|
||||
|
||||
#define DEFAULT_SPI_BUS_SCK (&pin_PA17)
|
||||
#define DEFAULT_SPI_BUS_MOSI (&pin_PA16)
|
||||
#define DEFAULT_SPI_BUS_MISO (&pin_PA19)
|
||||
|
||||
#define IGNORE_PIN_PA03 1
|
||||
#define IGNORE_PIN_PA20 1
|
||||
#define IGNORE_PIN_PA21 1
|
||||
// USB is always used.
|
||||
#define IGNORE_PIN_PA24 1
|
||||
#define IGNORE_PIN_PA25 1
|
||||
#define IGNORE_PIN_PA30 1
|
||||
#define IGNORE_PIN_PA31 1
|
||||
#define IGNORE_PIN_PB01 1
|
||||
#define IGNORE_PIN_PB02 1
|
||||
#define IGNORE_PIN_PB03 1
|
||||
#define IGNORE_PIN_PB04 1
|
||||
#define IGNORE_PIN_PB05 1
|
||||
#define IGNORE_PIN_PB06 1
|
||||
#define IGNORE_PIN_PB07 1
|
||||
#define IGNORE_PIN_PB08 1
|
||||
#define IGNORE_PIN_PB09 1
|
||||
#define IGNORE_PIN_PB10 1
|
||||
#define IGNORE_PIN_PB11 1
|
||||
#define IGNORE_PIN_PB12 1
|
||||
#define IGNORE_PIN_PB13 1
|
||||
#define IGNORE_PIN_PB14 1
|
||||
#define IGNORE_PIN_PB15 1
|
||||
#define IGNORE_PIN_PB16 1
|
||||
#define IGNORE_PIN_PB17 1
|
||||
#define IGNORE_PIN_PB22 1
|
||||
#define IGNORE_PIN_PB23 1
|
||||
#define IGNORE_PIN_PB30 1
|
||||
#define IGNORE_PIN_PB31 1
|
||||
#define IGNORE_PIN_PB00 1
|
14
ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.mk
Normal file
14
ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.mk
Normal file
@ -0,0 +1,14 @@
|
||||
USB_VID = 0x1209
|
||||
USB_PID = 0xBAB8
|
||||
USB_PRODUCT = "NFC Copy Cat"
|
||||
USB_MANUFACTURER = "Electronic Cats"
|
||||
|
||||
CHIP_VARIANT = SAMD21E18A
|
||||
CHIP_FAMILY = samd21
|
||||
|
||||
SPI_FLASH_FILESYSTEM = 1
|
||||
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||
EXTERNAL_FLASH_DEVICES = "GD25Q16C"
|
||||
LONGINT_IMPL = NONE
|
||||
|
||||
CIRCUITPY_SMALL_BUILD = 1
|
20
ports/atmel-samd/boards/nfc_copy_cat/pins.c
Normal file
20
ports/atmel-samd/boards/nfc_copy_cat/pins.c
Normal file
@ -0,0 +1,20 @@
|
||||
#include "shared-bindings/board/__init__.h"
|
||||
|
||||
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PA02) }, // IRQ
|
||||
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PA06) }, // IN_A
|
||||
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PA07) }, // IN_B
|
||||
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PA05) }, // LED
|
||||
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PA04) }, // LED
|
||||
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_PA14) }, // LED
|
||||
{ MP_ROM_QSTR(MP_QSTR_D27), MP_ROM_PTR(&pin_PA27) }, // Switch
|
||||
{ MP_ROM_QSTR(MP_QSTR_D28), MP_ROM_PTR(&pin_PA28) }, // Switch
|
||||
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA08) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA09) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA17) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PA16) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PA19) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_D18), MP_ROM_PTR(&pin_PA18) }, // CS
|
||||
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||
};
|
||||
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
@ -127,6 +127,7 @@ void board_init(void) {
|
||||
false, // pixels in byte share row. only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -99,6 +99,7 @@ void board_init(void) {
|
||||
false, // pixels in byte share row. only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -77,6 +77,7 @@ void board_init(void) {
|
||||
false, // pixels in byte share row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -15,10 +15,12 @@ LONGINT_IMPL = MPZ
|
||||
# Not needed.
|
||||
CIRCUITPY_AUDIOBUSIO = 0
|
||||
CIRCUITPY_DISPLAYIO = 0
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
CIRCUITPY_GAMEPAD = 0
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
CIRCUITPY_PS2IO = 0
|
||||
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Register
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SD
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SD
|
||||
|
@ -99,6 +99,7 @@ void board_init(void) {
|
||||
false, // pixels in a byte share a row. Only valid for depths < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -77,6 +77,7 @@ void board_init(void) {
|
||||
false, // pixels in a byte share a row. Only valid for depths < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -85,6 +85,7 @@ void board_init(void) {
|
||||
false, // pixels_in_byte_share_row (unused for depths > 8)
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -102,6 +102,7 @@ void board_init(void) {
|
||||
false, // pixels_in_byte_share_row (unused for depths > 8)
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -17,7 +17,9 @@ LONGINT_IMPL = MPZ
|
||||
CIRCUITPY_AUDIOBUSIO = 0
|
||||
# Make room for more stuff
|
||||
CIRCUITPY_DISPLAYIO = 0
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
CIRCUITPY_FREQUENCYIO = 0
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
|
||||
# Include these Python libraries in firmware.
|
||||
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
||||
|
@ -95,6 +95,7 @@ void board_init(void) {
|
||||
false, // pixels in byte share row. Only used with depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -18,6 +18,7 @@ CIRCUITPY_AUDIOIO = 1
|
||||
|
||||
# Disable modules that are unusable on this special-purpose board.
|
||||
CIRCUITPY_BITBANGIO = 0
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
CIRCUITPY_FREQUENCYIO = 0
|
||||
CIRCUITPY_I2CSLAVE = 0
|
||||
CIRCUITPY_AUDIOBUSIO = 0
|
||||
@ -27,6 +28,7 @@ CIRCUITPY_GAMEPAD = 0
|
||||
CIRCUITPY_I2CSLAVE = 0
|
||||
CIRCUITPY_NETWORK = 0
|
||||
CIRCUITPY_TOUCHIO = 0
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
CIRCUITPY_PS2IO = 0
|
||||
CIRCUITPY_USB_HID = 0
|
||||
CIRCUITPY_RTC = 0
|
||||
|
@ -21,10 +21,12 @@ CIRCUITPY_AUDIOBUSIO = 0
|
||||
CIRCUITPY_AUDIOIO = 0
|
||||
CIRCUITPY_BLEIO = 0
|
||||
CIRCUITPY_DISPLAYIO = 0
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
CIRCUITPY_GAMEPAD = 0
|
||||
CIRCUITPY_I2CSLAVE = 0
|
||||
CIRCUITPY_NETWORK = 0
|
||||
CIRCUITPY_TOUCHIO = 0
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
CIRCUITPY_PS2IO = 0
|
||||
CIRCUITPY_USB_HID = 0
|
||||
|
||||
|
721
ports/atmel-samd/build-steps.txt
Normal file
721
ports/atmel-samd/build-steps.txt
Normal file
File diff suppressed because one or more lines are too long
78
ports/atmel-samd/common-hal/_protomatter/Protomatter.c
Normal file
78
ports/atmel-samd/common-hal/_protomatter/Protomatter.c
Normal file
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "common-hal/_protomatter/Protomatter.h"
|
||||
|
||||
#include "samd/timers.h"
|
||||
#include "timer_handler.h"
|
||||
|
||||
void *common_hal_protomatter_timer_allocate() {
|
||||
uint8_t timer_index = find_free_timer();
|
||||
if (timer_index == 0xff) {
|
||||
return NULL;
|
||||
}
|
||||
timer_never_reset(timer_index, true);
|
||||
return tc_insts[timer_index];
|
||||
}
|
||||
|
||||
static uint8_t tc_index_from_ptr(void* ptr) {
|
||||
for (uint8_t i = TC_INST_NUM; i > 0; i--) {
|
||||
if (tc_insts[i] == ptr) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_enable(void* ptr) {
|
||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||
if (timer_index == 0xff) {
|
||||
return;
|
||||
}
|
||||
set_timer_handler(true, timer_index, TC_HANDLER_PROTOMATTER);
|
||||
turn_on_clocks(true, timer_index, 1);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_disable(void* ptr) {
|
||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||
if (timer_index == 0xff) {
|
||||
return;
|
||||
}
|
||||
set_timer_handler(true, timer_index, TC_HANDLER_NO_INTERRUPT);
|
||||
tc_set_enable(ptr, false);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_free(void* ptr) {
|
||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||
if (timer_index == 0xff) {
|
||||
return;
|
||||
}
|
||||
tc_set_enable(ptr, false);
|
||||
tc_reset(ptr);
|
||||
timer_reset_ok(timer_index, true);
|
||||
}
|
35
ports/atmel-samd/common-hal/_protomatter/Protomatter.h
Normal file
35
ports/atmel-samd/common-hal/_protomatter/Protomatter.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
||||
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
||||
|
||||
void *common_hal_protomatter_timer_allocate(void);
|
||||
void common_hal_protomatter_timer_enable(void*);
|
||||
void common_hal_protomatter_timer_disable(void*);
|
||||
void common_hal_protomatter_timer_free(void*);
|
||||
|
||||
#endif
|
0
ports/atmel-samd/common-hal/_protomatter/__init__.c
Normal file
0
ports/atmel-samd/common-hal/_protomatter/__init__.c
Normal file
@ -240,3 +240,15 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
|
||||
|
||||
return pin_number_is_free(pin->number);
|
||||
}
|
||||
|
||||
uint8_t common_hal_mcu_pin_number(const mcu_pin_obj_t* pin) {
|
||||
return pin->number;
|
||||
}
|
||||
|
||||
void common_hal_mcu_pin_claim(const mcu_pin_obj_t* pin) {
|
||||
return claim_pin(pin);
|
||||
}
|
||||
|
||||
void common_hal_mcu_pin_reset_number(uint8_t pin_no) {
|
||||
reset_pin_number(pin_no);
|
||||
}
|
||||
|
@ -61,22 +61,31 @@ uint8_t tcc_channels[5]; // Set by pwmout_reset() to {0xc0, 0xf0, 0xf8, 0xfc,
|
||||
|
||||
static uint8_t never_reset_tc_or_tcc[TC_INST_NUM + TCC_INST_NUM];
|
||||
|
||||
void common_hal_pulseio_pwmout_never_reset(pulseio_pwmout_obj_t *self) {
|
||||
if (self->timer->is_tc) {
|
||||
never_reset_tc_or_tcc[self->timer->index] += 1;
|
||||
STATIC void timer_refcount(int index, bool is_tc, int increment) {
|
||||
if (is_tc) {
|
||||
never_reset_tc_or_tcc[index] += increment;
|
||||
} else {
|
||||
never_reset_tc_or_tcc[TC_INST_NUM + self->timer->index] += 1;
|
||||
never_reset_tc_or_tcc[TC_INST_NUM + index] += increment;
|
||||
}
|
||||
}
|
||||
|
||||
void timer_never_reset(int index, bool is_tc) {
|
||||
timer_refcount(index, is_tc, 1);
|
||||
}
|
||||
|
||||
void timer_reset_ok(int index, bool is_tc) {
|
||||
timer_refcount(index, is_tc, -1);
|
||||
}
|
||||
|
||||
|
||||
void common_hal_pulseio_pwmout_never_reset(pulseio_pwmout_obj_t *self) {
|
||||
timer_never_reset(self->timer->index, self->timer->is_tc);
|
||||
|
||||
never_reset_pin_number(self->pin->number);
|
||||
}
|
||||
|
||||
void common_hal_pulseio_pwmout_reset_ok(pulseio_pwmout_obj_t *self) {
|
||||
if (self->timer->is_tc) {
|
||||
never_reset_tc_or_tcc[self->timer->index] -= 1;
|
||||
} else {
|
||||
never_reset_tc_or_tcc[TC_INST_NUM + self->timer->index] -= 1;
|
||||
}
|
||||
timer_reset_ok(self->timer->index, self->timer->is_tc);
|
||||
}
|
||||
|
||||
void pwmout_reset(void) {
|
||||
|
@ -70,6 +70,18 @@ CIRCUITPY_ULAB = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef CIRCUITPY_PROTOMATTER
|
||||
ifneq ($(CIRCUITPY_SMALL_BUILD),1)
|
||||
CIRCUITPY_PROTOMATTER = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef CIRCUITPY_FRAMEBUFFERIO
|
||||
ifneq ($(CIRCUITPY_SMALL_BUILD),1)
|
||||
CIRCUITPY_FRAMEBUFFERIO = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
endif # samd51
|
||||
|
||||
INTERNAL_LIBM = 1
|
||||
|
@ -34,6 +34,8 @@
|
||||
#include "shared-module/_pew/PewPew.h"
|
||||
#include "common-hal/frequencyio/FrequencyIn.h"
|
||||
|
||||
extern void _PM_IRQ_HANDLER(void);
|
||||
|
||||
static uint8_t tc_handler[TC_INST_NUM];
|
||||
|
||||
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler) {
|
||||
@ -68,6 +70,11 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
|
||||
frequencyin_interrupt_handler(index);
|
||||
#endif
|
||||
break;
|
||||
case TC_HANDLER_PROTOMATTER:
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
_PM_IRQ_HANDLER();
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -30,9 +30,14 @@
|
||||
#define TC_HANDLER_PULSEOUT 0x1
|
||||
#define TC_HANDLER_PEW 0x2
|
||||
#define TC_HANDLER_FREQUENCYIN 0x3
|
||||
#define TC_HANDLER_PULSEIN 0x4
|
||||
#define TC_HANDLER_PROTOMATTER 0x4
|
||||
#define TC_HANDLER_PULSEIN 0x5
|
||||
|
||||
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler);
|
||||
void shared_timer_handler(bool is_tc, uint8_t index);
|
||||
|
||||
// implementation of these functions is in PWMOut.c
|
||||
void timer_never_reset(int index, bool is_tc);
|
||||
void timer_reset_ok(int index, bool is_tc);
|
||||
|
||||
#endif // MICROPY_INCLUDED_ATMEL_SAMD_TIMER_HANDLER_H
|
||||
|
@ -36,3 +36,6 @@
|
||||
|
||||
#define DEFAULT_UART_BUS_RX (&pin_UART2_RXD)
|
||||
#define DEFAULT_UART_BUS_TX (&pin_UART2_TXD)
|
||||
|
||||
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
|
||||
|
||||
|
@ -26,8 +26,42 @@ SECTIONS
|
||||
. = ALIGN(4);
|
||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
||||
|
||||
*(.itcm.*) /* Instruction Tightly Coupled Memory */
|
||||
*(.dtcm_data.*) /* Data Tightly Coupled Memory */
|
||||
*(.itcm.*) /* Instruction Tightly Coupled Memory */
|
||||
*(.dtcm_data.*) /* Data Tightly Coupled Memory */
|
||||
|
||||
*(.text.cmp_lfn)
|
||||
*(.text.qstr_find_strn)
|
||||
*(.text.dcd_edpt_xfer)
|
||||
*(.text.pop_rule)
|
||||
*(.text.ff_wtoupper)
|
||||
*(.text.dir_find)
|
||||
*(.text.push_rule)
|
||||
*(.text.csr_writel)
|
||||
*(.text.csr_readl)
|
||||
*(.text.timer0_ev_pending_write)
|
||||
*(.text.autoreload_tick)
|
||||
*(.text.filesystem_tick)
|
||||
*(.text.usb_background)
|
||||
|
||||
*(.text.dcd_*)
|
||||
*(.text.tud_control_*)
|
||||
*(.text.tud_cdc_n_write_flush)
|
||||
*(.text.tud_task)
|
||||
*(.text.tu_edpt_dir)
|
||||
*(.text.tu_fifo_empty)
|
||||
*(.text.usbd_edpt_busy)
|
||||
*(.text.irq_getmask)
|
||||
*(.text.irq_setmask)
|
||||
*(.text.irq_pending)
|
||||
*(.text._osal_q_lock)
|
||||
*(.text.osal_queue_receive)
|
||||
|
||||
*(.text.mp_obj_get_type)
|
||||
*(.text.mp_parse)
|
||||
*(.text.parse_compile_execute)
|
||||
*(.text.mp_map_lookup)
|
||||
*(.text.mp_execute_bytecode) /* Note: this function is 7kb */
|
||||
|
||||
*(.ramtext) /* .text* sections (code) */
|
||||
*(.ramtext*) /* .text* sections (code) */
|
||||
*(.data) /* .data sections */
|
||||
@ -63,7 +97,7 @@ SECTIONS
|
||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
||||
*(.bss)
|
||||
*(.bss*)
|
||||
*(.dtcm_bss.*) /* Data Tightly Coupled Memory */
|
||||
*(.dtcm_bss.*) /* Data Tightly Coupled Memory */
|
||||
*(.sbss)
|
||||
*(.sbss*)
|
||||
*(COMMON)
|
||||
|
@ -210,6 +210,18 @@ void common_hal_busio_spi_deinit(busio_spi_obj_t *self) {
|
||||
|
||||
bool common_hal_busio_spi_configure(busio_spi_obj_t *self,
|
||||
uint32_t baudrate, uint8_t polarity, uint8_t phase, uint8_t bits) {
|
||||
|
||||
LPSPI_Enable(self->spi, false);
|
||||
uint32_t tcrPrescaleValue;
|
||||
self->baudrate = LPSPI_MasterSetBaudRate(self->spi, baudrate, LPSPI_MASTER_CLK_FREQ, &tcrPrescaleValue);
|
||||
LPSPI_Enable(self->spi, true);
|
||||
|
||||
if ((polarity == common_hal_busio_spi_get_polarity(self)) &&
|
||||
(phase == common_hal_busio_spi_get_phase(self)) &&
|
||||
(bits == ((self->spi->TCR & LPSPI_TCR_FRAMESZ_MASK) >> LPSPI_TCR_FRAMESZ_SHIFT)) + 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
lpspi_master_config_t config = { 0 };
|
||||
LPSPI_MasterGetDefaultConfig(&config);
|
||||
|
||||
@ -221,11 +233,6 @@ bool common_hal_busio_spi_configure(busio_spi_obj_t *self,
|
||||
LPSPI_Deinit(self->spi);
|
||||
LPSPI_MasterInit(self->spi, &config, LPSPI_MASTER_CLK_FREQ);
|
||||
|
||||
LPSPI_Enable(self->spi, false);
|
||||
uint32_t tcrPrescaleValue;
|
||||
self->baudrate = LPSPI_MasterSetBaudRate(self->spi, config.baudRate, LPSPI_MASTER_CLK_FREQ, &tcrPrescaleValue);
|
||||
LPSPI_Enable(self->spi, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ extern uint8_t _ld_default_stack_size;
|
||||
#define MICROPY_PY_FUNCTION_ATTRS (0)
|
||||
#define MICROPY_PY_IO (1)
|
||||
#define MICROPY_PY_UJSON (1)
|
||||
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
||||
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
|
||||
|
||||
|
||||
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_START_ADDR ((uint32_t) &_ld_filesystem_start)
|
||||
|
@ -76,6 +76,7 @@ void board_init(void) {
|
||||
false, // Pixels in a byte share a row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -76,6 +76,7 @@ void board_init(void) {
|
||||
false, // Pixels in a byte share a row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
66
ports/nrf/common-hal/_protomatter/Protomatter.c
Normal file
66
ports/nrf/common-hal/_protomatter/Protomatter.c
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "common-hal/_protomatter/Protomatter.h"
|
||||
|
||||
#include "peripherals/nrf/timers.h"
|
||||
|
||||
extern void _PM_IRQ_HANDLER(void);
|
||||
|
||||
void *common_hal_protomatter_timer_allocate() {
|
||||
nrfx_timer_t *timer = nrf_peripherals_allocate_timer_or_throw();
|
||||
nrf_peripherals_timer_never_reset(timer);
|
||||
return timer->p_reg;
|
||||
}
|
||||
|
||||
|
||||
static void protomatter_event_handler(nrf_timer_event_t event_type, void *p_context) {
|
||||
_PM_IRQ_HANDLER();
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_enable(void* ptr) {
|
||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||
static const nrfx_timer_config_t timer_config = {
|
||||
.frequency = NRF_TIMER_FREQ_16MHz,
|
||||
.mode = NRF_TIMER_MODE_TIMER,
|
||||
.bit_width = NRF_TIMER_BIT_WIDTH_16,
|
||||
.interrupt_priority = NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY,
|
||||
.p_context = NULL,
|
||||
};
|
||||
nrfx_timer_init(timer, &timer_config, &protomatter_event_handler);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_disable(void* ptr) {
|
||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||
nrfx_timer_uninit(timer);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_timer_free(void* ptr) {
|
||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||
nrf_peripherals_free_timer(timer);
|
||||
}
|
35
ports/nrf/common-hal/_protomatter/Protomatter.h
Normal file
35
ports/nrf/common-hal/_protomatter/Protomatter.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
||||
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
||||
|
||||
void *common_hal_protomatter_timer_allocate(void);
|
||||
void common_hal_protomatter_timer_enable(void*);
|
||||
void common_hal_protomatter_timer_disable(void*);
|
||||
void common_hal_protomatter_timer_free(void*);
|
||||
|
||||
#endif
|
0
ports/nrf/common-hal/_protomatter/__init__.c
Normal file
0
ports/nrf/common-hal/_protomatter/__init__.c
Normal file
@ -196,3 +196,15 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t *pin) {
|
||||
return pin_number_is_free(pin->number);
|
||||
|
||||
}
|
||||
|
||||
uint8_t common_hal_mcu_pin_number(const mcu_pin_obj_t* pin) {
|
||||
return pin->number;
|
||||
}
|
||||
|
||||
void common_hal_mcu_pin_claim(const mcu_pin_obj_t* pin) {
|
||||
claim_pin(pin);
|
||||
}
|
||||
|
||||
void common_hal_mcu_pin_reset_number(uint8_t pin_no) {
|
||||
reset_pin_number(pin_no);
|
||||
}
|
||||
|
@ -102,10 +102,7 @@ void pulseout_reset() {
|
||||
void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t* self,
|
||||
const pulseio_pwmout_obj_t* carrier) {
|
||||
if (refcount == 0) {
|
||||
timer = nrf_peripherals_allocate_timer();
|
||||
if (timer == NULL) {
|
||||
mp_raise_RuntimeError(translate("All timers in use"));
|
||||
}
|
||||
timer = nrf_peripherals_allocate_timer_or_throw();
|
||||
}
|
||||
refcount++;
|
||||
|
||||
|
@ -51,6 +51,9 @@ endif
|
||||
# frequencyio not yet implemented
|
||||
CIRCUITPY_FREQUENCYIO = 0
|
||||
|
||||
CIRCUITPY_PROTOMATTER = 1
|
||||
CIRCUITPY_FRAMEBUFFERIO = 1
|
||||
|
||||
# nRF52840-specific
|
||||
|
||||
ifeq ($(MCU_CHIP),nrf52840)
|
||||
|
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "common-hal/pulseio/PulseOut.h"
|
||||
#include "peripherals/nrf/timers.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -54,14 +55,47 @@ STATIC nrfx_timer_t nrfx_timers[] = {
|
||||
};
|
||||
|
||||
static bool nrfx_timer_allocated[ARRAY_SIZE(nrfx_timers)];
|
||||
static bool nrfx_timer_never_reset[ARRAY_SIZE(nrfx_timers)];
|
||||
|
||||
void timers_reset(void) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(nrfx_timers); i ++) {
|
||||
if (nrfx_timer_never_reset[i]) {
|
||||
continue;
|
||||
}
|
||||
nrfx_timer_uninit(&nrfx_timers[i]);
|
||||
nrfx_timer_allocated[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
void nrf_peripherals_timer_never_reset(nrfx_timer_t* timer) {
|
||||
int idx = nrf_peripherals_timer_idx_from_timer(timer);
|
||||
nrfx_timer_never_reset[idx] = true;
|
||||
}
|
||||
|
||||
void nrf_peripherals_timer_reset_ok(nrfx_timer_t* timer) {
|
||||
int idx = nrf_peripherals_timer_idx_from_timer(timer);
|
||||
nrfx_timer_never_reset[idx] = false;
|
||||
}
|
||||
|
||||
nrfx_timer_t* nrf_peripherals_timer_from_reg(NRF_TIMER_Type* ptr) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(nrfx_timers); i ++) {
|
||||
if (nrfx_timers[i].p_reg == ptr) {
|
||||
return &nrfx_timers[i];
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t nrf_peripherals_timer_idx_from_timer(nrfx_timer_t* ptr) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(nrfx_timers); i ++) {
|
||||
if (&nrfx_timers[i] == ptr) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return ~(size_t)0;
|
||||
}
|
||||
|
||||
|
||||
// Returns a free nrfx_timer instance, and marks it as allocated.
|
||||
// The caller should init as with the desired config.
|
||||
// Returns NULL if no timer is available.
|
||||
@ -75,14 +109,21 @@ nrfx_timer_t* nrf_peripherals_allocate_timer(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nrfx_timer_t* nrf_peripherals_allocate_timer_or_throw(void) {
|
||||
nrfx_timer_t* result = nrf_peripherals_allocate_timer();
|
||||
if (!result) {
|
||||
mp_raise_RuntimeError(translate("All timers in use"));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Free a timer, which may or may not have been initialized.
|
||||
void nrf_peripherals_free_timer(nrfx_timer_t* timer) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(nrfx_timers); i ++) {
|
||||
if (timer == &nrfx_timers[i]) {
|
||||
nrfx_timer_allocated[i] = false;
|
||||
// Safe to call even if not initialized.
|
||||
nrfx_timer_uninit(timer);
|
||||
return;
|
||||
}
|
||||
size_t idx = nrf_peripherals_timer_idx_from_timer(timer);
|
||||
if (idx != ~(size_t)0) {
|
||||
nrfx_timer_allocated[idx] = false;
|
||||
nrfx_timer_never_reset[idx] = false;
|
||||
// Safe to call even if not initialized.
|
||||
nrfx_timer_uninit(timer);
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,9 @@
|
||||
|
||||
void timers_reset(void);
|
||||
nrfx_timer_t* nrf_peripherals_allocate_timer(void);
|
||||
nrfx_timer_t* nrf_peripherals_allocate_timer_or_throw(void);
|
||||
void nrf_peripherals_free_timer(nrfx_timer_t* timer);
|
||||
void nrf_peripherals_timer_never_reset(nrfx_timer_t* timer);
|
||||
void nrf_peripherals_timer_reset_ok(nrfx_timer_t* timer);
|
||||
nrfx_timer_t* nrf_peripherals_timer_from_reg(NRF_TIMER_Type* ptr);
|
||||
size_t nrf_peripherals_timer_idx_from_timer(nrfx_timer_t* ptr);
|
||||
|
@ -96,6 +96,7 @@ void board_init(void) {
|
||||
false, // Pixels in a byte share a row. Only used for depth < 8
|
||||
1, // bytes per cell. Only valid for depths < 8
|
||||
false, // reverse_pixels_in_byte. Only valid for depths < 8
|
||||
true, // reverse_pixels_in_word
|
||||
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
|
||||
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command
|
||||
MIPI_COMMAND_WRITE_MEMORY_START, // Write memory command
|
||||
|
@ -142,6 +142,9 @@ endif
|
||||
ifeq ($(CIRCUITPY_DISPLAYIO),1)
|
||||
SRC_PATTERNS += displayio/% terminalio/% fontio/%
|
||||
endif
|
||||
ifeq ($(CIRCUITPY_FRAMEBUFFERIO),1)
|
||||
SRC_PATTERNS += framebufferio/%
|
||||
endif
|
||||
ifeq ($(CIRCUITPY_FREQUENCYIO),1)
|
||||
SRC_PATTERNS += frequencyio/%
|
||||
endif
|
||||
@ -178,6 +181,9 @@ endif
|
||||
ifeq ($(CIRCUITPY_PIXELBUF),1)
|
||||
SRC_PATTERNS += _pixelbuf/%
|
||||
endif
|
||||
ifeq ($(CIRCUITPY_PROTOMATTER),1)
|
||||
SRC_PATTERNS += _protomatter/%
|
||||
endif
|
||||
ifeq ($(CIRCUITPY_PULSEIO),1)
|
||||
SRC_PATTERNS += pulseio/%
|
||||
endif
|
||||
@ -242,6 +248,8 @@ SRC_COMMON_HAL_ALL = \
|
||||
_bleio/PacketBuffer.c \
|
||||
_bleio/Service.c \
|
||||
_bleio/UUID.c \
|
||||
_protomatter/Protomatter.c \
|
||||
_protomatter/__init__.c \
|
||||
analogio/AnalogIn.c \
|
||||
analogio/AnalogOut.c \
|
||||
analogio/__init__.c \
|
||||
@ -314,6 +322,8 @@ SRC_SHARED_MODULE_ALL = \
|
||||
_bleio/ScanResults.c \
|
||||
_pixelbuf/PixelBuf.c \
|
||||
_pixelbuf/__init__.c \
|
||||
_protomatter/Protomatter.c \
|
||||
_protomatter/__init__.c \
|
||||
_stage/Layer.c \
|
||||
_stage/Text.c \
|
||||
_stage/__init__.c \
|
||||
@ -347,6 +357,8 @@ SRC_SHARED_MODULE_ALL = \
|
||||
displayio/__init__.c \
|
||||
fontio/BuiltinFont.c \
|
||||
fontio/__init__.c \
|
||||
framebufferio/FramebufferDisplay.c \
|
||||
framebufferio/__init__.c \
|
||||
gamepad/GamePad.c \
|
||||
gamepad/__init__.c \
|
||||
gamepadshift/GamePadShift.c \
|
||||
@ -401,6 +413,12 @@ SRC_MOD += $(addprefix lib/mp3/src/, \
|
||||
)
|
||||
$(BUILD)/lib/mp3/src/buffers.o: CFLAGS += -include "py/misc.h" -D'MPDEC_ALLOCATOR(x)=m_malloc(x,0)' -D'MPDEC_FREE(x)=m_free(x)'
|
||||
endif
|
||||
ifeq ($(CIRCUITPY_PROTOMATTER),1)
|
||||
SRC_MOD += $(addprefix lib/protomatter/, \
|
||||
core.c \
|
||||
)
|
||||
$(BUILD)/lib/protomatter/core.o: CFLAGS += -include "shared-module/_protomatter/allocator.h" -DCIRCUITPY -Wno-missing-braces
|
||||
endif
|
||||
|
||||
# All possible sources are listed here, and are filtered by SRC_PATTERNS.
|
||||
SRC_SHARED_MODULE_INTERNAL = \
|
||||
|
@ -345,6 +345,13 @@ extern const struct _mp_obj_module_t terminalio_module;
|
||||
#define CIRCUITPY_DISPLAY_LIMIT (0)
|
||||
#endif
|
||||
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
extern const struct _mp_obj_module_t framebufferio_module;
|
||||
#define FRAMEBUFFERIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_framebufferio), (mp_obj_t)&framebufferio_module },
|
||||
#else
|
||||
#define FRAMEBUFFERIO_MODULE
|
||||
#endif
|
||||
|
||||
#if CIRCUITPY_FREQUENCYIO
|
||||
extern const struct _mp_obj_module_t frequencyio_module;
|
||||
#define FREQUENCYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_frequencyio), (mp_obj_t)&frequencyio_module },
|
||||
@ -454,6 +461,13 @@ extern const struct _mp_obj_module_t pixelbuf_module;
|
||||
#define PIXELBUF_MODULE
|
||||
#endif
|
||||
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
extern const struct _mp_obj_module_t protomatter_module;
|
||||
#define PROTOMATTER_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__protomatter),(mp_obj_t)&protomatter_module },
|
||||
#else
|
||||
#define PROTOMATTER_MODULE
|
||||
#endif
|
||||
|
||||
#if CIRCUITPY_PULSEIO
|
||||
extern const struct _mp_obj_module_t pulseio_module;
|
||||
#define PULSEIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_pulseio), (mp_obj_t)&pulseio_module },
|
||||
@ -628,6 +642,7 @@ extern const struct _mp_obj_module_t ustack_module;
|
||||
FONTIO_MODULE \
|
||||
TERMINALIO_MODULE \
|
||||
ERRNO_MODULE \
|
||||
FRAMEBUFFERIO_MODULE \
|
||||
FREQUENCYIO_MODULE \
|
||||
GAMEPAD_MODULE \
|
||||
GAMEPADSHIFT_MODULE \
|
||||
@ -643,6 +658,7 @@ extern const struct _mp_obj_module_t ustack_module;
|
||||
PEW_MODULE \
|
||||
PIXELBUF_MODULE \
|
||||
PS2IO_MODULE \
|
||||
PROTOMATTER_MODULE \
|
||||
PULSEIO_MODULE \
|
||||
RANDOM_MODULE \
|
||||
RE_MODULE \
|
||||
|
@ -149,6 +149,11 @@ CIRCUITPY_DISPLAYIO = $(CIRCUITPY_FULL_BUILD)
|
||||
endif
|
||||
CFLAGS += -DCIRCUITPY_DISPLAYIO=$(CIRCUITPY_DISPLAYIO)
|
||||
|
||||
ifndef CIRCUITPY_FRAMEBUFFERIO
|
||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||
endif
|
||||
CFLAGS += -DCIRCUITPY_FRAMEBUFFERIO=$(CIRCUITPY_FRAMEBUFFERIO)
|
||||
|
||||
ifndef CIRCUITPY_FREQUENCYIO
|
||||
CIRCUITPY_FREQUENCYIO = $(CIRCUITPY_FULL_BUILD)
|
||||
endif
|
||||
@ -210,6 +215,12 @@ CIRCUITPY_PIXELBUF = $(CIRCUITPY_FULL_BUILD)
|
||||
endif
|
||||
CFLAGS += -DCIRCUITPY_PIXELBUF=$(CIRCUITPY_PIXELBUF)
|
||||
|
||||
# Only for SAMD boards for the moment
|
||||
ifndef CIRCUITPY_PROTOMATTER
|
||||
CIRCUITPY_PROTOMATTER = 0
|
||||
endif
|
||||
CFLAGS += -DCIRCUITPY_PROTOMATTER=$(CIRCUITPY_PROTOMATTER)
|
||||
|
||||
ifndef CIRCUITPY_PULSEIO
|
||||
CIRCUITPY_PULSEIO = $(CIRCUITPY_DEFAULT_BUILD)
|
||||
endif
|
||||
|
@ -145,7 +145,7 @@ $(PROG): $(OBJ)
|
||||
# Do not pass COPT here - it's *C* compiler optimizations. For example,
|
||||
# we may want to compile using Thumb, but link with non-Thumb libc.
|
||||
$(Q)$(CC) -o $@ $^ $(LIB) $(LDFLAGS)
|
||||
ifndef DEBUG
|
||||
ifdef STRIP_CIRCUITPYTHON
|
||||
$(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
|
||||
endif
|
||||
$(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $(PROG)
|
||||
|
2
py/py.mk
2
py/py.mk
@ -119,7 +119,7 @@ ulab.c \
|
||||
vectorise.c \
|
||||
)
|
||||
CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1
|
||||
$(BUILD)/extmod/ulab/code/%.o: CFLAGS += -Wno-sign-compare -Wno-missing-prototypes -Wno-unused-parameter -Wno-missing-declarations -Wno-error -Wno-shadow -Wno-maybe-uninitialized -DCIRCUITPY
|
||||
$(BUILD)/extmod/ulab/code/%.o: CFLAGS += -Wno-float-equal -Wno-sign-compare -DCIRCUITPY
|
||||
endif
|
||||
|
||||
# External modules written in C.
|
||||
|
376
shared-bindings/_protomatter/Protomatter.c
Normal file
376
shared-bindings/_protomatter/Protomatter.c
Normal file
@ -0,0 +1,376 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "py/objproperty.h"
|
||||
#include "py/runtime.h"
|
||||
#include "py/objarray.h"
|
||||
|
||||
#include "common-hal/_protomatter/Protomatter.h"
|
||||
#include "shared-bindings/_protomatter/Protomatter.h"
|
||||
#include "shared-bindings/microcontroller/Pin.h"
|
||||
#include "shared-bindings/microcontroller/__init__.h"
|
||||
#include "shared-bindings/util.h"
|
||||
#include "shared-module/displayio/__init__.h"
|
||||
#include "shared-module/framebufferio/__init__.h"
|
||||
#include "shared-module/framebufferio/FramebufferDisplay.h"
|
||||
|
||||
//| .. currentmodule:: _protomatter
|
||||
//|
|
||||
//| :class:`protomatter` -- Driver for HUB75-style RGB LED matrices
|
||||
//| ================================================================
|
||||
//|
|
||||
|
||||
extern Protomatter_core *_PM_protoPtr;
|
||||
|
||||
STATIC uint8_t validate_pin(mp_obj_t obj) {
|
||||
mcu_pin_obj_t *result = validate_obj_is_free_pin(obj);
|
||||
return common_hal_mcu_pin_number(result);
|
||||
}
|
||||
|
||||
STATIC void validate_pins(qstr what, uint8_t* pin_nos, mp_int_t max_pins, mp_obj_t seq, uint8_t *count_out) {
|
||||
mp_int_t len = MP_OBJ_SMALL_INT_VALUE(mp_obj_len(seq));
|
||||
if (len > max_pins) {
|
||||
mp_raise_ValueError_varg(translate("At most %d %q may be specified (not %d)"), max_pins, what, len);
|
||||
}
|
||||
*count_out = len;
|
||||
for (mp_int_t i=0; i<len; i++) {
|
||||
pin_nos[i] = validate_pin(mp_obj_subscr(seq, MP_OBJ_NEW_SMALL_INT(i), MP_OBJ_SENTINEL));
|
||||
}
|
||||
}
|
||||
|
||||
STATIC void claim_and_never_reset_pin(mp_obj_t pin) {
|
||||
common_hal_mcu_pin_claim(pin);
|
||||
common_hal_never_reset_pin(pin);
|
||||
}
|
||||
|
||||
STATIC void claim_and_never_reset_pins(mp_obj_t seq) {
|
||||
mp_int_t len = MP_OBJ_SMALL_INT_VALUE(mp_obj_len(seq));
|
||||
for (mp_int_t i=0; i<len; i++) {
|
||||
claim_and_never_reset_pin(mp_obj_subscr(seq, MP_OBJ_NEW_SMALL_INT(i), MP_OBJ_SENTINEL));
|
||||
}
|
||||
}
|
||||
|
||||
STATIC void preflight_pins_or_throw(uint8_t clock_pin, uint8_t *rgb_pins, uint8_t rgb_pin_count, bool allow_inefficient) {
|
||||
uint32_t port = clock_pin / 32;
|
||||
uint32_t bit_mask = 1 << (clock_pin % 32);
|
||||
|
||||
for (uint8_t i = 0; i < rgb_pin_count; i++) {
|
||||
uint32_t pin_port = rgb_pins[i] / 32;
|
||||
|
||||
if (pin_port != port) {
|
||||
mp_raise_ValueError_varg(
|
||||
translate("rgb_pins[%d] is not on the same port as clock"), i);
|
||||
}
|
||||
|
||||
uint32_t pin_mask = 1 << (rgb_pins[i] % 32);
|
||||
if (pin_mask & bit_mask) {
|
||||
mp_raise_ValueError_varg(
|
||||
translate("rgb_pins[%d] duplicates another pin assignment"), i);
|
||||
}
|
||||
|
||||
bit_mask |= pin_mask;
|
||||
}
|
||||
|
||||
if (allow_inefficient) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t byte_mask = 0;
|
||||
if (bit_mask & 0x000000FF) byte_mask |= 0b0001;
|
||||
if (bit_mask & 0x0000FF00) byte_mask |= 0b0010;
|
||||
if (bit_mask & 0x00FF0000) byte_mask |= 0b0100;
|
||||
if (bit_mask & 0xFF000000) byte_mask |= 0b1000;
|
||||
|
||||
uint8_t bytes_per_element = 0xff;
|
||||
uint8_t ideal_bytes_per_element = (rgb_pin_count + 7) / 8;
|
||||
|
||||
switch(byte_mask) {
|
||||
case 0b0001:
|
||||
case 0b0010:
|
||||
case 0b0100:
|
||||
case 0b1000:
|
||||
bytes_per_element = 1;
|
||||
break;
|
||||
|
||||
case 0b0011:
|
||||
case 0b1100:
|
||||
bytes_per_element = 2;
|
||||
break;
|
||||
|
||||
default:
|
||||
bytes_per_element = 4;
|
||||
break;
|
||||
}
|
||||
|
||||
if (bytes_per_element != ideal_bytes_per_element) {
|
||||
mp_raise_ValueError_varg(
|
||||
translate("Pinout uses %d bytes per element, which consumes more than the ideal %d bytes. If this cannot be avoided, pass allow_inefficient=True to the constructor"),
|
||||
bytes_per_element, ideal_bytes_per_element);
|
||||
}
|
||||
}
|
||||
|
||||
//| :class:`~_protomatter.Protomatter` displays an in-memory framebuffer to an LED matrix.
|
||||
//|
|
||||
//| .. class:: Protomatter(width, bit_depth, rgb_pins, addr_pins, clock_pin, latch_pin, output_enable_pin, *, doublebuffer=True, framebuffer=None)
|
||||
//|
|
||||
//| Create a Protomatter object with the given attributes. The height of
|
||||
//| the display is determined by the number of rgb and address pins:
|
||||
//| len(rgb_pins) // 3 * 2 ** len(address_pins). With 6 RGB pins and 4
|
||||
//| address lines, the display will be 32 pixels tall.
|
||||
//|
|
||||
//| Up to 30 RGB pins and 8 address pins are supported.
|
||||
//|
|
||||
//| The RGB pins must be within a single "port" and performance and memory
|
||||
//| usage are best when they are all within "close by" bits of the port.
|
||||
//| The clock pin must also be on the same port as the RGB pins. See the
|
||||
//| documentation of the underlying protomatter C library for more
|
||||
//| information. Generally, Adafruit's interface boards are designed so
|
||||
//| that these requirements are met when matched with the intended
|
||||
//| microcontroller board. For instance, the Feather M4 Express works
|
||||
//| together with the RGB Matrix Feather.
|
||||
//|
|
||||
//| The framebuffer is in "RGB565" format.
|
||||
//|
|
||||
//| "RGB565" means that it is organized as a series of 16-bit numbers
|
||||
//| where the highest 5 bits are interpreted as red, the next 6 as
|
||||
//| green, and the final 5 as blue. The object can be any buffer, but
|
||||
//| `array.array` and `ulab.array` objects are most often useful.
|
||||
//| To update the content, modify the framebuffer and call refresh.
|
||||
//|
|
||||
//| If a framebuffer is not passed in, one is allocated and initialized
|
||||
//| to all black. In any case, the framebuffer can be retrieved
|
||||
//| by passing the protomatter object to memoryview().
|
||||
//|
|
||||
//| If doublebuffer is False, some memory is saved, but the display may
|
||||
//| flicker during updates.
|
||||
//|
|
||||
//| If a framebuffer is not passed in, one is allocated internally. To
|
||||
//| retrieve it, pass the protomatter object to memoryview().
|
||||
//|
|
||||
//| A Protomatter framebuffer is often used in conjunction with a
|
||||
//| `framebufferio.FramebufferDisplay`.
|
||||
//|
|
||||
|
||||
STATIC mp_obj_t protomatter_protomatter_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
enum { ARG_width, ARG_bit_depth, ARG_rgb_list, ARG_addr_list,
|
||||
ARG_clock_pin, ARG_latch_pin, ARG_output_enable_pin, ARG_doublebuffer, ARG_framebuffer, ARG_height };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_bit_depth, MP_ARG_INT | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_rgb_pins, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_addr_pins, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_clock_pin, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_latch_pin, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_output_enable_pin, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
|
||||
{ MP_QSTR_doublebuffer, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = true } },
|
||||
{ MP_QSTR_framebuffer, MP_ARG_OBJ | MP_ARG_KW_ONLY, { .u_obj = mp_const_none } },
|
||||
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_KW_ONLY, { .u_int = 0 } },
|
||||
};
|
||||
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
||||
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
||||
|
||||
// Because interrupt handlers point directly at protomatter objects,
|
||||
// it is NOT okay to move them to the long-lived pool later. Allocate
|
||||
// them there to begin with, since generally they'll be long-lived anyway.
|
||||
protomatter_protomatter_obj_t *self = &allocate_display_bus_or_raise()->protomatter;
|
||||
self->base.type = &protomatter_Protomatter_type;
|
||||
|
||||
uint8_t rgb_count, addr_count;
|
||||
uint8_t rgb_pins[MP_ARRAY_SIZE(self->rgb_pins)];
|
||||
uint8_t addr_pins[MP_ARRAY_SIZE(self->addr_pins)];
|
||||
uint8_t clock_pin = validate_pin(args[ARG_clock_pin].u_obj);
|
||||
uint8_t latch_pin = validate_pin(args[ARG_latch_pin].u_obj);
|
||||
uint8_t output_enable_pin = validate_pin(args[ARG_output_enable_pin].u_obj);
|
||||
|
||||
validate_pins(MP_QSTR_rgb_pins, rgb_pins, MP_ARRAY_SIZE(self->rgb_pins), args[ARG_rgb_list].u_obj, &rgb_count);
|
||||
validate_pins(MP_QSTR_addr_pins, addr_pins, MP_ARRAY_SIZE(self->addr_pins), args[ARG_addr_list].u_obj, &addr_count);
|
||||
|
||||
if (rgb_count % 6) {
|
||||
mp_raise_ValueError_varg(translate("Must use a multiple of 6 rgb pins, not %d"), rgb_count);
|
||||
}
|
||||
|
||||
// TODO(@jepler) Use fewer than all rows of pixels if height < computed_height
|
||||
if (args[ARG_height].u_int != 0) {
|
||||
int computed_height = (rgb_count / 3) << (addr_count);
|
||||
if (computed_height != args[ARG_height].u_int) {
|
||||
mp_raise_ValueError_varg(
|
||||
translate("%d address pins and %d rgb pins indicate a height of %d, not %d"), addr_count, rgb_count, computed_height, args[ARG_height].u_int);
|
||||
}
|
||||
}
|
||||
|
||||
preflight_pins_or_throw(clock_pin, rgb_pins, rgb_count, true);
|
||||
|
||||
mp_obj_t framebuffer = args[ARG_framebuffer].u_obj;
|
||||
if (framebuffer == mp_const_none) {
|
||||
int width = args[ARG_width].u_int;
|
||||
int bufsize = 2 * width * rgb_count / 3 * (1 << addr_count);
|
||||
framebuffer = mp_obj_new_bytearray_of_zeros(bufsize);
|
||||
}
|
||||
|
||||
common_hal_protomatter_protomatter_construct(self,
|
||||
args[ARG_width].u_int,
|
||||
args[ARG_bit_depth].u_int,
|
||||
rgb_count, rgb_pins,
|
||||
addr_count, addr_pins,
|
||||
clock_pin, latch_pin, output_enable_pin,
|
||||
args[ARG_doublebuffer].u_bool,
|
||||
framebuffer, NULL);
|
||||
|
||||
claim_and_never_reset_pins(args[ARG_rgb_list].u_obj);
|
||||
claim_and_never_reset_pins(args[ARG_addr_list].u_obj);
|
||||
claim_and_never_reset_pin(args[ARG_clock_pin].u_obj);
|
||||
claim_and_never_reset_pin(args[ARG_output_enable_pin].u_obj);
|
||||
claim_and_never_reset_pin(args[ARG_latch_pin].u_obj);
|
||||
|
||||
return MP_OBJ_FROM_PTR(self);
|
||||
}
|
||||
|
||||
//| .. method:: deinit
|
||||
//|
|
||||
//| Free the resources (pins, timers, etc.) associated with this
|
||||
//| protomatter instance. After deinitialization, no further operations
|
||||
//| may be performed.
|
||||
//|
|
||||
STATIC mp_obj_t protomatter_protomatter_deinit(mp_obj_t self_in) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
common_hal_protomatter_protomatter_deinit(self);
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(protomatter_protomatter_deinit_obj, protomatter_protomatter_deinit);
|
||||
|
||||
static void check_for_deinit(protomatter_protomatter_obj_t *self) {
|
||||
if (!self->core.rgbPins) {
|
||||
raise_deinited_error();
|
||||
}
|
||||
}
|
||||
|
||||
//| .. attribute:: brightness
|
||||
//|
|
||||
//| In the current implementation, 0.0 turns the display off entirely
|
||||
//| and any other value up to 1.0 turns the display on fully.
|
||||
//|
|
||||
STATIC mp_obj_t protomatter_protomatter_get_brightness(mp_obj_t self_in) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
check_for_deinit(self);
|
||||
return mp_obj_new_float(common_hal_protomatter_protomatter_get_paused(self)? 0.0f : 1.0f);
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(protomatter_protomatter_get_brightness_obj, protomatter_protomatter_get_brightness);
|
||||
|
||||
STATIC mp_obj_t protomatter_protomatter_set_brightness(mp_obj_t self_in, mp_obj_t value_in) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
check_for_deinit(self);
|
||||
mp_float_t brightness = mp_obj_get_float(value_in);
|
||||
if (brightness < 0.0f || brightness > 1.0f) {
|
||||
mp_raise_ValueError(translate("Brightness must be 0-1.0"));
|
||||
}
|
||||
common_hal_protomatter_protomatter_set_paused(self_in, brightness <= 0);
|
||||
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(protomatter_protomatter_set_brightness_obj, protomatter_protomatter_set_brightness);
|
||||
|
||||
const mp_obj_property_t protomatter_protomatter_brightness_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&protomatter_protomatter_get_brightness_obj,
|
||||
(mp_obj_t)&protomatter_protomatter_set_brightness_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. method:: refresh()
|
||||
//|
|
||||
//| Transmits the color data in the buffer to the pixels so that
|
||||
//| they are shown.
|
||||
//|
|
||||
STATIC mp_obj_t protomatter_protomatter_refresh(mp_obj_t self_in) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
check_for_deinit(self);
|
||||
common_hal_protomatter_protomatter_refresh(self);
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(protomatter_protomatter_refresh_obj, protomatter_protomatter_refresh);
|
||||
|
||||
STATIC const mp_rom_map_elem_t protomatter_protomatter_locals_dict_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&protomatter_protomatter_deinit_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_brightness), MP_ROM_PTR(&protomatter_protomatter_brightness_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_refresh), MP_ROM_PTR(&protomatter_protomatter_refresh_obj) },
|
||||
};
|
||||
STATIC MP_DEFINE_CONST_DICT(protomatter_protomatter_locals_dict, protomatter_protomatter_locals_dict_table);
|
||||
|
||||
STATIC void protomatter_protomatter_get_bufinfo(mp_obj_t self_in, mp_buffer_info_t *bufinfo) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
check_for_deinit(self);
|
||||
|
||||
*bufinfo = self->bufinfo;
|
||||
}
|
||||
|
||||
// These version exists so that the prototype matches the protocol,
|
||||
// avoiding a type cast that can hide errors
|
||||
STATIC void protomatter_protomatter_swapbuffers(mp_obj_t self_in) {
|
||||
common_hal_protomatter_protomatter_refresh(self_in);
|
||||
}
|
||||
|
||||
STATIC void protomatter_protomatter_deinit_proto(mp_obj_t self_in) {
|
||||
common_hal_protomatter_protomatter_deinit(self_in);
|
||||
}
|
||||
|
||||
STATIC float protomatter_protomatter_get_brightness_proto(mp_obj_t self_in) {
|
||||
return common_hal_protomatter_protomatter_get_paused(self_in) ? 0.0f : 1.0f;
|
||||
}
|
||||
|
||||
STATIC bool protomatter_protomatter_set_brightness_proto(mp_obj_t self_in, mp_float_t value) {
|
||||
common_hal_protomatter_protomatter_set_paused(self_in, value <= 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
STATIC const framebuffer_p_t protomatter_protomatter_proto = {
|
||||
MP_PROTO_IMPLEMENT(MP_QSTR_protocol_framebuffer)
|
||||
.get_bufinfo = protomatter_protomatter_get_bufinfo,
|
||||
.set_brightness = protomatter_protomatter_set_brightness_proto,
|
||||
.get_brightness = protomatter_protomatter_get_brightness_proto,
|
||||
.swapbuffers = protomatter_protomatter_swapbuffers,
|
||||
.deinit = protomatter_protomatter_deinit_proto,
|
||||
};
|
||||
|
||||
STATIC mp_int_t protomatter_protomatter_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_uint_t flags) {
|
||||
protomatter_protomatter_obj_t *self = (protomatter_protomatter_obj_t*)self_in;
|
||||
// a readonly framebuffer would be unusual but not impossible
|
||||
if ((flags & MP_BUFFER_WRITE) && !(self->bufinfo.typecode & MP_OBJ_ARRAY_TYPECODE_FLAG_RW)) {
|
||||
return 1;
|
||||
}
|
||||
*bufinfo = self->bufinfo;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const mp_obj_type_t protomatter_Protomatter_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_Protomatter,
|
||||
.buffer_p = { .get_buffer = protomatter_protomatter_get_buffer, },
|
||||
.make_new = protomatter_protomatter_make_new,
|
||||
.protocol = &protomatter_protomatter_proto,
|
||||
.locals_dict = (mp_obj_dict_t*)&protomatter_protomatter_locals_dict,
|
||||
};
|
59
shared-bindings/_protomatter/Protomatter.h
Normal file
59
shared-bindings/_protomatter/Protomatter.h
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PROTOMATTER_PROTOMATTER_H
|
||||
#define MICROPY_INCLUDED_SHARED_BINDINGS_PROTOMATTER_PROTOMATTER_H
|
||||
|
||||
#include "shared-module/_protomatter/Protomatter.h"
|
||||
#include "lib/protomatter/core.h"
|
||||
|
||||
extern const mp_obj_type_t protomatter_Protomatter_type;
|
||||
typedef struct {
|
||||
mp_obj_base_t base;
|
||||
mp_obj_t framebuffer;
|
||||
mp_buffer_info_t bufinfo;
|
||||
Protomatter_core core;
|
||||
void *timer;
|
||||
uint16_t bufsize, width;
|
||||
uint8_t rgb_pins[30];
|
||||
uint8_t addr_pins[10];
|
||||
uint8_t clock_pin, latch_pin, oe_pin;
|
||||
uint8_t rgb_count, addr_count;
|
||||
uint8_t bit_depth;
|
||||
bool core_is_initialized;
|
||||
bool paused;
|
||||
bool doublebuffer;
|
||||
} protomatter_protomatter_obj_t;
|
||||
|
||||
void common_hal_protomatter_protomatter_construct(protomatter_protomatter_obj_t* self, int width, int bit_depth, uint8_t rgb_count, uint8_t* rgb_pins, uint8_t addr_count, uint8_t* addr_pins, uint8_t clock_pin, uint8_t latch_pin, uint8_t oe_pin, bool doublebuffer, mp_obj_t framebuffer, void* timer);
|
||||
void common_hal_protomatter_protomatter_deinit(protomatter_protomatter_obj_t*);
|
||||
void protomatter_protomatter_collect_ptrs(protomatter_protomatter_obj_t*);
|
||||
void common_hal_protomatter_protomatter_reconstruct(protomatter_protomatter_obj_t* self, mp_obj_t framebuffer);
|
||||
void common_hal_protomatter_protomatter_set_paused(protomatter_protomatter_obj_t* self, bool paused);
|
||||
bool common_hal_protomatter_protomatter_get_paused(protomatter_protomatter_obj_t* self);
|
||||
void common_hal_protomatter_protomatter_refresh(protomatter_protomatter_obj_t* self);
|
||||
|
||||
#endif
|
55
shared-bindings/_protomatter/__init__.c
Normal file
55
shared-bindings/_protomatter/__init__.c
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* This file is part of the MicroPython project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "py/runtime.h"
|
||||
|
||||
#include "shared-bindings/_protomatter/Protomatter.h"
|
||||
|
||||
//| :mod:`_protomatter` --- Low-level routines for bitbanged LED matrices
|
||||
//| =====================================================================
|
||||
//|
|
||||
//| .. module:: _protomatter
|
||||
//| :synopsis: Low-level routines for bitbanged LED matrices
|
||||
//|
|
||||
//| .. toctree::
|
||||
//| :maxdepth: 3
|
||||
//|
|
||||
//| Protomatter
|
||||
|
||||
STATIC const mp_rom_map_elem_t protomatter_module_globals_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR__protomatter) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_Protomatter), MP_ROM_PTR(&protomatter_Protomatter_type) },
|
||||
};
|
||||
|
||||
STATIC MP_DEFINE_CONST_DICT(protomatter_module_globals, protomatter_module_globals_table);
|
||||
|
||||
const mp_obj_module_t protomatter_module = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t*)&protomatter_module_globals,
|
||||
};
|
@ -178,9 +178,28 @@ STATIC mp_obj_t bitmap_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t val
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
//| .. method:: fill(value)
|
||||
//|
|
||||
//| Fills the bitmap with the supplied palette index value.
|
||||
//|
|
||||
STATIC mp_obj_t displayio_bitmap_obj_fill(mp_obj_t self_in, mp_obj_t value_obj) {
|
||||
displayio_bitmap_t *self = MP_OBJ_TO_PTR(self_in);
|
||||
|
||||
mp_int_t value = mp_obj_get_int(value_obj);
|
||||
if (value >= 1 << common_hal_displayio_bitmap_get_bits_per_value(self)) {
|
||||
mp_raise_ValueError(translate("pixel value requires too many bits"));
|
||||
}
|
||||
common_hal_displayio_bitmap_fill(self, value);
|
||||
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_bitmap_fill_obj, displayio_bitmap_obj_fill);
|
||||
|
||||
STATIC const mp_rom_map_elem_t displayio_bitmap_locals_dict_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR_height), MP_ROM_PTR(&displayio_bitmap_height_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_width), MP_ROM_PTR(&displayio_bitmap_width_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_fill), MP_ROM_PTR(&displayio_bitmap_fill_obj) },
|
||||
|
||||
};
|
||||
STATIC MP_DEFINE_CONST_DICT(displayio_bitmap_locals_dict, displayio_bitmap_locals_dict_table);
|
||||
|
||||
|
@ -41,5 +41,6 @@ uint16_t common_hal_displayio_bitmap_get_width(displayio_bitmap_t *self);
|
||||
uint32_t common_hal_displayio_bitmap_get_bits_per_value(displayio_bitmap_t *self);
|
||||
void common_hal_displayio_bitmap_set_pixel(displayio_bitmap_t *bitmap, int16_t x, int16_t y, uint32_t value);
|
||||
uint32_t common_hal_displayio_bitmap_get_pixel(displayio_bitmap_t *bitmap, int16_t x, int16_t y);
|
||||
void common_hal_displayio_bitmap_fill(displayio_bitmap_t *bitmap, uint32_t value);
|
||||
|
||||
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_BITMAP_H
|
||||
|
@ -92,6 +92,7 @@
|
||||
//| :param bool pixels_in_byte_share_row: True when pixels are less than a byte and a byte includes pixels from the same row of the display. When False, pixels share a column.
|
||||
//| :param int bytes_per_cell: Number of bytes per addressable memory location when color_depth < 8. When greater than one, bytes share a row or column according to pixels_in_byte_share_row.
|
||||
//| :param bool reverse_pixels_in_byte: Reverses the pixel order within each byte when color_depth < 8. Does not apply across multiple bytes even if there is more than one byte per cell (bytes_per_cell.)
|
||||
//| :param bool reverse_bytes_in_word: Reverses the order of bytes within a word when color_depth == 16
|
||||
//| :param int set_column_command: Command used to set the start and end columns to update
|
||||
//| :param int set_row_command: Command used so set the start and end rows to update
|
||||
//| :param int write_ram_command: Command used to write pixels values into the update region. Ignored if data_as_commands is set.
|
||||
@ -107,7 +108,7 @@
|
||||
//| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on.
|
||||
//|
|
||||
STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
enum { ARG_display_bus, ARG_init_sequence, ARG_width, ARG_height, ARG_colstart, ARG_rowstart, ARG_rotation, ARG_color_depth, ARG_grayscale, ARG_pixels_in_byte_share_row, ARG_bytes_per_cell, ARG_reverse_pixels_in_byte, ARG_set_column_command, ARG_set_row_command, ARG_write_ram_command, ARG_set_vertical_scroll, ARG_backlight_pin, ARG_brightness_command, ARG_brightness, ARG_auto_brightness, ARG_single_byte_bounds, ARG_data_as_commands, ARG_auto_refresh, ARG_native_frames_per_second, ARG_backlight_on_high };
|
||||
enum { ARG_display_bus, ARG_init_sequence, ARG_width, ARG_height, ARG_colstart, ARG_rowstart, ARG_rotation, ARG_color_depth, ARG_grayscale, ARG_pixels_in_byte_share_row, ARG_bytes_per_cell, ARG_reverse_pixels_in_byte, ARG_reverse_bytes_in_word, ARG_set_column_command, ARG_set_row_command, ARG_write_ram_command, ARG_set_vertical_scroll, ARG_backlight_pin, ARG_brightness_command, ARG_brightness, ARG_auto_brightness, ARG_single_byte_bounds, ARG_data_as_commands, ARG_auto_refresh, ARG_native_frames_per_second, ARG_backlight_on_high };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
{ MP_QSTR_display_bus, MP_ARG_REQUIRED | MP_ARG_OBJ },
|
||||
{ MP_QSTR_init_sequence, MP_ARG_REQUIRED | MP_ARG_OBJ },
|
||||
@ -121,6 +122,7 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
||||
{ MP_QSTR_pixels_in_byte_share_row, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
||||
{ MP_QSTR_bytes_per_cell, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 1} },
|
||||
{ MP_QSTR_reverse_pixels_in_byte, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = false} },
|
||||
{ MP_QSTR_reverse_bytes_in_word, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
||||
{ MP_QSTR_set_column_command, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x2a} },
|
||||
{ MP_QSTR_set_row_command, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x2b} },
|
||||
{ MP_QSTR_write_ram_command, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x2c} },
|
||||
@ -152,23 +154,17 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
||||
mp_raise_ValueError(translate("Display rotation must be in 90 degree increments"));
|
||||
}
|
||||
|
||||
displayio_display_obj_t *self = NULL;
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].display.base.type == NULL ||
|
||||
displays[i].display.base.type == &mp_type_NoneType) {
|
||||
self = &displays[i].display;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (self == NULL) {
|
||||
mp_raise_RuntimeError(translate("Too many displays"));
|
||||
}
|
||||
primary_display_t *disp = allocate_display_or_raise();
|
||||
displayio_display_obj_t *self = &disp->display;;
|
||||
self->base.type = &displayio_display_type;
|
||||
common_hal_displayio_display_construct(
|
||||
self,
|
||||
display_bus, args[ARG_width].u_int, args[ARG_height].u_int, args[ARG_colstart].u_int, args[ARG_rowstart].u_int, rotation,
|
||||
args[ARG_color_depth].u_int, args[ARG_grayscale].u_bool,
|
||||
args[ARG_pixels_in_byte_share_row].u_bool, args[ARG_bytes_per_cell].u_bool, args[ARG_reverse_pixels_in_byte].u_bool,
|
||||
args[ARG_pixels_in_byte_share_row].u_bool,
|
||||
args[ARG_bytes_per_cell].u_bool,
|
||||
args[ARG_reverse_pixels_in_byte].u_bool,
|
||||
args[ARG_reverse_bytes_in_word].u_bool,
|
||||
args[ARG_set_column_command].u_int, args[ARG_set_row_command].u_int,
|
||||
args[ARG_write_ram_command].u_int,
|
||||
args[ARG_set_vertical_scroll].u_int,
|
||||
|
@ -41,7 +41,7 @@ extern const mp_obj_type_t displayio_display_type;
|
||||
void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
mp_obj_t bus, uint16_t width, uint16_t height,
|
||||
int16_t colstart, int16_t rowstart, uint16_t rotation, uint16_t color_depth, bool grayscale,
|
||||
bool pixels_in_byte_share_row, uint8_t bytes_per_cell, bool reverse_pixels_in_byte,
|
||||
bool pixels_in_byte_share_row, uint8_t bytes_per_cell, bool reverse_pixels_in_byte, bool reverse_bytes_in_word,
|
||||
uint8_t set_column_command, uint8_t set_row_command, uint8_t write_ram_command, uint8_t set_vertical_scroll,
|
||||
uint8_t* init_sequence, uint16_t init_sequence_len, const mcu_pin_obj_t* backlight_pin, uint16_t brightness_command,
|
||||
mp_float_t brightness, bool auto_brightness,
|
||||
|
@ -136,17 +136,8 @@ STATIC mp_obj_t displayio_epaperdisplay_make_new(const mp_obj_type_t *type, size
|
||||
mp_raise_ValueError(translate("Display rotation must be in 90 degree increments"));
|
||||
}
|
||||
|
||||
displayio_epaperdisplay_obj_t *self = NULL;
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].display.base.type == NULL ||
|
||||
displays[i].display.base.type == &mp_type_NoneType) {
|
||||
self = &displays[i].epaper_display;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (self == NULL) {
|
||||
mp_raise_RuntimeError(translate("Too many displays"));
|
||||
}
|
||||
primary_display_t *disp = allocate_display_or_raise();
|
||||
displayio_epaperdisplay_obj_t *self = &disp->epaper_display;;
|
||||
|
||||
mp_float_t refresh_time = mp_obj_get_float(args[ARG_refresh_time].u_obj);
|
||||
mp_float_t seconds_per_frame = mp_obj_get_float(args[ARG_seconds_per_frame].u_obj);
|
||||
|
@ -82,19 +82,8 @@ STATIC mp_obj_t displayio_fourwire_make_new(const mp_obj_type_t *type, size_t n_
|
||||
mcu_pin_obj_t *chip_select = validate_obj_is_free_pin(args[ARG_chip_select].u_obj);
|
||||
mcu_pin_obj_t *reset = validate_obj_is_free_pin_or_none(args[ARG_reset].u_obj);
|
||||
|
||||
displayio_fourwire_obj_t* self = NULL;
|
||||
mp_obj_t spi = args[ARG_spi_bus].u_obj;
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].fourwire_bus.base.type == NULL ||
|
||||
displays[i].fourwire_bus.base.type == &mp_type_NoneType) {
|
||||
self = &displays[i].fourwire_bus;
|
||||
self->base.type = &displayio_fourwire_type;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (self == NULL) {
|
||||
mp_raise_RuntimeError(translate("Too many display busses"));
|
||||
}
|
||||
displayio_fourwire_obj_t* self = &allocate_display_bus_or_raise()->fourwire_bus;
|
||||
|
||||
uint8_t polarity = args[ARG_polarity].u_int;
|
||||
if (polarity != 0 && polarity != 1) {
|
||||
|
@ -71,19 +71,8 @@ STATIC mp_obj_t displayio_i2cdisplay_make_new(const mp_obj_type_t *type, size_t
|
||||
|
||||
mcu_pin_obj_t *reset = validate_obj_is_free_pin_or_none(args[ARG_reset].u_obj);
|
||||
|
||||
displayio_i2cdisplay_obj_t* self = NULL;
|
||||
mp_obj_t i2c = args[ARG_i2c_bus].u_obj;
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].i2cdisplay_bus.base.type == NULL ||
|
||||
displays[i].i2cdisplay_bus.base.type == &mp_type_NoneType) {
|
||||
self = &displays[i].i2cdisplay_bus;
|
||||
self->base.type = &displayio_i2cdisplay_type;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (self == NULL) {
|
||||
mp_raise_RuntimeError(translate("Too many display busses"));
|
||||
}
|
||||
displayio_i2cdisplay_obj_t* self = &allocate_display_bus_or_raise()->i2cdisplay_bus;
|
||||
|
||||
common_hal_displayio_i2cdisplay_construct(self,
|
||||
MP_OBJ_TO_PTR(i2c), args[ARG_device_address].u_int, reset);
|
||||
|
@ -83,18 +83,7 @@ STATIC mp_obj_t displayio_parallelbus_make_new(const mp_obj_type_t *type, size_t
|
||||
mcu_pin_obj_t *read = validate_obj_is_free_pin(args[ARG_read].u_obj);
|
||||
mcu_pin_obj_t *reset = validate_obj_is_free_pin(args[ARG_reset].u_obj);
|
||||
|
||||
displayio_parallelbus_obj_t* self = NULL;
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].parallel_bus.base.type== NULL ||
|
||||
displays[i].parallel_bus.base.type == &mp_type_NoneType) {
|
||||
self = &displays[i].parallel_bus;
|
||||
self->base.type = &displayio_parallelbus_type;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (self == NULL) {
|
||||
mp_raise_RuntimeError(translate("Too many display busses"));
|
||||
}
|
||||
displayio_parallelbus_obj_t* self = &allocate_display_bus_or_raise()->parallel_bus;
|
||||
|
||||
common_hal_displayio_parallelbus_construct(self, data0, command, chip_select, write, read, reset);
|
||||
return self;
|
||||
|
428
shared-bindings/framebufferio/FramebufferDisplay.c
Normal file
428
shared-bindings/framebufferio/FramebufferDisplay.c
Normal file
@ -0,0 +1,428 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2018 Scott Shawcroft for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "shared-bindings/framebufferio/FramebufferDisplay.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "lib/utils/context_manager_helpers.h"
|
||||
#include "py/binary.h"
|
||||
#include "py/objproperty.h"
|
||||
#include "py/objtype.h"
|
||||
#include "py/runtime.h"
|
||||
#include "shared-bindings/displayio/Group.h"
|
||||
#include "shared-bindings/microcontroller/Pin.h"
|
||||
#include "shared-bindings/util.h"
|
||||
#include "shared-module/displayio/__init__.h"
|
||||
#include "supervisor/shared/translate.h"
|
||||
|
||||
//| .. currentmodule:: framebufferio
|
||||
//|
|
||||
//| :class:`FramebufferDisplay` -- Manage updating a display with framebuffer in RAM
|
||||
//| ================================================================================
|
||||
//|
|
||||
//| This initializes a display and connects it into CircuitPython. Unlike other
|
||||
//| objects in CircuitPython, Display objects live until `displayio.release_displays()`
|
||||
//| is called. This is done so that CircuitPython can use the display itself.
|
||||
//|
|
||||
//| .. class:: FramebufferDisplay(framebuffer, *, width, height, colstart=0, rowstart=0, rotation=0, color_depth=16, grayscale=False, pixels_in_byte_share_row=True, bytes_per_cell=1, reverse_pixels_in_byte=False, backlight_pin=None, brightness=1.0, auto_brightness=False, auto_refresh=True, native_frames_per_second=60)
|
||||
//|
|
||||
//| Create a Display object with the given framebuffer (a buffer, array, ulab.array, etc)
|
||||
//|
|
||||
//| :param framebuffer: The framebuffer that the display is connected to
|
||||
//| :type framebuffer: any core object implementing the framebuffer protocol
|
||||
//| :param int width: Width in pixels
|
||||
//| :param int height: Height in pixels
|
||||
//| :param int rotation: The rotation of the display in degrees clockwise. Must be in 90 degree increments (0, 90, 180, 270)
|
||||
//| :param int color_depth: The number of bits of color per pixel transmitted. (Some displays
|
||||
//| support 18 bit but 16 is easier to transmit. The last bit is extrapolated.)
|
||||
//| :param int bytes_per_cell: Number of bytes per addressable memory location when color_depth < 8. When greater than one, bytes share a row or column according to pixels_in_byte_share_row.
|
||||
//| :param microcontroller.Pin backlight_pin: Pin connected to the display's backlight
|
||||
//| :param bool brightness: Initial display brightness. This value is ignored if auto_brightness is True.
|
||||
//| :param bool auto_brightness: If True, brightness is controlled via an ambient light sensor or other mechanism.
|
||||
//| :param bool auto_refresh: Automatically refresh the screen
|
||||
//| :param int native_frames_per_second: Number of display refreshes per second
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
enum { ARG_framebuffer, ARG_width, ARG_height, ARG_rotation, ARG_color_depth, ARG_bytes_per_cell, ARG_auto_refresh, ARG_native_frames_per_second, NUM_ARGS };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
{ MP_QSTR_framebuffer, MP_ARG_REQUIRED | MP_ARG_OBJ },
|
||||
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_KW_ONLY | MP_ARG_REQUIRED, },
|
||||
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_KW_ONLY | MP_ARG_REQUIRED, },
|
||||
{ MP_QSTR_rotation, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0} },
|
||||
{ MP_QSTR_color_depth, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 16} },
|
||||
{ MP_QSTR_bytes_per_cell, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 1} },
|
||||
{ MP_QSTR_auto_refresh, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
||||
{ MP_QSTR_native_frames_per_second, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 60} },
|
||||
};
|
||||
MP_STATIC_ASSERT( MP_ARRAY_SIZE(allowed_args) == NUM_ARGS );
|
||||
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
||||
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
||||
|
||||
mp_obj_t framebuffer = args[ARG_framebuffer].u_obj;
|
||||
|
||||
mp_int_t rotation = args[ARG_rotation].u_int;
|
||||
if (rotation % 90 != 0) {
|
||||
mp_raise_ValueError(translate("Display rotation must be in 90 degree increments"));
|
||||
}
|
||||
|
||||
primary_display_t *disp = allocate_display_or_raise();
|
||||
framebufferio_framebufferdisplay_obj_t *self = &disp->framebuffer_display;
|
||||
self->base.type = &framebufferio_framebufferdisplay_type;
|
||||
common_hal_framebufferio_framebufferdisplay_construct(
|
||||
self,
|
||||
framebuffer,
|
||||
args[ARG_width].u_int, args[ARG_height].u_int,
|
||||
rotation,
|
||||
args[ARG_color_depth].u_int,
|
||||
args[ARG_bytes_per_cell].u_int,
|
||||
args[ARG_auto_refresh].u_bool,
|
||||
args[ARG_native_frames_per_second].u_int
|
||||
);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
// Helper to ensure we have the native super class instead of a subclass.
|
||||
static framebufferio_framebufferdisplay_obj_t* native_display(mp_obj_t display_obj) {
|
||||
mp_obj_t native_display = mp_instance_cast_to_native_base(display_obj, &framebufferio_framebufferdisplay_type);
|
||||
mp_obj_assert_native_inited(native_display);
|
||||
return MP_OBJ_TO_PTR(native_display);
|
||||
}
|
||||
|
||||
//| .. method:: show(group)
|
||||
//|
|
||||
//| Switches to displaying the given group of layers. When group is None, the default
|
||||
//| CircuitPython terminal will be shown.
|
||||
//|
|
||||
//| :param Group group: The group to show.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_show(mp_obj_t self_in, mp_obj_t group_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
displayio_group_t* group = NULL;
|
||||
if (group_in != mp_const_none) {
|
||||
group = MP_OBJ_TO_PTR(native_group(group_in));
|
||||
}
|
||||
|
||||
bool ok = common_hal_framebufferio_framebufferdisplay_show(self, group);
|
||||
if (!ok) {
|
||||
mp_raise_ValueError(translate("Group already used"));
|
||||
}
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_show_obj, framebufferio_framebufferdisplay_obj_show);
|
||||
|
||||
//| .. method:: refresh(*, target_frames_per_second=60, minimum_frames_per_second=1)
|
||||
//|
|
||||
//| When auto refresh is off, waits for the target frame rate and then refreshes the display,
|
||||
//| returning True. If the call has taken too long since the last refresh call for the given
|
||||
//| target frame rate, then the refresh returns False immediately without updating the screen to
|
||||
//| hopefully help getting caught up.
|
||||
//|
|
||||
//| If the time since the last successful refresh is below the minimum frame rate, then an
|
||||
//| exception will be raised. Set minimum_frames_per_second to 0 to disable.
|
||||
//|
|
||||
//| When auto refresh is on, updates the display immediately. (The display will also update
|
||||
//| without calls to this.)
|
||||
//|
|
||||
//| :param int target_frames_per_second: How many times a second `refresh` should be called and the screen updated.
|
||||
//| :param int minimum_frames_per_second: The minimum number of times the screen should be updated per second.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_refresh(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
enum { ARG_target_frames_per_second, ARG_minimum_frames_per_second };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
{ MP_QSTR_target_frames_per_second, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 60} },
|
||||
{ MP_QSTR_minimum_frames_per_second, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 1} },
|
||||
};
|
||||
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
||||
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
||||
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(pos_args[0]);
|
||||
uint32_t maximum_ms_per_real_frame = 0xffffffff;
|
||||
mp_int_t minimum_frames_per_second = args[ARG_minimum_frames_per_second].u_int;
|
||||
if (minimum_frames_per_second > 0) {
|
||||
maximum_ms_per_real_frame = 1000 / minimum_frames_per_second;
|
||||
}
|
||||
return mp_obj_new_bool(common_hal_framebufferio_framebufferdisplay_refresh(self, 1000 / args[ARG_target_frames_per_second].u_int, maximum_ms_per_real_frame));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_KW(framebufferio_framebufferdisplay_refresh_obj, 1, framebufferio_framebufferdisplay_obj_refresh);
|
||||
|
||||
//| .. attribute:: auto_refresh
|
||||
//|
|
||||
//| True when the display is refreshed automatically.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_auto_refresh(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return mp_obj_new_bool(common_hal_framebufferio_framebufferdisplay_get_auto_refresh(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_auto_refresh_obj, framebufferio_framebufferdisplay_obj_get_auto_refresh);
|
||||
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_auto_refresh(mp_obj_t self_in, mp_obj_t auto_refresh) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
|
||||
common_hal_framebufferio_framebufferdisplay_set_auto_refresh(self, mp_obj_is_true(auto_refresh));
|
||||
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_auto_refresh_obj, framebufferio_framebufferdisplay_obj_set_auto_refresh);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_auto_refresh_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_auto_refresh_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_auto_refresh_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: brightness
|
||||
//|
|
||||
//| The brightness of the display as a float. 0.0 is off and 1.0 is full brightness. When
|
||||
//| `auto_brightness` is True, the value of `brightness` will change automatically.
|
||||
//| If `brightness` is set, `auto_brightness` will be disabled and will be set to False.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_brightness(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
mp_float_t brightness = common_hal_framebufferio_framebufferdisplay_get_brightness(self);
|
||||
if (brightness < 0) {
|
||||
mp_raise_RuntimeError(translate("Brightness not adjustable"));
|
||||
}
|
||||
return mp_obj_new_float(brightness);
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_brightness_obj, framebufferio_framebufferdisplay_obj_get_brightness);
|
||||
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_brightness(mp_obj_t self_in, mp_obj_t brightness_obj) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
common_hal_framebufferio_framebufferdisplay_set_auto_brightness(self, false);
|
||||
mp_float_t brightness = mp_obj_get_float(brightness_obj);
|
||||
if (brightness < 0.0f || brightness > 1.0f) {
|
||||
mp_raise_ValueError(translate("Brightness must be 0-1.0"));
|
||||
}
|
||||
bool ok = common_hal_framebufferio_framebufferdisplay_set_brightness(self, brightness);
|
||||
if (!ok) {
|
||||
mp_raise_RuntimeError(translate("Brightness not adjustable"));
|
||||
}
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_brightness_obj, framebufferio_framebufferdisplay_obj_set_brightness);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_brightness_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_brightness_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: auto_brightness
|
||||
//|
|
||||
//| True when the display brightness is adjusted automatically, based on an ambient
|
||||
//| light sensor or other method. Note that some displays may have this set to True by default,
|
||||
//| but not actually implement automatic brightness adjustment. `auto_brightness` is set to False
|
||||
//| if `brightness` is set manually.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_auto_brightness(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return mp_obj_new_bool(common_hal_framebufferio_framebufferdisplay_get_auto_brightness(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_auto_brightness_obj, framebufferio_framebufferdisplay_obj_get_auto_brightness);
|
||||
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_auto_brightness(mp_obj_t self_in, mp_obj_t auto_brightness) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
|
||||
bool ok = common_hal_framebufferio_framebufferdisplay_set_auto_brightness(self, mp_obj_is_true(auto_brightness));
|
||||
if (!ok) {
|
||||
mp_raise_RuntimeError(translate("Brightness not adjustable"));
|
||||
}
|
||||
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_auto_brightness_obj, framebufferio_framebufferdisplay_obj_set_auto_brightness);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_auto_brightness_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_auto_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_auto_brightness_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: width
|
||||
//|
|
||||
//| Gets the width of the framebuffer
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_width(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_framebufferio_framebufferdisplay_get_width(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_width_obj, framebufferio_framebufferdisplay_obj_get_width);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_width_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_width_obj,
|
||||
(mp_obj_t)&mp_const_none_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: height
|
||||
//|
|
||||
//| Gets the height of the framebuffer
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_height(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_framebufferio_framebufferdisplay_get_height(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_height_obj, framebufferio_framebufferdisplay_obj_get_height);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_height_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_height_obj,
|
||||
(mp_obj_t)&mp_const_none_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: rotation
|
||||
//|
|
||||
//| The rotation of the display as an int in degrees.
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_rotation(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_framebufferio_framebufferdisplay_get_rotation(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_rotation_obj, framebufferio_framebufferdisplay_obj_get_rotation);
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_rotation(mp_obj_t self_in, mp_obj_t value) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
common_hal_framebufferio_framebufferdisplay_set_rotation(self, mp_obj_get_int(value));
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_rotation_obj, framebufferio_framebufferdisplay_obj_set_rotation);
|
||||
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferdisplay_rotation_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_rotation_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_rotation_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| .. attribute:: framebuffer
|
||||
//|
|
||||
//| The framebuffer being used by the display
|
||||
//|
|
||||
//|
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_framebuffer(mp_obj_t self_in) {
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(self_in);
|
||||
return common_hal_framebufferio_framebufferdisplay_get_framebuffer(self);
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_framebuffer_obj, framebufferio_framebufferdisplay_obj_get_framebuffer);
|
||||
|
||||
const mp_obj_property_t framebufferio_framebufferframebuffer_obj = {
|
||||
.base.type = &mp_type_property,
|
||||
.proxy = {(mp_obj_t)&framebufferio_framebufferdisplay_get_framebuffer_obj,
|
||||
(mp_obj_t)&mp_const_none_obj,
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
|
||||
//| .. method:: fill_row(y, buffer)
|
||||
//|
|
||||
//| Extract the pixels from a single row
|
||||
//|
|
||||
//| :param int y: The top edge of the area
|
||||
//| :param bytearray buffer: The buffer in which to place the pixel data
|
||||
STATIC mp_obj_t framebufferio_framebufferdisplay_obj_fill_row(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
enum { ARG_y, ARG_buffer };
|
||||
static const mp_arg_t allowed_args[] = {
|
||||
{ MP_QSTR_y, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = -1} },
|
||||
{ MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_REQUIRED, {} },
|
||||
};
|
||||
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
||||
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
||||
framebufferio_framebufferdisplay_obj_t *self = native_display(pos_args[0]);
|
||||
mp_int_t y = args[ARG_y].u_int;
|
||||
mp_obj_t *result = args[ARG_buffer].u_obj;
|
||||
|
||||
mp_buffer_info_t bufinfo;
|
||||
mp_get_buffer_raise(result, &bufinfo, MP_BUFFER_WRITE);
|
||||
|
||||
if (bufinfo.typecode != BYTEARRAY_TYPECODE) {
|
||||
mp_raise_ValueError(translate("Buffer is not a bytearray."));
|
||||
}
|
||||
if (self->core.colorspace.depth != 16) {
|
||||
mp_raise_ValueError(translate("Display must have a 16 bit colorspace."));
|
||||
}
|
||||
|
||||
displayio_area_t area = {
|
||||
.x1 = 0,
|
||||
.y1 = y,
|
||||
.x2 = self->core.width,
|
||||
.y2 = y + 1
|
||||
};
|
||||
uint8_t pixels_per_word = (sizeof(uint32_t) * 8) / self->core.colorspace.depth;
|
||||
uint16_t buffer_size = self->core.width / pixels_per_word;
|
||||
uint16_t pixels_per_buffer = displayio_area_size(&area);
|
||||
if (pixels_per_buffer % pixels_per_word) {
|
||||
buffer_size += 1;
|
||||
}
|
||||
|
||||
uint32_t *result_buffer = bufinfo.buf;
|
||||
size_t result_buffer_size = bufinfo.len;
|
||||
|
||||
if (result_buffer_size >= (buffer_size * 4)) {
|
||||
volatile uint32_t mask_length = (pixels_per_buffer / 32) + 1;
|
||||
uint32_t mask[mask_length];
|
||||
|
||||
for (uint16_t k = 0; k < mask_length; k++) {
|
||||
mask[k] = 0x00000000;
|
||||
}
|
||||
|
||||
displayio_display_core_fill_area(&self->core, &area, mask, result_buffer);
|
||||
return result;
|
||||
} else {
|
||||
mp_raise_ValueError(translate("Buffer is too small"));
|
||||
}
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_KW(framebufferio_framebufferdisplay_fill_row_obj, 1, framebufferio_framebufferdisplay_obj_fill_row);
|
||||
|
||||
STATIC const mp_rom_map_elem_t framebufferio_framebufferdisplay_locals_dict_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR_show), MP_ROM_PTR(&framebufferio_framebufferdisplay_show_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_refresh), MP_ROM_PTR(&framebufferio_framebufferdisplay_refresh_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_fill_row), MP_ROM_PTR(&framebufferio_framebufferdisplay_fill_row_obj) },
|
||||
|
||||
{ MP_ROM_QSTR(MP_QSTR_auto_refresh), MP_ROM_PTR(&framebufferio_framebufferdisplay_auto_refresh_obj) },
|
||||
|
||||
{ MP_ROM_QSTR(MP_QSTR_brightness), MP_ROM_PTR(&framebufferio_framebufferdisplay_brightness_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_auto_brightness), MP_ROM_PTR(&framebufferio_framebufferdisplay_auto_brightness_obj) },
|
||||
|
||||
{ MP_ROM_QSTR(MP_QSTR_width), MP_ROM_PTR(&framebufferio_framebufferdisplay_width_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_height), MP_ROM_PTR(&framebufferio_framebufferdisplay_height_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_rotation), MP_ROM_PTR(&framebufferio_framebufferdisplay_rotation_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_framebuffer), MP_ROM_PTR(&framebufferio_framebufferframebuffer_obj) },
|
||||
};
|
||||
STATIC MP_DEFINE_CONST_DICT(framebufferio_framebufferdisplay_locals_dict, framebufferio_framebufferdisplay_locals_dict_table);
|
||||
|
||||
const mp_obj_type_t framebufferio_framebufferdisplay_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_FramebufferDisplay,
|
||||
.make_new = framebufferio_framebufferdisplay_make_new,
|
||||
.locals_dict = (mp_obj_dict_t*)&framebufferio_framebufferdisplay_locals_dict,
|
||||
};
|
69
shared-bindings/framebufferio/FramebufferDisplay.h
Normal file
69
shared-bindings/framebufferio/FramebufferDisplay.h
Normal file
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2017, 2018 Scott Shawcroft for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H
|
||||
#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H
|
||||
|
||||
#include "common-hal/microcontroller/Pin.h"
|
||||
|
||||
#include "shared-module/framebufferio/FramebufferDisplay.h"
|
||||
#include "shared-module/displayio/Group.h"
|
||||
|
||||
extern const mp_obj_type_t framebufferio_framebufferdisplay_type;
|
||||
|
||||
#define DELAY 0x80
|
||||
|
||||
#define NO_BRIGHTNESS_COMMAND 0x100
|
||||
|
||||
void common_hal_framebufferio_framebufferdisplay_construct(framebufferio_framebufferdisplay_obj_t* self,
|
||||
mp_obj_t framebuffer, uint16_t width, uint16_t height,
|
||||
uint16_t rotation, uint16_t color_depth,
|
||||
uint8_t bytes_per_cell,
|
||||
bool auto_refresh, uint16_t native_frames_per_second);
|
||||
|
||||
bool common_hal_framebufferio_framebufferdisplay_show(framebufferio_framebufferdisplay_obj_t* self,
|
||||
displayio_group_t* root_group);
|
||||
|
||||
bool common_hal_framebufferio_framebufferdisplay_refresh(framebufferio_framebufferdisplay_obj_t* self, uint32_t target_ms_per_frame, uint32_t maximum_ms_per_real_frame);
|
||||
|
||||
bool common_hal_framebufferio_framebufferdisplay_get_auto_refresh(framebufferio_framebufferdisplay_obj_t* self);
|
||||
void common_hal_framebufferio_framebufferdisplay_set_auto_refresh(framebufferio_framebufferdisplay_obj_t* self, bool auto_refresh);
|
||||
|
||||
uint16_t common_hal_framebufferio_framebufferdisplay_get_width(framebufferio_framebufferdisplay_obj_t* self);
|
||||
uint16_t common_hal_framebufferio_framebufferdisplay_get_height(framebufferio_framebufferdisplay_obj_t* self);
|
||||
uint16_t common_hal_framebufferio_framebufferdisplay_get_rotation(framebufferio_framebufferdisplay_obj_t* self);
|
||||
void common_hal_framebufferio_framebufferdisplay_set_rotation(framebufferio_framebufferdisplay_obj_t* self, int rotation);
|
||||
|
||||
bool common_hal_framebufferio_framebufferdisplay_get_auto_brightness(framebufferio_framebufferdisplay_obj_t* self);
|
||||
bool common_hal_framebufferio_framebufferdisplay_set_auto_brightness(framebufferio_framebufferdisplay_obj_t* self, bool auto_brightness);
|
||||
|
||||
mp_float_t common_hal_framebufferio_framebufferdisplay_get_brightness(framebufferio_framebufferdisplay_obj_t* self);
|
||||
bool common_hal_framebufferio_framebufferdisplay_set_brightness(framebufferio_framebufferdisplay_obj_t* self, mp_float_t brightness);
|
||||
|
||||
mp_obj_t common_hal_framebufferio_framebufferdisplay_framebuffer(framebufferio_framebufferdisplay_obj_t* self);
|
||||
|
||||
|
||||
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H
|
63
shared-bindings/framebufferio/__init__.c
Normal file
63
shared-bindings/framebufferio/__init__.c
Normal file
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* This file is part of the MicroPython project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "shared-bindings/framebufferio/__init__.h"
|
||||
#include "shared-bindings/framebufferio/FramebufferDisplay.h"
|
||||
|
||||
//| :mod:`framebufferio` --- Native framebuffer display driving
|
||||
//| =========================================================================
|
||||
//|
|
||||
//| .. module:: framebufferio
|
||||
//| :synopsis: Native helpers for driving displays
|
||||
//| :platform: SAMD51, nRF52
|
||||
//|
|
||||
//| The `framebufferio` module contains classes to manage display output
|
||||
//| including synchronizing with refresh rates and partial updating.
|
||||
//| It is used in conjunction with classes from `displayio` to actually
|
||||
//| place items on the display; and classes like `Protomatter` to actually
|
||||
//| drive the display.
|
||||
//|
|
||||
//| Libraries
|
||||
//|
|
||||
//| .. toctree::
|
||||
//| :maxdepth: 3
|
||||
//|
|
||||
//| FramebufferDisplay
|
||||
//|
|
||||
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
static const mp_rom_map_elem_t framebufferio_module_globals_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_framebufferio) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_FramebufferDisplay), MP_ROM_PTR(&framebufferio_framebufferdisplay_type) },
|
||||
};
|
||||
STATIC MP_DEFINE_CONST_DICT(framebufferio_module_globals, framebufferio_module_globals_table);
|
||||
const mp_obj_module_t framebufferio_module = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t*)&framebufferio_module_globals,
|
||||
};
|
||||
#endif
|
||||
|
0
shared-bindings/framebufferio/__init__.h
Normal file
0
shared-bindings/framebufferio/__init__.h
Normal file
@ -43,5 +43,11 @@ void assert_pin_free(const mcu_pin_obj_t* pin);
|
||||
bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin);
|
||||
void common_hal_never_reset_pin(const mcu_pin_obj_t* pin);
|
||||
void common_hal_reset_pin(const mcu_pin_obj_t* pin);
|
||||
uint8_t common_hal_mcu_pin_number(const mcu_pin_obj_t* pin);
|
||||
void common_hal_mcu_pin_claim(const mcu_pin_obj_t* pin);
|
||||
void common_hal_mcu_pin_claim_number(uint8_t pin_no);
|
||||
void common_hal_mcu_pin_reset_number(uint8_t pin_no);
|
||||
|
||||
#define COMMON_HAL_MCU_NO_PIN ((uint8_t)0xff)
|
||||
|
||||
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H
|
||||
|
@ -79,26 +79,30 @@ ulab.array -- 1- and 2- dimensional array
|
||||
.. method:: __add__()
|
||||
|
||||
Adds corresponding elements of the two arrays, or adds a number to all
|
||||
elements of the array. A number must be on the right hand side. If
|
||||
both arguments are arrays, their sizes must match.
|
||||
elements of the array. If both arguments are arrays, their sizes must match.
|
||||
|
||||
.. method:: __sub__()
|
||||
|
||||
Subtracts corresponding elements of the two arrays, or subtracts a
|
||||
number from all elements of the array. A number must be on the right
|
||||
hand side. If both arguments are arrays, their sizes must match.
|
||||
Subtracts corresponding elements of the two arrays, or adds a number to all
|
||||
elements of the array. If both arguments are arrays, their sizes must match.
|
||||
|
||||
.. method:: __mul__()
|
||||
|
||||
Multiplies corresponding elements of the two arrays, or multiplies
|
||||
all elements of the array by a number. A number must be on the right
|
||||
hand side. If both arguments are arrays, their sizes must match.
|
||||
all elements of the array by a number. If both arguments are arrays,
|
||||
their sizes must match.
|
||||
|
||||
.. method:: __div__()
|
||||
|
||||
Multiplies corresponding elements of the two arrays, or divides
|
||||
all elements of the array by a number. A number must be on the right
|
||||
hand side. If both arguments are arrays, their sizes must match.
|
||||
all elements of the array by a number. If both arguments are arrays,
|
||||
their sizes must match.
|
||||
|
||||
.. method:: __pow__()
|
||||
|
||||
Computes the power (x**y) of corresponding elements of the the two arrays,
|
||||
or one number and one array. If both arguments are arrays, their sizes
|
||||
must match.
|
||||
|
||||
.. method:: __getitem__()
|
||||
|
||||
@ -126,7 +130,7 @@ Array type codes
|
||||
|
||||
Type code for unsigned integers in the range 0 .. 255 inclusive, like the 'H' typecode of `array.array`
|
||||
|
||||
.. attribute:: uint8
|
||||
.. attribute:: uint16
|
||||
|
||||
Type code for unsigned integers in the range 0 .. 65535 inclusive, like the 'h' typecode of `array.array`
|
||||
|
||||
@ -348,6 +352,12 @@ much more efficient than expressing the same operation as a Python loop.
|
||||
|
||||
Return the total number of elements in the array, as an integer.
|
||||
|
||||
.. method:: trace(m)
|
||||
|
||||
:param m: a square matrix
|
||||
|
||||
Compute the trace of the matrix, the sum of its diagonal elements.
|
||||
|
||||
:mod:`ulab.filter` --- Filtering functions
|
||||
==========================================
|
||||
|
||||
@ -404,11 +414,11 @@ operate over the flattened array (None), rows (0), or columns (1).
|
||||
|
||||
.. method:: argmax(array, \*, axis=None)
|
||||
|
||||
Return the index of the maximum element of the 1D array, as an array with 1 element
|
||||
Return the index of the maximum element of the 1D array
|
||||
|
||||
.. method:: argmin(array, \*, axis=None)
|
||||
|
||||
Return the index of the minimum element of the 1D array, as an array with 1 element
|
||||
Return the index of the minimum element of the 1D array
|
||||
|
||||
.. method:: argsort(array, \*, axis=None)
|
||||
|
||||
@ -426,7 +436,7 @@ operate over the flattened array (None), rows (0), or columns (1).
|
||||
|
||||
.. method:: max(array, \*, axis=None)
|
||||
|
||||
Return the maximum element of the 1D array, as an array with 1 element
|
||||
Return the maximum element of the 1D array
|
||||
|
||||
.. method:: mean(array, \*, axis=None)
|
||||
|
||||
@ -434,7 +444,7 @@ operate over the flattened array (None), rows (0), or columns (1).
|
||||
|
||||
.. method:: min(array, \*, axis=None)
|
||||
|
||||
Return the minimum element of the 1D array, as an array with 1 element
|
||||
Return the minimum element of the 1D array
|
||||
|
||||
.. method:: roll(array, distance, \*, axis=None)
|
||||
|
||||
|
200
shared-module/_protomatter/Protomatter.c
Normal file
200
shared-module/_protomatter/Protomatter.c
Normal file
@ -0,0 +1,200 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "py/gc.h"
|
||||
#include "py/obj.h"
|
||||
#include "py/objarray.h"
|
||||
#include "py/objproperty.h"
|
||||
#include "py/runtime.h"
|
||||
|
||||
#include "common-hal/_protomatter/Protomatter.h"
|
||||
#include "shared-module/_protomatter/allocator.h"
|
||||
#include "shared-bindings/_protomatter/Protomatter.h"
|
||||
#include "shared-bindings/microcontroller/Pin.h"
|
||||
#include "shared-bindings/microcontroller/__init__.h"
|
||||
#include "shared-bindings/util.h"
|
||||
#include "shared-module/framebufferio/FramebufferDisplay.h"
|
||||
|
||||
extern Protomatter_core *_PM_protoPtr;
|
||||
|
||||
void common_hal_protomatter_protomatter_construct(protomatter_protomatter_obj_t *self, int width, int bit_depth, uint8_t rgb_count, uint8_t *rgb_pins, uint8_t addr_count, uint8_t *addr_pins, uint8_t clock_pin, uint8_t latch_pin, uint8_t oe_pin, bool doublebuffer, mp_obj_t framebuffer, void *timer) {
|
||||
self->width = width;
|
||||
self->bit_depth = bit_depth;
|
||||
self->rgb_count = rgb_count;
|
||||
memcpy(self->rgb_pins, rgb_pins, rgb_count);
|
||||
self->addr_count = addr_count;
|
||||
memcpy(self->addr_pins, addr_pins, addr_count);
|
||||
self->clock_pin = clock_pin;
|
||||
self->oe_pin = oe_pin;
|
||||
self->latch_pin = latch_pin;
|
||||
self->doublebuffer = doublebuffer;
|
||||
|
||||
self->timer = timer ? timer : common_hal_protomatter_timer_allocate();
|
||||
if (self->timer == NULL) {
|
||||
mp_raise_ValueError(translate("No timer available"));
|
||||
}
|
||||
|
||||
self->width = width;
|
||||
self->bufsize = 2 * width * rgb_count / 3 * (1 << addr_count);
|
||||
|
||||
common_hal_protomatter_protomatter_reconstruct(self, framebuffer);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_protomatter_reconstruct(protomatter_protomatter_obj_t* self, mp_obj_t framebuffer) {
|
||||
if (framebuffer) {
|
||||
self->framebuffer = framebuffer;
|
||||
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);
|
||||
mp_get_buffer_raise(self->framebuffer, &self->bufinfo, MP_BUFFER_READ);
|
||||
if (mp_get_buffer(self->framebuffer, &self->bufinfo, MP_BUFFER_RW)) {
|
||||
self->bufinfo.typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW;
|
||||
} else {
|
||||
self->bufinfo.typecode = 'H';
|
||||
}
|
||||
// verify that the matrix is big enough
|
||||
mp_get_index(mp_obj_get_type(self->framebuffer), self->bufinfo.len, MP_OBJ_NEW_SMALL_INT(self->bufsize-1), false);
|
||||
} else {
|
||||
_PM_FREE(self->bufinfo.buf);
|
||||
_PM_FREE(self->core.rgbPins);
|
||||
_PM_FREE(self->core.addr);
|
||||
_PM_FREE(self->core.screenData);
|
||||
|
||||
self->framebuffer = NULL;
|
||||
self->bufinfo.buf = _PM_allocator_impl(self->bufsize);
|
||||
self->bufinfo.len = self->bufsize;
|
||||
self->bufinfo.typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW;
|
||||
}
|
||||
|
||||
ProtomatterStatus stat = _PM_init(&self->core,
|
||||
self->width, self->bit_depth,
|
||||
self->rgb_count/6, self->rgb_pins,
|
||||
self->addr_count, self->addr_pins,
|
||||
self->clock_pin, self->latch_pin, self->oe_pin,
|
||||
self->doublebuffer, self->timer);
|
||||
|
||||
if (stat == PROTOMATTER_OK) {
|
||||
_PM_protoPtr = &self->core;
|
||||
common_hal_mcu_disable_interrupts();
|
||||
common_hal_protomatter_timer_enable(self->timer);
|
||||
stat = _PM_begin(&self->core);
|
||||
_PM_convert_565(&self->core, self->bufinfo.buf, self->width);
|
||||
common_hal_mcu_enable_interrupts();
|
||||
_PM_swapbuffer_maybe(&self->core);
|
||||
}
|
||||
|
||||
if (stat != PROTOMATTER_OK) {
|
||||
// XXX this deinit() actually makes crashy-crashy
|
||||
// can trigger it by sending inappropriate pins
|
||||
common_hal_protomatter_protomatter_deinit(self);
|
||||
switch (stat) {
|
||||
case PROTOMATTER_ERR_PINS:
|
||||
mp_raise_ValueError(translate("Invalid pin"));
|
||||
break;
|
||||
case PROTOMATTER_ERR_ARG:
|
||||
mp_raise_ValueError(translate("Invalid argument"));
|
||||
break;
|
||||
case PROTOMATTER_ERR_MALLOC: /// should have already been signaled as NLR
|
||||
default:
|
||||
mp_raise_msg_varg(&mp_type_RuntimeError,
|
||||
translate("Protomatter internal error #%d"), (int)stat);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
self->paused = 0;
|
||||
|
||||
}
|
||||
|
||||
STATIC void free_pin(uint8_t *pin) {
|
||||
if (*pin != COMMON_HAL_MCU_NO_PIN) {
|
||||
common_hal_mcu_pin_reset_number(*pin);
|
||||
}
|
||||
*pin = COMMON_HAL_MCU_NO_PIN;
|
||||
}
|
||||
|
||||
STATIC void free_pin_seq(uint8_t *seq, int count) {
|
||||
for (int i=0; i<count; i++) {
|
||||
free_pin(&seq[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void common_hal_protomatter_protomatter_deinit(protomatter_protomatter_obj_t* self) {
|
||||
if (self->timer) {
|
||||
common_hal_protomatter_timer_free(self->timer);
|
||||
self->timer = 0;
|
||||
}
|
||||
|
||||
if (_PM_protoPtr == &self->core) {
|
||||
_PM_protoPtr = NULL;
|
||||
}
|
||||
|
||||
free_pin_seq(self->rgb_pins, self->rgb_count);
|
||||
free_pin_seq(self->addr_pins, self->addr_count);
|
||||
free_pin(&self->clock_pin);
|
||||
free_pin(&self->latch_pin);
|
||||
free_pin(&self->oe_pin);
|
||||
|
||||
if (self->core.rgbPins) {
|
||||
_PM_free(&self->core);
|
||||
}
|
||||
memset(&self->core, 0, sizeof(self->core));
|
||||
|
||||
// If it was supervisor-allocated, it is supervisor-freed and the pointer
|
||||
// is zeroed, otherwise the pointer is just zeroed
|
||||
_PM_FREE(self->bufinfo.buf);
|
||||
self->base.type = NULL;
|
||||
|
||||
// If a framebuffer was passed in to the constructor, NULL the reference
|
||||
// here so that it will become GC'able
|
||||
self->framebuffer = NULL;
|
||||
}
|
||||
|
||||
void protomatter_protomatter_collect_ptrs(protomatter_protomatter_obj_t* self) {
|
||||
gc_collect_ptr(self->framebuffer);
|
||||
gc_collect_ptr(self->core.rgbPins);
|
||||
gc_collect_ptr(self->core.addr);
|
||||
gc_collect_ptr(self->core.screenData);
|
||||
}
|
||||
|
||||
void common_hal_protomatter_protomatter_set_paused(protomatter_protomatter_obj_t* self, bool paused) {
|
||||
if (paused && !self->paused) {
|
||||
_PM_stop(&self->core);
|
||||
} else if (!paused && self->paused) {
|
||||
_PM_resume(&self->core);
|
||||
}
|
||||
self->paused = paused;
|
||||
}
|
||||
|
||||
bool common_hal_protomatter_protomatter_get_paused(protomatter_protomatter_obj_t* self) {
|
||||
return self->paused;
|
||||
}
|
||||
|
||||
void common_hal_protomatter_protomatter_refresh(protomatter_protomatter_obj_t* self) {
|
||||
_PM_convert_565(&self->core, self->bufinfo.buf, self->width);
|
||||
_PM_swapbuffer_maybe(&self->core);
|
||||
}
|
||||
|
0
shared-module/_protomatter/Protomatter.h
Normal file
0
shared-module/_protomatter/Protomatter.h
Normal file
0
shared-module/_protomatter/__init__.c
Normal file
0
shared-module/_protomatter/__init__.c
Normal file
0
shared-module/_protomatter/__init__.h
Normal file
0
shared-module/_protomatter/__init__.h
Normal file
29
shared-module/_protomatter/allocator.h
Normal file
29
shared-module/_protomatter/allocator.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
|
||||
#define MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "py/gc.h"
|
||||
#include "py/misc.h"
|
||||
#include "supervisor/memory.h"
|
||||
|
||||
#define _PM_ALLOCATOR _PM_allocator_impl
|
||||
#define _PM_FREE(x) (_PM_free_impl((x)), (x)=NULL, (void)0)
|
||||
|
||||
static inline void *_PM_allocator_impl(size_t sz) {
|
||||
if (gc_alloc_possible()) {
|
||||
return m_malloc(sz + sizeof(void*), true);
|
||||
} else {
|
||||
supervisor_allocation *allocation = allocate_memory(align32_size(sz), false);
|
||||
return allocation ? allocation->ptr : NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void _PM_free_impl(void *ptr_in) {
|
||||
supervisor_allocation *allocation = allocation_from_ptr(ptr_in);
|
||||
|
||||
if (allocation) {
|
||||
free_memory(allocation);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -162,3 +162,24 @@ void displayio_bitmap_finish_refresh(displayio_bitmap_t *self) {
|
||||
self->dirty_area.x1 = 0;
|
||||
self->dirty_area.x2 = 0;
|
||||
}
|
||||
|
||||
void common_hal_displayio_bitmap_fill(displayio_bitmap_t *self, uint32_t value) {
|
||||
if (self->read_only) {
|
||||
mp_raise_RuntimeError(translate("Read-only object"));
|
||||
}
|
||||
// Update the dirty area.
|
||||
self->dirty_area.x1 = 0;
|
||||
self->dirty_area.x2 = self->width;
|
||||
self->dirty_area.y1 = 0;
|
||||
self->dirty_area.y2 = self->height;
|
||||
|
||||
// build the packed word
|
||||
uint32_t word = 0;
|
||||
for (uint8_t i=0; i<32 / self->bits_per_value; i++) {
|
||||
word |= (value & self->bitmask) << (32 - ((i+1)*self->bits_per_value));
|
||||
}
|
||||
// copy it in
|
||||
for (uint32_t i=0; i<self->stride * self->height; i++) {
|
||||
self->data[i] = word;
|
||||
}
|
||||
}
|
||||
|
@ -47,9 +47,7 @@ uint16_t displayio_colorconverter_compute_rgb565(uint32_t color_rgb888) {
|
||||
uint32_t r5 = (color_rgb888 >> 19);
|
||||
uint32_t g6 = (color_rgb888 >> 10) & 0x3f;
|
||||
uint32_t b5 = (color_rgb888 >> 3) & 0x1f;
|
||||
uint32_t packed = r5 << 11 | g6 << 5 | b5;
|
||||
// swap bytes
|
||||
return __builtin_bswap16(packed);
|
||||
return r5 << 11 | g6 << 5 | b5;
|
||||
}
|
||||
|
||||
uint8_t displayio_colorconverter_compute_luma(uint32_t color_rgb888) {
|
||||
@ -156,7 +154,12 @@ void displayio_colorconverter_convert(displayio_colorconverter_t *self, const _d
|
||||
}
|
||||
|
||||
if (colorspace->depth == 16) {
|
||||
output_color->pixel = displayio_colorconverter_compute_rgb565(pixel);
|
||||
uint16_t packed = displayio_colorconverter_compute_rgb565(pixel);
|
||||
if (colorspace->reverse_bytes_in_word) {
|
||||
// swap bytes
|
||||
packed = __builtin_bswap16(packed);
|
||||
}
|
||||
output_color->pixel = packed;
|
||||
output_color->opaque = true;
|
||||
return;
|
||||
} else if (colorspace->tricolor) {
|
||||
|
@ -44,7 +44,7 @@
|
||||
void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
mp_obj_t bus, uint16_t width, uint16_t height, int16_t colstart, int16_t rowstart,
|
||||
uint16_t rotation, uint16_t color_depth, bool grayscale, bool pixels_in_byte_share_row,
|
||||
uint8_t bytes_per_cell, bool reverse_pixels_in_byte, uint8_t set_column_command,
|
||||
uint8_t bytes_per_cell, bool reverse_pixels_in_byte, bool reverse_bytes_in_word, uint8_t set_column_command,
|
||||
uint8_t set_row_command, uint8_t write_ram_command, uint8_t set_vertical_scroll,
|
||||
uint8_t* init_sequence, uint16_t init_sequence_len, const mcu_pin_obj_t* backlight_pin,
|
||||
uint16_t brightness_command, mp_float_t brightness, bool auto_brightness,
|
||||
@ -58,7 +58,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
ram_height = 0xff;
|
||||
}
|
||||
displayio_display_core_construct(&self->core, bus, width, height, ram_width, ram_height, colstart, rowstart, rotation,
|
||||
color_depth, grayscale, pixels_in_byte_share_row, bytes_per_cell, reverse_pixels_in_byte);
|
||||
color_depth, grayscale, pixels_in_byte_share_row, bytes_per_cell, reverse_pixels_in_byte, reverse_bytes_in_word);
|
||||
|
||||
self->set_column_command = set_column_command;
|
||||
self->set_row_command = set_row_command;
|
||||
@ -67,6 +67,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
self->auto_brightness = auto_brightness;
|
||||
self->first_manual_refresh = !auto_refresh;
|
||||
self->data_as_commands = data_as_commands;
|
||||
self->backlight_on_high = backlight_on_high;
|
||||
|
||||
self->native_frames_per_second = native_frames_per_second;
|
||||
self->native_ms_per_frame = 1000 / native_frames_per_second;
|
||||
|
@ -56,7 +56,7 @@ void common_hal_displayio_epaperdisplay_construct(displayio_epaperdisplay_obj_t*
|
||||
self->core.colorspace.tricolor_luma = displayio_colorconverter_compute_luma(highlight_color);
|
||||
}
|
||||
|
||||
displayio_display_core_construct(&self->core, bus, width, height, ram_width, ram_height, colstart, rowstart, rotation, 1, true, true, 1, true);
|
||||
displayio_display_core_construct(&self->core, bus, width, height, ram_width, ram_height, colstart, rowstart, rotation, 1, true, true, 1, true, true);
|
||||
|
||||
self->set_column_window_command = set_column_window_command;
|
||||
self->set_row_window_command = set_row_window_command;
|
||||
|
@ -83,7 +83,12 @@ bool displayio_palette_get_color(displayio_palette_t *self, const _displayio_col
|
||||
} else if (colorspace->grayscale) {
|
||||
*color = self->colors[palette_index].luma >> (8 - colorspace->depth);
|
||||
} else {
|
||||
*color = self->colors[palette_index].rgb565;
|
||||
uint16_t packed = self->colors[palette_index].rgb565;
|
||||
if (colorspace->reverse_bytes_in_word) {
|
||||
// swap bytes
|
||||
packed = __builtin_bswap16(packed);
|
||||
}
|
||||
*color = packed;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -41,6 +41,7 @@ typedef struct {
|
||||
bool tricolor;
|
||||
bool pixels_in_byte_share_row;
|
||||
bool reverse_pixels_in_byte;
|
||||
bool reverse_bytes_in_word;
|
||||
bool dither;
|
||||
} _displayio_colorspace_t;
|
||||
|
||||
|
@ -21,6 +21,20 @@
|
||||
|
||||
primary_display_t displays[CIRCUITPY_DISPLAY_LIMIT];
|
||||
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
STATIC bool any_display_uses_this_protomatter(protomatter_protomatter_obj_t* pm) {
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].framebuffer_display.base.type == &framebufferio_framebufferdisplay_type) {
|
||||
framebufferio_framebufferdisplay_obj_t* display = &displays[i].framebuffer_display;
|
||||
if (display->framebuffer == pm) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check for recursive calls to displayio_background.
|
||||
bool displayio_background_in_progress = false;
|
||||
|
||||
@ -47,6 +61,10 @@ void displayio_background(void) {
|
||||
}
|
||||
if (displays[i].display.base.type == &displayio_display_type) {
|
||||
displayio_display_background(&displays[i].display);
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
} else if (displays[i].framebuffer_display.base.type == &framebufferio_framebufferdisplay_type) {
|
||||
framebufferio_framebufferdisplay_background(&displays[i].framebuffer_display);
|
||||
#endif
|
||||
} else if (displays[i].epaper_display.base.type == &displayio_epaperdisplay_type) {
|
||||
displayio_epaperdisplay_background(&displays[i].epaper_display);
|
||||
}
|
||||
@ -67,6 +85,10 @@ void common_hal_displayio_release_displays(void) {
|
||||
release_display(&displays[i].display);
|
||||
} else if (display_type == &displayio_epaperdisplay_type) {
|
||||
release_epaperdisplay(&displays[i].epaper_display);
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
} else if (display_type == &framebufferio_framebufferdisplay_type) {
|
||||
release_framebufferdisplay(&displays[i].framebuffer_display);
|
||||
#endif
|
||||
}
|
||||
displays[i].display.base.type = &mp_type_NoneType;
|
||||
}
|
||||
@ -80,6 +102,10 @@ void common_hal_displayio_release_displays(void) {
|
||||
common_hal_displayio_i2cdisplay_deinit(&displays[i].i2cdisplay_bus);
|
||||
} else if (bus_type == &displayio_parallelbus_type) {
|
||||
common_hal_displayio_parallelbus_deinit(&displays[i].parallel_bus);
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
} else if (bus_type == &protomatter_Protomatter_type) {
|
||||
common_hal_protomatter_protomatter_deinit(&displays[i].protomatter);
|
||||
#endif
|
||||
}
|
||||
displays[i].fourwire_bus.base.type = &mp_type_NoneType;
|
||||
}
|
||||
@ -141,6 +167,13 @@ void reset_displays(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
} else if (displays[i].protomatter.base.type == &protomatter_Protomatter_type) {
|
||||
protomatter_protomatter_obj_t * pm = &displays[i].protomatter;
|
||||
if(!any_display_uses_this_protomatter(pm)) {
|
||||
common_hal_protomatter_protomatter_deinit(pm);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
// Not an active display bus.
|
||||
continue;
|
||||
@ -155,12 +188,24 @@ void reset_displays(void) {
|
||||
} else if (displays[i].epaper_display.base.type == &displayio_epaperdisplay_type) {
|
||||
displayio_epaperdisplay_obj_t* display = &displays[i].epaper_display;
|
||||
common_hal_displayio_epaperdisplay_show(display, NULL);
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
} else if (displays[i].framebuffer_display.base.type == &framebufferio_framebufferdisplay_type) {
|
||||
framebufferio_framebufferdisplay_obj_t* display = &displays[i].framebuffer_display;
|
||||
display->auto_refresh = true;
|
||||
common_hal_framebufferio_framebufferdisplay_show(display, NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void displayio_gc_collect(void) {
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
if (displays[i].protomatter.base.type == &protomatter_Protomatter_type) {
|
||||
protomatter_protomatter_collect_ptrs(&displays[i].protomatter);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (displays[i].display.base.type == NULL) {
|
||||
continue;
|
||||
}
|
||||
@ -169,6 +214,10 @@ void displayio_gc_collect(void) {
|
||||
// but this is more precise, and is the only field that needs marking.
|
||||
if (displays[i].display.base.type == &displayio_display_type) {
|
||||
displayio_display_collect_ptrs(&displays[i].display);
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
} else if (displays[i].framebuffer_display.base.type == &framebufferio_framebufferdisplay_type) {
|
||||
framebufferio_framebufferdisplay_collect_ptrs(&displays[i].framebuffer_display);
|
||||
#endif
|
||||
} else if (displays[i].epaper_display.base.type == &displayio_epaperdisplay_type) {
|
||||
displayio_epaperdisplay_collect_ptrs(&displays[i].epaper_display);
|
||||
}
|
||||
@ -308,3 +357,38 @@ void displayio_area_transform_within(bool mirror_x, bool mirror_y, bool transpos
|
||||
transformed->x1 = whole->x1 + (y1 - whole->y1);
|
||||
}
|
||||
}
|
||||
|
||||
primary_display_t *allocate_display(void) {
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
mp_const_obj_t display_type = displays[i].display.base.type;
|
||||
if (display_type == NULL || display_type == &mp_type_NoneType) {
|
||||
return &displays[i];
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
primary_display_t *allocate_display_or_raise(void) {
|
||||
primary_display_t *result = allocate_display();
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
mp_raise_RuntimeError(translate("Too many displays"));
|
||||
}
|
||||
primary_display_t *allocate_display_bus(void) {
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
mp_const_obj_t display_type = displays[i].display.base.type;
|
||||
if (display_type == NULL || display_type == &mp_type_NoneType) {
|
||||
return &displays[i];
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
primary_display_t *allocate_display_bus_or_raise(void) {
|
||||
primary_display_t *result = allocate_display_bus();
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
mp_raise_RuntimeError(translate("Too many display busses"));
|
||||
}
|
||||
|
@ -29,20 +29,30 @@
|
||||
|
||||
#include "shared-bindings/displayio/Display.h"
|
||||
#include "shared-bindings/displayio/EPaperDisplay.h"
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
#include "shared-bindings/framebufferio/FramebufferDisplay.h"
|
||||
#endif
|
||||
#include "shared-bindings/displayio/FourWire.h"
|
||||
#include "shared-bindings/displayio/Group.h"
|
||||
#include "shared-bindings/displayio/I2CDisplay.h"
|
||||
#include "shared-bindings/displayio/ParallelBus.h"
|
||||
#include "shared-bindings/_protomatter/Protomatter.h"
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
displayio_fourwire_obj_t fourwire_bus;
|
||||
displayio_i2cdisplay_obj_t i2cdisplay_bus;
|
||||
displayio_parallelbus_obj_t parallel_bus;
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
protomatter_protomatter_obj_t protomatter;
|
||||
#endif
|
||||
};
|
||||
union {
|
||||
displayio_display_obj_t display;
|
||||
displayio_epaperdisplay_obj_t epaper_display;
|
||||
#if CIRCUITPY_FRAMEBUFFERIO
|
||||
framebufferio_framebufferdisplay_obj_t framebuffer_display;
|
||||
#endif
|
||||
};
|
||||
} primary_display_t;
|
||||
|
||||
@ -54,4 +64,9 @@ void displayio_background(void);
|
||||
void reset_displays(void);
|
||||
void displayio_gc_collect(void);
|
||||
|
||||
primary_display_t *allocate_display(void);
|
||||
primary_display_t *allocate_display_or_raise(void);
|
||||
primary_display_t *allocate_display_bus(void);
|
||||
primary_display_t *allocate_display_bus_or_raise(void);
|
||||
|
||||
#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO___INIT___H
|
||||
|
@ -42,38 +42,42 @@
|
||||
|
||||
void displayio_display_core_construct(displayio_display_core_t* self,
|
||||
mp_obj_t bus, uint16_t width, uint16_t height, uint16_t ram_width, uint16_t ram_height, int16_t colstart, int16_t rowstart, uint16_t rotation,
|
||||
uint16_t color_depth, bool grayscale, bool pixels_in_byte_share_row, uint8_t bytes_per_cell, bool reverse_pixels_in_byte) {
|
||||
uint16_t color_depth, bool grayscale, bool pixels_in_byte_share_row, uint8_t bytes_per_cell, bool reverse_pixels_in_byte, bool reverse_bytes_in_word) {
|
||||
self->colorspace.depth = color_depth;
|
||||
self->colorspace.grayscale = grayscale;
|
||||
self->colorspace.pixels_in_byte_share_row = pixels_in_byte_share_row;
|
||||
self->colorspace.bytes_per_cell = bytes_per_cell;
|
||||
self->colorspace.reverse_pixels_in_byte = reverse_pixels_in_byte;
|
||||
self->colorspace.reverse_bytes_in_word = reverse_bytes_in_word;
|
||||
self->colorspace.dither = false;
|
||||
self->current_group = NULL;
|
||||
self->colstart = colstart;
|
||||
self->rowstart = rowstart;
|
||||
self->last_refresh = 0;
|
||||
|
||||
if (MP_OBJ_IS_TYPE(bus, &displayio_parallelbus_type)) {
|
||||
self->bus_reset = common_hal_displayio_parallelbus_reset;
|
||||
self->bus_free = common_hal_displayio_parallelbus_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_parallelbus_begin_transaction;
|
||||
self->send = common_hal_displayio_parallelbus_send;
|
||||
self->end_transaction = common_hal_displayio_parallelbus_end_transaction;
|
||||
} else if (MP_OBJ_IS_TYPE(bus, &displayio_fourwire_type)) {
|
||||
self->bus_reset = common_hal_displayio_fourwire_reset;
|
||||
self->bus_free = common_hal_displayio_fourwire_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_fourwire_begin_transaction;
|
||||
self->send = common_hal_displayio_fourwire_send;
|
||||
self->end_transaction = common_hal_displayio_fourwire_end_transaction;
|
||||
} else if (MP_OBJ_IS_TYPE(bus, &displayio_i2cdisplay_type)) {
|
||||
self->bus_reset = common_hal_displayio_i2cdisplay_reset;
|
||||
self->bus_free = common_hal_displayio_i2cdisplay_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_i2cdisplay_begin_transaction;
|
||||
self->send = common_hal_displayio_i2cdisplay_send;
|
||||
self->end_transaction = common_hal_displayio_i2cdisplay_end_transaction;
|
||||
} else {
|
||||
mp_raise_ValueError(translate("Unsupported display bus type"));
|
||||
// (framebufferdisplay already validated its 'bus' is a buffer-protocol object)
|
||||
if (bus) {
|
||||
if (MP_OBJ_IS_TYPE(bus, &displayio_parallelbus_type)) {
|
||||
self->bus_reset = common_hal_displayio_parallelbus_reset;
|
||||
self->bus_free = common_hal_displayio_parallelbus_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_parallelbus_begin_transaction;
|
||||
self->send = common_hal_displayio_parallelbus_send;
|
||||
self->end_transaction = common_hal_displayio_parallelbus_end_transaction;
|
||||
} else if (MP_OBJ_IS_TYPE(bus, &displayio_fourwire_type)) {
|
||||
self->bus_reset = common_hal_displayio_fourwire_reset;
|
||||
self->bus_free = common_hal_displayio_fourwire_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_fourwire_begin_transaction;
|
||||
self->send = common_hal_displayio_fourwire_send;
|
||||
self->end_transaction = common_hal_displayio_fourwire_end_transaction;
|
||||
} else if (MP_OBJ_IS_TYPE(bus, &displayio_i2cdisplay_type)) {
|
||||
self->bus_reset = common_hal_displayio_i2cdisplay_reset;
|
||||
self->bus_free = common_hal_displayio_i2cdisplay_bus_free;
|
||||
self->begin_transaction = common_hal_displayio_i2cdisplay_begin_transaction;
|
||||
self->send = common_hal_displayio_i2cdisplay_send;
|
||||
self->end_transaction = common_hal_displayio_i2cdisplay_end_transaction;
|
||||
} else {
|
||||
mp_raise_ValueError(translate("Unsupported display bus type"));
|
||||
}
|
||||
}
|
||||
self->bus = bus;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user