Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile time error "'MbedSPI' does not name a type" with core arduino-pico #44

Open
SamHalvoe opened this issue Mar 18, 2023 · 0 comments

Comments

@SamHalvoe
Copy link

SamHalvoe commented Mar 18, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant