Code: Select all
C:\xxx\Arduino\libraries\Adafruit_RGBLCDShield\Adafruit_RGBLCDShield.cpp: In member function 'void Adafruit_RGBLCDShield::begin(uint8_t, uint8_t, uint8_t)':
C:\xxx\Arduino\libraries\Adafruit_RGBLCDShield\Adafruit_RGBLCDShield.cpp:119:43: warning: unused parameter 'cols' [-Wunused-parameter]
void Adafruit_RGBLCDShield::begin(uint8_t cols, uint8_t lines,
^~~~
Code: Select all
#include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
#include <utility/Adafruit_MCP23017.h>
#include <Arduino.h>
//... some stuff deleted...
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();//instantiate the display
//initialisation
void setup()
{
Serial.begin(9600);// Start the serial port for debugging
lcd.begin(16, 2);// set up the LCD's number of columns and rows:
//... rest of setup and main loop etc.
Is it just me (most likely) or is there a problem with the library ? I tried adding the third optional parameter to my call but it made no difference - its the columns variable it objects to..) and this was taken from the original example code..
The version of the library is 1.2.0
Many thanks,
Kevin.