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,43 @@
# SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Pin definitions for a generic, os-agnostic, board."""
from adafruit_blinka.microcontroller.generic_agnostic_board import pin
# Digital pins
Dx_INPUT_TRUE = pin.D0
Dx_INPUT_FALSE = pin.D1
Dx_INPUT_TRUE_PULL_UP = pin.D2
Dx_INPUT_TRUE_PULL_DOWN = pin.D3
Dx_OUTPUT = pin.D4
Dx_INPUT_TOGGLE = pin.D7
# Special digital pins for pixels
NEOPIXEL = pin.D6
DOTSTAR_DATA = pin.D8
DOTSTAR_CLK = pin.D9
# Analog pins
Ax_INPUT_RAND_INT = pin.A0
Ax_INPUT_FIXED_INT_PI = pin.A1
Ax_INPUT_WAVE_SINE = pin.A2
Ax_INPUT_WAVE_SAW = pin.A3
Ax_OUTPUT = pin.A4
# I2C pins
SDA = pin.SDA
SCL = pin.SCL
# SPI pins
SCLK = pin.SCLK
SCK = pin.SCK
MOSI = pin.MOSI
MISO = pin.MISO
CS = pin.D6
# SPI port
spiPorts = ((0, SCK, MOSI, MISO),)
# UART pins
UART_TX = pin.UART_TX
UART_RX = pin.UART_RX