diff --git a/mcu-m5core2.yaml b/mcu-m5core2.yaml index d5e1bef..562612b 100644 --- a/mcu-m5core2.yaml +++ b/mcu-m5core2.yaml @@ -16,7 +16,7 @@ # GPIO39 -> touch_lcd (touchscreen ft63x6 interrupt_pin) # AXP192 GPIO4 -> LCD reset (on_boot) # Grove (free): -# Port A red (Core2) I2C GPIO32 SDA, GPIO33 SCL +# Port A red (Core2) I2C GPIO32 SDA, GPIO33 SCL -> can_bus (esp32_can rx GPIO32, tx GPIO33), TJA1050 module # Port B black (base) GPIO GPIO26 out/DAC, GPIO36 in/ADC (input only); GPIO26 taken by the LoRa868 RST # Port C blue (base) UART GPIO13 RX, GPIO14 TX -> i2c_port_c (i2c scl GPIO13, sda GPIO14) # Touch buttons (below the LCD, raw y 240-280): A prev page, B keyboard page, C next page @@ -139,6 +139,19 @@ api: then: - lvgl.page.show: {id: status_page, lvgl_id: lvgl_main} +canbus: + - platform: esp32_can + id: can_bus + rx_pin: 32 + tx_pin: 33 + can_id: 5 + bit_rate: 500kbps + +canopen: + - id: can_open + canbus_id: can_bus + node_id: 5 + i2c: - id: i2c_main sda: 21