Fixed formatting

This commit is contained in:
m1cha1s 2022-11-25 13:55:06 +01:00
parent fb46e7c4d8
commit 26fbb25653
3 changed files with 3137 additions and 23 deletions

View File

@ -29,31 +29,16 @@
#define MICROPY_HW_BOARD_NAME "ESP32 Devkit V1"
#define MICROPY_HW_MCU_NAME "ESP32"
#define MICROPY_HW_LED_STATUS (&pin_GPIO2)
#define MICROPY_HW_LED_STATUS (&pin_GPIO2)
#define CIRCUITPY_BOARD_I2C (1)
#define CIRCUITPY_BOARD_I2C_PIN \
{ \
{ \
.scl = &pin_GPIO22, .sda = &pin_GPIO21 \
} \
}
#define CIRCUITPY_BOARD_I2C (1)
#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO22, .sda = &pin_GPIO21}}
#define CIRCUITPY_BOARD_SPI (1)
#define CIRCUITPY_BOARD_SPI_PIN \
{ \
{ \
.clock = &pin_GPIO18, .mosi = &pin_GPIO23, .miso = &pin_GPIO19 \
} \
}
#define CIRCUITPY_BOARD_SPI (1)
#define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO18, .mosi = &pin_GPIO23, .miso = &pin_GPIO19}}
#define CIRCUITPY_BOARD_UART (1)
#define CIRCUITPY_BOARD_UART_PIN \
{ \
{ \
.tx = &pin_GPIO17, .rx = &pin_GPIO16 \
} \
}
#define CIRCUITPY_BOARD_UART (1)
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO17, .rx = &pin_GPIO16}}
// UART pins attached to the USB-serial converter chip
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO1)

View File

@ -41,5 +41,6 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
{MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj)},
{MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj)},
{MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj)}};
{MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj)}
};
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

3128
uncrustify.cfg Normal file

File diff suppressed because it is too large Load Diff