Replies: 1 comment 9 replies
-
include |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi im having issues using this library I've included the code I made and the errors any help would be appreciated.
#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <EEPROM.h>
#include "LCDBigNumbers.hpp"
#define LCD_I2C_ADDRESS 0x27
LiquidCrystal_I2C LCD(LCD_I2C_ADDRESS, LCD_COLUMNS, LCD_ROWS); // Initialize the LCD
LCDBigNumbers myLCD(&LCD, BIG_NUMBERS_FONT_3_COLUMN_3_ROWS_VARIANT_1); // Create an instance of LCDmyLCD
const int encoderPinA = 2;
const int encoderPinB = 3;
volatile int encoderValue = 0;
float encoderPPM = 1000.0;
float screwPitch = 0.5;
const int eepromAddress = 0;
int lastSavedValue = 0;
void setup() {
LCD.init();
LCD.clear();
LCD.backlight();
}
void loop() {
float position = (encoderValue / encoderPPM) * screwPitch;
}
void updateEncoder() {
int stateA = digitalRead(encoderPinA);
int stateB = digitalRead(encoderPinB);
}
C:\Users\woody\Documents\GitHub\PREM\temp\SquareLine_Project\ui\ui.ino:9:69: error: no matching function for call to 'LCDBigNumbers::LCDBigNumbers(LiquidCrystal_I2C*, int)'
LCDBigNumbers myLCD(&LCD, BIG_NUMBERS_FONT_3_COLUMN_3_ROWS_VARIANT_1); // Create an instance of LCDmyLCD
^
In file included from C:\Users\woody\Documents\GitHub\PREM\temp\SquareLine_Project\ui\ui.ino:5:0:
c:\Users\woody\Documents\GitHub\i2c display\libraries\LCDBigNumbers\src/LCDBigNumbers.hpp:409:5: note: candidate: LCDBigNumbers::LCDBigNumbers(LiquidCrystal*, uint8_t)
LCDBigNumbers(LiquidCrystal aLCD, const uint8_t aBigNumberFontIdentifier) :
^~~~~~~~~~~~~
c:\Users\woody\Documents\GitHub\i2c display\libraries\LCDBigNumbers\src/LCDBigNumbers.hpp:409:5: note: no known conversion for argument 1 from 'LiquidCrystal_I2C' to 'LiquidCrystal*'
c:\Users\woody\Documents\GitHub\i2c display\libraries\LCDBigNumbers\src/LCDBigNumbers.hpp:287:7: note: candidate: constexpr LCDBigNumbers::LCDBigNumbers(const LCDBigNumbers&)
class LCDBigNumbers: public Print {
^~~~~~~~~~~~~
c:\Users\woody\Documents\GitHub\i2c display\libraries\LCDBigNumbers\src/LCDBigNumbers.hpp:287:7: note: candidate expects 1 argument, 2 provided
Beta Was this translation helpful? Give feedback.
All reactions