MikrofonSensor und TemperaturSenor die zwei Python programme funktionieren. mit den jeweiligen 2 json Datein. Beim TemperaturSensor wird im Terminal keine Wertre ausgegeben aber in der json Datei kann man die Temp und Hum sehen.
This commit is contained in:
parent
4c654ec969
commit
1751076592
2614 changed files with 349009 additions and 0 deletions
43
lib/python3.11/site-packages/circuitpython_typing/io.py
Normal file
43
lib/python3.11/site-packages/circuitpython_typing/io.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
# SPDX-FileCopyrightText: Copyright (c) 2022 Alec Delaney
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""
|
||||
`circuitpython_typing.io`
|
||||
================================================================================
|
||||
|
||||
Type annotation definitions for IO-related objects
|
||||
|
||||
* Author(s): Alec Delaney
|
||||
"""
|
||||
|
||||
# Protocol was introduced in Python 3.8.
|
||||
from typing_extensions import Protocol
|
||||
|
||||
|
||||
class ROValueIO(Protocol):
|
||||
"""Hardware objects, like `analogio.AnalogIn`, that have read-only
|
||||
``value`` properties/attributes.
|
||||
"""
|
||||
|
||||
@property
|
||||
def value(self) -> float:
|
||||
"""Value property, that may return an `int` or `float` depending
|
||||
on the specifics of the class.
|
||||
"""
|
||||
|
||||
|
||||
class ValueIO(Protocol):
|
||||
"""Hardware objects, like `analogio.AnalogOut`, that have read and
|
||||
write ``value`` properties/attributes.
|
||||
"""
|
||||
|
||||
@property
|
||||
def value(self) -> float:
|
||||
"""Value property, that may return an `int` or `float` depending
|
||||
on the specifics of the class.
|
||||
"""
|
||||
|
||||
# pylint: disable=no-self-use,unused-argument
|
||||
@value.setter
|
||||
def value(self, input_value: float, /): ...
|
Loading…
Add table
Add a link
Reference in a new issue