User Tools

Site Tools


module:micropython:esp32uart:esp32uart

This is an old revision of the document!


MicroPython: Esp32Uart

Übersicht

Beschreibung

Quell-Code

Main-Program: Esp32CheckUart.py

 

Library-Module: Uart.py

 

Library-Module: Thread.py

 

Entwicklung

211218 : Esp32Uart

  • Uart0 (UsbPC) : Programmier-/Debug-Schnittstelle VSCode
  • Uart1 (PIN_UART1_RX(25) rückgekoppelt mit PIN_UART1_TX(26))

Uart-Pin-Assignment Esp32 in Define.py

ID_UART0     =  0
PIN_UART0_TX =  1 # USB
PIN_UART0_RX =  3 # USB
#
ID_UART1     =  1
PIN_UART1_RX = 25 #  9 - not usable 
PIN_UART1_TX = 26 # 10 - not usable 
#
ID_UART2     =  2
PIN_UART2_RX = 16
PIN_UART2_TX = 17

</code>

Esp32Uart.py : Senden/Empfangen bei Tx/Rx-Kabel-Rückkopplung:

>>> Running c:\Downloads\python\Esp32Uart\Uart.py
>>> *** CheckUart: begin
CBOnTxLine[111asdf]
CBOnRxLine[111asdf]
CBOnTxLine[222asdf]
CBOnRxLine[222asdf]
CBOnTxLine[333asdf]
CBOnRxLine[333asdf]
*** CheckUart: end
>>>

211217 : Erste Versuche

module/micropython/esp32uart/esp32uart.1639911423.txt.gz · Last modified: 2021/12/19 12:57 (external edit)