sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

RA8875 with STM32 in Arduino IDE #147

Open VictorCasadoZ opened 4 years ago

VictorCasadoZ commented 4 years ago

Hi, I want to implement the RA8875 with an STM32, I have tried with the examples and it reports: `

C:\Users\pirul\OneDrive\Documents\Arduino\libraries\RA8875-0.70\RA8875.cpp: In member function 'void RA8875::begin(RA8875sizes, uint8_t)':

C:\Users\pirul\OneDrive\Documents\Arduino\libraries\RA8875-0.70\RA8875.cpp:432:11: error: cannot convert 'volatile uint32 {aka volatile long unsigned int}' to 'volatile uint8_t {aka volatile unsigned char}' in assignment

csport = portOutputRegister(digitalPinToPort(_cs));//pinMode(_cs, OUTPUT);

       ^

C:\Users\pirul\OneDrive\Documents\Arduino\libraries\RA8875-0.70\RA8875.cpp: In member function 'void RA8875::_sendRegFT5206(uint8_t, uint8_t)':

C:\Users\pirul\OneDrive\Documents\Arduino\libraries\RA8875-0.70\RA8875.cpp:5102:24: error: 'TWBR' was not declared in this scope

uint8_t twbrbackup = TWBR;

                    ^

Se encontraron varias bibliotecas para "Wire.h" Usado: C:\Users\pirul\OneDrive\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Wire No usado: C:\Users\pirul\OneDrive\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\WireSlave Se encontraron varias bibliotecas para "SPI.h" Usado: C:\Users\pirul\OneDrive\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\SPI Se encontraron varias bibliotecas para "RA8875.h" Usado: C:\Users\pirul\OneDrive\Documents\Arduino\libraries\RA8875-0.70 exit status 1 Error compilando para la tarjeta Generic STM32F103C series. `

So what can I do?

Thank you so much

gcharles81 commented 3 years ago

@hachimbala did you managed to overcome this error - I am trying to compile for STM32 and have same issue - Thanks Charles