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
|
@ -0,0 +1,32 @@
|
|||
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
"""ESP8266 pin names"""
|
||||
|
||||
from ..generic_micropython import Pin
|
||||
|
||||
GPIO0 = Pin(0)
|
||||
GPIO1 = Pin(1)
|
||||
GPIO2 = Pin(2)
|
||||
GPIO3 = Pin(3)
|
||||
GPIO4 = Pin(4)
|
||||
GPIO5 = Pin(5)
|
||||
GPIO12 = Pin(12)
|
||||
GPIO13 = Pin(13)
|
||||
GPIO14 = Pin(14)
|
||||
GPIO15 = Pin(15)
|
||||
GPIO16 = Pin(16)
|
||||
TOUT = Pin("TOUT")
|
||||
|
||||
# ordered as spiId, sckId, mosiId, misoId
|
||||
spiPorts = (1, GPIO14, GPIO13, GPIO12)
|
||||
|
||||
# ordered as uartId, txId, rxId
|
||||
uartPorts = (
|
||||
(0, GPIO1, GPIO3),
|
||||
# TODO secondary pins for UART0 configurable from Micropython? How to flag?
|
||||
# (0, GPIO15, GPIO13)
|
||||
(1, GPIO2, None),
|
||||
)
|
||||
|
||||
i2cPorts = ()
|
Loading…
Add table
Add a link
Reference in a new issue