Jester
Full Member level 6
I'm working on a project and for proof of concept I used a Cortex M0 based Arduino board (MkrZero) for the micro controller portion. I have some limited experience with C and wrote the firmware using the Arduino IDE. Now that its all working I would like to move away from the speed limitations inherent to the Arduino operating system. The nice thing about the Arduino approach is the readily available open source libraries, but you pay a stiff price in performance. Most of the code I wrote is pretty basic stuff, loops and switch statements etc, so those aspects should compile under a regular C compiler.
The one aspect I'm not looking forward to is the display code, I'm using a generic SPI based 320 x 240 TFT display with touch screen, I'm actually okay with the Arduino library for the display, it works well and is not overly slow.
Assuming I get a conventional C based loop and interrupt firmware to run on this uC, is it possible to use the Arduino display library or do I need to write this from scratch?
The display : https://www.aliexpress.com/item/2-8...Touch-Screen-Panel-PCB-Board/32617643223.html
I think this is the library I used: https://www.arduinolibraries.info/libraries/adafruit-ili9341
Any suggestions from anyone that has migrated code from Arduino to regular C or suggestions for a non Arduino IDE are welcome.
The one aspect I'm not looking forward to is the display code, I'm using a generic SPI based 320 x 240 TFT display with touch screen, I'm actually okay with the Arduino library for the display, it works well and is not overly slow.
Assuming I get a conventional C based loop and interrupt firmware to run on this uC, is it possible to use the Arduino display library or do I need to write this from scratch?
The display : https://www.aliexpress.com/item/2-8...Touch-Screen-Panel-PCB-Board/32617643223.html
I think this is the library I used: https://www.arduinolibraries.info/libraries/adafruit-ili9341
Any suggestions from anyone that has migrated code from Arduino to regular C or suggestions for a non Arduino IDE are welcome.