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:
Chiara 2025-05-28 14:53:44 +02:00
parent 4c654ec969
commit 1751076592
2614 changed files with 349009 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: Copyright (c) 2022 Alec Delaney
#
# SPDX-License-Identifier: MIT
"""
`circuitpython_typing.led`
================================================================================
Type annotation definitions for LEDs.
* Author(s): Alec Delaney
"""
from typing import Tuple, Union
# Protocol was introduced in Python 3.8, TypeAlias in 3.10
from typing_extensions import Protocol, TypeAlias
ColorBasedColorUnion: TypeAlias = Union[int, Tuple[int, int, int]]
FillBasedColorUnion: TypeAlias = Union[ColorBasedColorUnion, Tuple[int, int, int, int]]
class ColorBasedLED(Protocol):
"""Protocol for LEDs using the :meth:`color` method"""
def color(self, value: ColorBasedColorUnion) -> None:
"""Sets the color of the LED"""
class FillBasedLED(Protocol):
"""Protocol for LEDs using the :meth:`fill` method"""
def fill(self, color: FillBasedColorUnion) -> None:
"""Sets the color of the LED"""