mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
Merge pull request #13 from avollkopf/master
Change Inverted logic for GPIO Actor
This commit is contained in:
commit
143db84c32
100 changed files with 3 additions and 5 deletions
|
@ -20,17 +20,17 @@ except Exception:
|
|||
import RPi.GPIO as GPIO
|
||||
|
||||
|
||||
@parameters([Property.Select(label="GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]), Property.Select(label="Inverted", options=["Yes", "No"])])
|
||||
@parameters([Property.Select(label="GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]), Property.Select(label="Inverted", options=["Yes", "No"],description="No: Active on high; Yes: Active on low")])
|
||||
class GPIOActor(CBPiActor):
|
||||
|
||||
|
||||
def get_GPIO_state(self, state):
|
||||
# ON
|
||||
if state == 1:
|
||||
return 0 if self.inverted == False else 1
|
||||
return 1 if self.inverted == False else 0
|
||||
# OFF
|
||||
if state == 0:
|
||||
return 1 if self.inverted == False else 0
|
||||
return 0 if self.inverted == False else 1
|
||||
|
||||
async def start(self):
|
||||
await super().start()
|
||||
|
|
0
venv/bin/autopep8
Executable file → Normal file
0
venv/bin/autopep8
Executable file → Normal file
0
venv/bin/chardetect
Executable file → Normal file
0
venv/bin/chardetect
Executable file → Normal file
0
venv/bin/easy_install
Executable file → Normal file
0
venv/bin/easy_install
Executable file → Normal file
0
venv/bin/easy_install-3.8
Executable file → Normal file
0
venv/bin/easy_install-3.8
Executable file → Normal file
0
venv/bin/epylint
Executable file → Normal file
0
venv/bin/epylint
Executable file → Normal file
0
venv/bin/f2py
Executable file → Normal file
0
venv/bin/f2py
Executable file → Normal file
0
venv/bin/f2py3
Executable file → Normal file
0
venv/bin/f2py3
Executable file → Normal file
0
venv/bin/f2py3.8
Executable file → Normal file
0
venv/bin/f2py3.8
Executable file → Normal file
0
venv/bin/isort
Executable file → Normal file
0
venv/bin/isort
Executable file → Normal file
0
venv/bin/isort-identify-imports
Executable file → Normal file
0
venv/bin/isort-identify-imports
Executable file → Normal file
0
venv/bin/pip
Executable file → Normal file
0
venv/bin/pip
Executable file → Normal file
0
venv/bin/pip3
Executable file → Normal file
0
venv/bin/pip3
Executable file → Normal file
0
venv/bin/pip3.8
Executable file → Normal file
0
venv/bin/pip3.8
Executable file → Normal file
0
venv/bin/pycodestyle
Executable file → Normal file
0
venv/bin/pycodestyle
Executable file → Normal file
0
venv/bin/pyfiglet
Executable file → Normal file
0
venv/bin/pyfiglet
Executable file → Normal file
0
venv/bin/pylint
Executable file → Normal file
0
venv/bin/pylint
Executable file → Normal file
0
venv/bin/pyreverse
Executable file → Normal file
0
venv/bin/pyreverse
Executable file → Normal file
|
@ -1 +0,0 @@
|
|||
python3
|
|
@ -1 +0,0 @@
|
|||
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
|
0
venv/bin/symilar
Executable file → Normal file
0
venv/bin/symilar
Executable file → Normal file
0
venv/lib/python3.8/site-packages/_cffi_backend.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/_cffi_backend.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_frozenlist.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_frozenlist.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_helpers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_helpers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_http_parser.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_http_parser.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_http_writer.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_http_writer.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_websocket.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp/_websocket.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon-16x16.png
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon-16x16.png
Executable file → Normal file
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon-32x32.png
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon-32x32.png
Executable file → Normal file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon.ico
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/images/favicon.ico
Executable file → Normal file
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/lang/ja.js
Executable file → Normal file
0
venv/lib/python3.8/site-packages/aiohttp_swagger/swagger_ui/lang/ja.js
Executable file → Normal file
0
venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_padding.abi3.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_padding.abi3.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/lazy_object_proxy/cext.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/lazy_object_proxy/cext.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/markupsafe/_speedups.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/markupsafe/_speedups.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/multidict/_multidict.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/multidict/_multidict.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libgfortran.3.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libgfortran.3.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libopenblas.0.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libopenblas.0.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libquadmath.0.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/.dylibs/libquadmath.0.dylib
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_multiarray_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_multiarray_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_operand_flag_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_operand_flag_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_rational_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_rational_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_struct_ufunc_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_struct_ufunc_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_umath_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/core/_umath_tests.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/fft/_pocketfft_internal.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/fft/_pocketfft_internal.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/linalg/_umath_linalg.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/linalg/_umath_linalg.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/linalg/lapack_lite.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/linalg/lapack_lite.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_bounded_integers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_bounded_integers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_common.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_common.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_generator.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_generator.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_mt19937.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_mt19937.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_pcg64.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_pcg64.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_philox.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_philox.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_sfc64.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/_sfc64.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/bit_generator.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/bit_generator.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/mtrand.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/numpy/random/mtrand.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/algos.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/algos.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/groupby.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/groupby.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/hashing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/hashing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/hashtable.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/hashtable.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/index.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/index.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/indexing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/indexing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/internals.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/internals.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/join.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/join.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/json.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/json.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/lib.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/lib.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/missing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/missing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/ops.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/ops.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/ops_dispatch.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/ops_dispatch.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/parsers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/parsers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/properties.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/properties.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/reduction.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/reduction.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/reshape.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/reshape.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/sparse.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/sparse.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/testing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/testing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslib.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslib.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/base.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/base.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/ccalendar.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/ccalendar.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/conversion.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/conversion.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/dtypes.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/dtypes.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/fields.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/fields.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/nattype.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/nattype.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/np_datetime.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/np_datetime.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/offsets.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/offsets.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/parsing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/parsing.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/period.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/period.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/strptime.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/strptime.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timedeltas.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timedeltas.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timestamps.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timestamps.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timezones.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/timezones.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/tzconversion.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/tzconversion.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/vectorized.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/tslibs/vectorized.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/window/aggregations.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/window/aggregations.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/window/indexers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/window/indexers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/writers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/_libs/writers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/io/sas/_sas.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/pandas/io/sas/_sas.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/wrapt/_wrappers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/wrapt/_wrappers.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/yarl/_quoting_c.cpython-38-darwin.so
Executable file → Normal file
0
venv/lib/python3.8/site-packages/yarl/_quoting_c.cpython-38-darwin.so
Executable file → Normal file
Loading…
Reference in a new issue