mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 01:06:52 +01:00
m5core2: CANopen node 5 on a TJA1050 module at Port A (esp32_can GPIO32/33, 500 kbit/s)
This commit is contained in:
1 parent
0f6e2350cc
commit
3d5a77bd13
1 file changed
+14
-1
+14
-1
@@ -16,7 +16,7 @@
|
|||||||
# GPIO39 -> touch_lcd (touchscreen ft63x6 interrupt_pin)
|
# GPIO39 -> touch_lcd (touchscreen ft63x6 interrupt_pin)
|
||||||
# AXP192 GPIO4 -> LCD reset (on_boot)
|
# AXP192 GPIO4 -> LCD reset (on_boot)
|
||||||
# Grove (free):
|
# 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 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)
|
# 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
|
# Touch buttons (below the LCD, raw y 240-280): A prev page, B keyboard page, C next page
|
||||||
@@ -139,6 +139,19 @@ api:
|
|||||||
then:
|
then:
|
||||||
- lvgl.page.show: {id: status_page, lvgl_id: lvgl_main}
|
- 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:
|
i2c:
|
||||||
- id: i2c_main
|
- id: i2c_main
|
||||||
sda: 21
|
sda: 21
|
||||||
|
|||||||
Reference in new issue
Block a user