Did stuff

This commit is contained in:
AlexanderHD27
2024-12-28 22:47:46 +01:00
parent bdec2db94d
commit 801e791199
52 changed files with 5252 additions and 1417 deletions

View File

@@ -76,7 +76,7 @@ void MCP2521_HardwareHandle_ESP::read(uint8_t cmd, uint8_t *data, size_t length)
.addr = 0,
.length = 8*length,
.rxlength = 8*length,
.tx_buffer = NULL,
.tx_buffer = null_buffer,
.rx_buffer = data
},
.command_bits = 8,

View File

@@ -73,7 +73,7 @@ void MCP2521_HardwareHandle_ESP::initSPIDevice(
// Learned this the hard way
.cs_ena_pretrans = 0,
.cs_ena_posttrans = 0,
.clock_speed_hz = 10000,
.clock_speed_hz = 2000,
.spics_io_num = cs,
.flags = SPI_DEVICE_NO_DUMMY,