denisgoriachev / liquid_crystal_i2c_avr Goto Github PK
View Code? Open in Web Editor NEWPort of Arduino Liquid Crystal I2C library for generic ATmega Controller
License: MIT License
Port of Arduino Liquid Crystal I2C library for generic ATmega Controller
License: MIT License
Hi denisgoriachev,
thank you so much for your library. It is very great. But when I follow your instructions, I get this error(s).
#define F_CPU 160000000 // 16 MHz
#include <avr/io.h>
#include <util/delay.h>
#include "liquid_crystal_i2c.h"
int main(void) {
LiquidCrystalDevice_t device = lq_init(0x27, 20, 4, LCD_5x8DOTS); // intialize 4-lines display
lq_turnOnBacklight(&device); // simply turning on the backlight
lq_print(&device, "Hello world!");
lq_setCursor(&device, 1, 0); // moving cursor to the next line
lq_print(&device, "How are you?");
}
sketch\liquid_crystal_i2c.c.o (symbol from plugin): In function `i2c_getErrorMessage':
(.text+0x0): multiple definition of `i2c_getErrorMessage'
sketch\i2c_master.c.o (symbol from plugin):(.text+0x0): first defined here
C:\Users**\AppData\Local\Temp\ccKOLEcc.ltrans0.ltrans.o: In function `main':
C:\Users**\Desktop\Test-i2c/Test-i2c.ino:9: undefined reference to `lq_init(unsigned char, unsigned char, unsigned char, unsigned char)'
C:\Users*\Desktop\Test-i2c/Test-i2c.ino:11: undefined reference to `lq_turnOnBacklight(LiquidCrystalDevice_t)'
C:\Users*\Desktop\Test-i2c/Test-i2c.ino:13: undefined reference to `lq_print(LiquidCrystalDevice_t, char*)'
C:\Users*\Desktop\Test-i2c/Test-i2c.ino:14: undefined reference to `lq_setCursor(LiquidCrystalDevice_t, unsigned char, unsigned char)'
C:\Users*\Desktop\Test-i2c/Test-i2c.ino:15: undefined reference to `lq_print(LiquidCrystalDevice_t, char*)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Uno."
So I wonder that maybe I miss-understand something in your instruction. Could you spot that for me?
Thank you so much. Have a nice day.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.