mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 05:10:15 +02:00
8f24c86263
Signed-off-by: Damien George <damien@micropython.org>
22 lines
434 B
Python
22 lines
434 B
Python
# Target wiring for general esp32 board.
|
|
#
|
|
# Connect:
|
|
# - GPIO4 to GPIO5
|
|
# - GPIO12 to GPIO13
|
|
|
|
import sys
|
|
|
|
uart_loopback_args = (1,)
|
|
uart_loopback_kwargs = {"tx": 4, "rx": 5}
|
|
|
|
if "ESP32C" in sys.implementation._machine:
|
|
spi_standalone_args_list = [(1,)]
|
|
else:
|
|
spi_standalone_args_list = [(1,), (2,)]
|
|
|
|
pwm_loopback_pins = [(4, 5)]
|
|
|
|
encoder_loopback_id = 0
|
|
encoder_loopback_out_pins = (4, 12)
|
|
encoder_loopback_in_pins = (5, 13)
|