ich verzweifele gerade etwas an der Compilierung des Codes. Alle notwendigen Bibliotheken habe ich unzugefügt, aber die Arduino IDE wirft ständig folgenden Fehler:
Code: Alles auswählen
In file included from C:\Users\webma\AppData\Local\Temp\arduino\sketches\05829ADE3417DF9C8F7BD989142A5F40\sketch\HB-UNI-Sen-CO2.ino.cpp:1:0:
C:\Users\webma\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.2.2\cores\MCUdude_corefiles/Arduino.h:70:18: error: expected identifier before numeric constant
#define MSBFIRST 1
^
c:\Users\webma\Documents\Arduino\libraries\AskSinPP/Radio.h:35:33: note: in expansion of macro 'MSBFIRST'
#define SPI_BITORDER_MSBFIRST MSBFIRST
^~~~~~~~
c:\Users\webma\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:29:3: note: in expansion of macro 'SPI_BITORDER_MSBFIRST'
SPI_BITORDER_MSBFIRST = MSBFIRST,
^~~~~~~~~~~~~~~~~~~~~
C:\Users\webma\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.2.2\cores\MCUdude_corefiles/Arduino.h:70:18: error: expected '}' before numeric constant
#define MSBFIRST 1
^
c:\Users\webma\Documents\Arduino\libraries\AskSinPP/Radio.h:35:33: note: in expansion of macro 'MSBFIRST'
#define SPI_BITORDER_MSBFIRST MSBFIRST
^~~~~~~~
c:\Users\webma\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:29:3: note: in expansion of macro 'SPI_BITORDER_MSBFIRST'
SPI_BITORDER_MSBFIRST = MSBFIRST,
^~~~~~~~~~~~~~~~~~~~~
C:\Users\webma\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.2.2\cores\MCUdude_corefiles/Arduino.h:70:18: error: expected unqualified-id before numeric constant
#define MSBFIRST 1
^
c:\Users\webma\Documents\Arduino\libraries\AskSinPP/Radio.h:35:33: note: in expansion of macro 'MSBFIRST'
#define SPI_BITORDER_MSBFIRST MSBFIRST
^~~~~~~~
c:\Users\webma\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:29:3: note: in expansion of macro 'SPI_BITORDER_MSBFIRST'
SPI_BITORDER_MSBFIRST = MSBFIRST,
^~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\webma\Documents\Arduino\libraries\Adafruit_GFX_Library/Adafruit_GFX.h:13:0,
from c:\Users\webma\Documents\Arduino\libraries\GxEPD\src/GxEPD.h:19,
from C:\Users\webma\Desktop\03 Arduino\CO2-Sensor\Code\HB-UNI-Sen-CO2\EPDisplay.h:3,
from C:\Users\webma\Desktop\03 Arduino\CO2-Sensor\Code\HB-UNI-Sen-CO2\HB-UNI-Sen-CO2.ino:27:
c:\Users\webma\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:31:1: error: expected declaration before '}' token
} BusIOBitOrder;
^
exit status 1
Compilation error: exit status 1
Danke.