Ik ben hier aan het zoeken hoe ik een LCD scherm met IIC module aan de praat moet krijgen.
Ik heb een youtube filmpje gevolgd ,
en, ik heb die code die ze op het laatste geven , eens ingegeven.
Helaas , het werkt niet, en ik zou wel eens willen weten, hoe dit komt.
Ik heb namelijk de nodige libraries aan arduino toegevoegd,
maar, nog steeds heeft de compiler een hele reeks aan problemen ....
Om een libary te verkrijgen, ga ik naar deze google code site,
https://code.google.com/p/arduino/source/browse/trunk/libraries/Wire/Wire.h?r=1092
Ik copy de code, en plak het in de notebook.
(Ik geef hem de juiste naam, en plaats hem in libraries van Arduino);
Dit zou het toch moeten doen ?
Of niet ??
Dit zijn de foutmeldingen die ik kreeg ...
'LiquidCrystel_I2C' does not name a type
In file included from LCDSchermI2C.ino:5:
D:\Documenten\Arduino\libraries\Wire/Wire.h:3: error: expected unqualified-id before numeric constant
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h:37,
from D:\Documenten\Arduino\libraries\Wire/Wire.h:95,
from LCDSchermI2C.ino:5:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h:159: error: 'int8_t' does not name a type
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h:213: error: 'int8_t' does not name a type
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/WString.h:29,
from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:26,
from D:\Documenten\Arduino\libraries\LiquidCrystal_I2C1602V1/LiquidCrystal_I2C.h:6,
from LCDSchermI2C.ino:8:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:215: error: 'int8_t' does not name a type
In file included from D:\Documenten\Arduino\libraries\LiquidCrystal_I2C1602V1/LiquidCrystal_I2C.h:7,
from LCDSchermI2C.ino:8:
D:\Documenten\Arduino\libraries\Wire/Wire.h:3: error: expected unqualified-id before numeric constant
LCDSchermI2C:11: error: 'LiquidCrystal_I2C' does not name a type
LCDSchermI2C.ino: In function 'void setup()':
LCDSchermI2C:22: error: 'myDisplay' was not declared in this scope
LCDSchermI2C.ino: In function 'void loop()':
LCDSchermI2C:38: error: 'myDisplay' was not declared in this scope
LCDSchermI2C:43: error: 'myDisplay' was not declared in this scope
LCDSchermI2C:48: error: 'myDisplay' was not declared in this scope
(Om eerlijk te zijn, ik verdenk die labraries, maar ik weet niet waar ik andere zou gaan uithalen ...)
Alle hulp is natuurlijk welkom ![]()
LiquidCrystal_I2C.cpp (8.64 KB)
LiquidCrystal_I2C.h (3.35 KB)
Wire.h (2.34 KB)
LCDSchermI2C.ino (3.09 KB)


