Debian Codegraph @

ports/esp32/boards/LOLIN_C3_MINI/modules/c3mini.py

raw
1 # LOLIN C3 MINI MicroPython Helper Library
2
3 from micropython import const
4 from machine import Pin
5
6 # Pin Assignments
7
8 # SPI
9 SPI_MOSI = const(4)
10 SPI_MISO = const(3)
11 SPI_CLK = const(2)
12
13 # I2C
14 I2C_SDA = const(8)
15 I2C_SCL = const(10)
16
17 # LED
18 LED = const(7)
19
20 # BUTTON
21 BUTTON = const(0)
22
23 # Built-in peripherals
24
25 led = Pin(LED, Pin.OUT, value=0)
26 button = Pin(BUTTON, Pin.IN, Pin.PULL_UP)