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
27
lib/python3.11/site-packages/circuitpython_typing/pwmio.py
Normal file
27
lib/python3.11/site-packages/circuitpython_typing/pwmio.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# SPDX-FileCopyrightText: Copyright (c) 2022 Alec Delaney
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""
|
||||
`circuitpython_typing.pwmio`
|
||||
================================================================================
|
||||
|
||||
Type annotation definitions for PWMOut where Blinka doesn't otherwise define it.
|
||||
|
||||
* Author(s): Alec Delaney
|
||||
"""
|
||||
|
||||
# # Protocol was introduced in Python 3.8.
|
||||
from typing_extensions import Protocol
|
||||
|
||||
|
||||
class PWMOut(Protocol):
|
||||
"""Protocol that implements, at the bare minimum, the `duty_cycle` property"""
|
||||
|
||||
@property
|
||||
def duty_cycle(self) -> int:
|
||||
"""The duty cycle as a ratio using 16-bits"""
|
||||
|
||||
# pylint: disable=no-self-use,unused-argument
|
||||
@duty_cycle.setter
|
||||
def duty_cycle(self, duty_cycle: int) -> None: ...
|
Loading…
Add table
Add a link
Reference in a new issue