stanleyhuangyc / MultiLCD

Arduino LCD library supporting multiple types of LCD shields and modules
112 stars 70 forks source link

'lcdhello.ino' sketch compile errors with Arduino IDE #5

Open dweston opened 10 years ago

dweston commented 10 years ago

When attempting to test the “lcdhello.ino” sketch included with the MultiLCD library I encounter compile errors until I add the following include line:

include

I’m using the Microduino-Core processor card in conjunction with a Microduino modified Arduino IDE 1.0.5 on an Apple MacBook Pro.

After adding 'SPI.h' the library appears to be fully functional.

I presume the SPI library is required due to the SSD1306 I2C interface but if so why was this necessary given the SSD1306 hardware was specifically asserted in the sketch?

LCD_SSD1306 lcd; /* for SSD1306 OLED module */

Please note this problem only applies to the MultiLCD library. Test the “lcdhello.ino” sketch included with the MiniCD library gave no compile errors despite the absence of the SPI library.