-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello Larry,
first of all I like your OneBitDisplay library and had fun using it in one of my projects. (:
At the moment I use the core ArduinoCore-mbed and it works fine.
But now I want to switch to the core arduino-pico and there I get compile time errors when using OneBitDisplay (see compiler output below).
Could you have a look?
Thank you very much.
Best regards,
Samuel
compiler output:
In file included from c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp:57:
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:76:1: error: 'MbedSPI' does not name a type
76 | MbedSPI *mySPI;
| ^~~~~~~
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl: In function 'void initSPI(OBDISP*, int, int, int, int)':
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:97:5: error: 'mySPI' was not declared in this scope; did you mean 'SPI'?
97 | mySPI = new MbedSPI(-1,iMOSI,iCLK);
| ^~~~~
| SPI
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:97:17: error: expected type-specifier before 'MbedSPI'
97 | mySPI = new MbedSPI(-1,iMOSI,iCLK);
| ^~~~~~~
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:83:32: warning: unused parameter 'iSpeed' [-Wunused-parameter]
83 | void initSPI(OBDISP *pOBD, int iSpeed, int iMOSI, int iCLK, int iCS)
| ~~~~^~~~~~
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:83:65: warning: unused parameter 'iCS' [-Wunused-parameter]
83 | void initSPI(OBDISP *pOBD, int iSpeed, int iMOSI, int iCLK, int iCS)
| ~~~~^~~
In file included from c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp:57:
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl: In function 'void RawWrite(OBDISP*, unsigned char*, int)':
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:319:13: error: 'mySPI' was not declared in this scope; did you mean 'SPI'?
319 | mySPI->transfer(pData[i]);
| ^~~~~
| SPI
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl: In function 'void RawWriteData(OBDISP*, unsigned char*, int)':
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:368:13: error: 'mySPI' was not declared in this scope; did you mean 'SPI'?
368 | mySPI->transfer(pData[i]);
| ^~~~~
| SPI
c:\Users\samue\OneDrive\Dokumente\Arduino\libraries\OneBitDisplay\src\obd_io.inl:373:15: error: 'mySPI' was not declared in this scope; did you mean 'SPI'?
373 | mySPI->transfer(pData[i]);
| ^~~~~
| SPI
Multiple libraries were found for "SD.h"
Used: C:\Users\samue\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.1.0\libraries\SD
Not used: C:\Users\samue\OneDrive\Dokumente\Arduino\libraries\SD
exit status 1
Compilation error: exit status 1
Metadata
Metadata
Assignees
Labels
No labels