Specifically in the definition of the SPI pins.
In the library code snippet I start the definition of the SPI bus:
Code: Select all
spi_t * spi = SPI.bus();
// reg_value = 0x1234; debug
for(int i=0; i<47; i++)
SPI_2BYTE(reg_value);
spiSimpleTransaction(spi);
spi->dev->mosi_dlen.usr_mosi_dbitlen = 16-reg_position-1;
spi->dev->miso_dlen.usr_miso_dbitlen = 0;
spi->dev->data_buf[0] = reg_value>>8;
spi->dev->cmd.usr = 1;
while(spi->dev->cmd.usr);
GPIO_REG_SET(1 << _LATCH_PIN);
spi->dev->mosi_dlen.usr_mosi_dbitlen = (reg_position-8)-1;
spi->dev->data_buf[0] = reg_value>>(reg_position-8);
spi->dev->cmd.usr = 1;
while(spi->dev->cmd.usr);
spiEndTransaction(spi);
SPI_BYTE(reg_value&0xff);
GPIO_REG_CLEAR(1 << _LATCH_PIN);
Code: Select all
'spi_dev_t' {aka 'volatile struct spi_dev_s'} has no member named 'mosi_dlen'; did you mean 'ms_dlen'
spi->dev->mosi_dlen.usr_mosi_dbitlen = 16-reg_position-1;
^~~~~~~~~
ms_dlen
This occurs only for this board, since I did the same for an esp-wroom-32 mini and this error does not appear.
The library I am using is: https://github.com/2dom/PxMatrix/tree/master
How can i solve this? What dou you recommend? change the plate or is it possible to solve this?