I'm working on lcd128x64 spi library. And was working with my Arduino Atmega328p chip.
Now I want to run the code with my maple mini board too. So I have to specify the name on the pins for each chip board. But I want to learn the basics of how to write these statements.
Could you tell me where to find the attributions for each board ?
For now I want to define the pin names for the Atmega328p and maple mini. This is my intention:
#if defined(__AVR_ATmega328P__) #define CS_PIN 10 #define MOSI_PIN 11 #define CLK_PIN 13 #elif defined(STM32_SERIES_F1) #define CS_PIN PB12 #define MOSI_PIN PB15 #define CLK_PIN PB13 #endif
I don't think that's %100 correct, but I'm pretty sure that it's not the correct names of boards.