hello everyone,
i'm getting following errors while compiling the codes for my controller:
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp: In member function 'void LiquidCrystal::initSPI(uint8_t)':
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp:117: error: 'SPI' was not declared in this scope
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp:120: error: 'SPI_CLOCK_DIV2' was not declared in this scope
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp:124: error: 'SPI_MODE0' was not declared in this scope
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp: In member function 'void LiquidCrystal::spiSendOut()':
C:\Users\admin\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\libraries\LiquidCrystal\LiquidCrystal.cpp:403: error: 'SPI' was not declared in this scope
Thanx for the help. I'm also facing the same problem. I've tried all possible caps/without caps includes, but he error persists.
I tried these one by one:
#include<spi.h>
#include<SPI.h> #include"spi.h" #include"SPI.h"
Here is the line of code where there is error message: