goodmanrs / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

U8GLIB_PCF8812 #228

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. I was trying to use the PCF8812 library here by running an LCD siemens A70 
but I can not compile.
2. I'm using the Arduino IDE 1.5.2, U8glib 1:14 and my operating system is 
Windows 7.
3. When you try to compile it gives the following error (In file included from 
HelloWorld.ino:42:
c:/program 
files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/U8glib/U8glib.h: In 
constructor 'U8GLIB_PCF8812::U8GLIB_PCF8812(uint8_t, uint8_t, uint8_t, uint8_t, 
uint8_t)':
c:/program 
files/arduino/hardware/tools/avr/lib/gcc/../../avr/include/U8glib/U8glib.h:911: 
error: 'u8g_dev_pcf8812_96x65_sw_spi' was not declared in this scope) I believe 
the following file is missing
"u8g_dev_pcf8812_96x65_sw_spi"
I would appreciate if you could help.

Thank you
José Rodrigues

Original issue reported on code.google.com by Josemap...@gmail.com on 31 Dec 2013 at 6:45

GoogleCodeExporter commented 8 years ago
I have tried to reproduce the error, but IDE 1.5.4 works very well with this 
constructor. I do not get the error message.
Can you try IDE 1.5.4? Also: Please delete U8glib and reinstall a fresh version 
of it.

Original comment by olikr...@gmail.com on 1 Jan 2014 at 1:30

GoogleCodeExporter commented 8 years ago
Continues to give an error in the compilation as you can see below, I'm using 
now the Arduino IDE 1.5.5 + U8glib v1.15.

Arduino: 1.5.5 (Windows 7), Placa:"Arduino Mega or Mega 2560, ATmega2560 (Mega 
2560)"

In file included from HelloWorld.ino:42:
/U8glib.h: In member function 'void U8GLIB::drawTriangle(uint16_t, uint16_t, 
uint16_t, uint16_t, uint16_t, uint16_t)':
U8glib.h:152: error: 'u8g_DrawTriangle' was not declared in this scope
/U8glib.h: In constructor 'U8GLIB_UC1608_240X64::U8GLIB_UC1608_240X64(uint8_t, 
uint8_t, uint8_t, uint8_t, uint8_t)':
U8glib.h:460: error: 'u8g_dev_uc1608_240x64_sw_spi' was not declared in this 
scope
/U8glib.h: In constructor 'U8GLIB_UC1608_240X64::U8GLIB_UC1608_240X64(uint8_t, 
uint8_t, uint8_t)':
U8glib.h:463: error: 'u8g_dev_uc1608_240x64_hw_spi' was not declared in this 
scope
/U8glib.h: In constructor 
'U8GLIB_UC1608_240X64_2X::U8GLIB_UC1608_240X64_2X(uint8_t, uint8_t, uint8_t, 
uint8_t, uint8_t)':
U8glib.h:471: error: 'u8g_dev_uc1608_240x64_2x_sw_spi' was not declared in this 
scope
/U8glib.h: In constructor 
'U8GLIB_UC1608_240X64_2X::U8GLIB_UC1608_240X64_2X(uint8_t, uint8_t, uint8_t)':
U8glib.h:474: error: 'u8g_dev_uc1608_240x64_2x_hw_spi' was not declared in this 
scope
/U8glib.h: In constructor 'U8GLIB_PCF8812::U8GLIB_PCF8812(uint8_t, uint8_t, 
uint8_t, uint8_t, uint8_t)':
U8glib.h:938: error: 'u8g_dev_pcf8812_96x65_sw_spi' was not declared in this 
scope
HelloWorld.ino: In function 'void draw()':
HelloWorld:121: error: 'u8g' was not declared in this scope
HelloWorld.ino: In function 'void setup()':
HelloWorld:135: error: 'u8g' was not declared in this scope
HelloWorld.ino: In function 'void loop()':
HelloWorld:151: error: 'u8g' was not declared in this scope

You can also see the error in the image. 
http://img585.imageshack.us/img585/3180/696n.png

Thank you
José Rodrigues

Original comment by Josemap...@gmail.com on 3 Jan 2014 at 7:57

GoogleCodeExporter commented 8 years ago
To ideas come into my mind:
1. How did you install U8glib. Using the library import feature should work for 
example. It seems that the utility folder is not found
2. You must uncomment at least one constructor (but this might be a result of 
the previous errors)

Original comment by olikr...@gmail.com on 3 Jan 2014 at 9:29

GoogleCodeExporter commented 8 years ago
somehow it seems that some lib versions are mixed up. Maybe you have installed 
different versions. You should remove all U8glib variants and reinstall a new 
version (i suggest 1.14, 1.15 has not been tested very much)

Oliver

Original comment by olikr...@gmail.com on 3 Jan 2014 at 9:53

GoogleCodeExporter commented 8 years ago
The operation that did was the following:
1 - extract the file "U8glib v1.14.zip"
2 - Copy the file "HelloWorld.ino" for "U8glib" folder, which was created in 
the extraction file "U8glib v1.14.zip"
3 - Rename the "U8glib" folder to "HelloWorld" for working with the Arduino IDE 
(the Arduino requires the file that is open is inside a folder with the same 
name), so I had to rename the folder.
4 - Remove the slash "//" on line 80 (U8GLIB_PCF8812 u8g(13, 11, 10, 9, 8);     // 
SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9, Reset = 8)
5 - send the Arduino IDE verify the project.

The error it gives is the following:
Arduino: 1.5.5 (Windows 7), Placa:"Arduino Mega or Mega 2560, ATmega2560 (Mega 
2560)"

Using library U8glib in folder: 
C:\Users\Portatil\Documents\Arduino\libraries\U8glib (pre-1.5)

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w 
-fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 
-DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR 
-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program 
Files\Arduino\hardware\arduino\avr\variants\mega 
-IC:\Users\Portatil\Documents\Arduino\libraries\U8glib 
C:\Users\Portatil\AppData\Local\Temp\build4105674312307608213.tmp\HelloWorld.cpp
 -o 
C:\Users\Portatil\AppData\Local\Temp\build4105674312307608213.tmp\HelloWorld.cpp
.o 

In file included from HelloWorld.ino:42:
C:\Users\Portatil\AppData\Local\Temp\build4105674312307608213.tmp\/U8glib.h: In 
constructor 'U8GLIB_PCF8812::U8GLIB_PCF8812(uint8_t, uint8_t, uint8_t, uint8_t, 
uint8_t)':
C:\Users\Portatil\AppData\Local\Temp\build4105674312307608213.tmp\/U8glib.h:911:
 error: 'u8g_dev_pcf8812_96x65_sw_spi' was not declared in this scope

What am I doing wrong?

Thank you
José Rodrigues

Original comment by Josemap...@gmail.com on 3 Jan 2014 at 8:50

GoogleCodeExporter commented 8 years ago
hmmm i have to tested this with windows 7, but you should use the library 
import menu from the ide to import the library.
After that, all U8glib examples must be available in the example menu from the 
IDE.
There is no need to copy/move any example .ino files
Then again: Esure that no other variants are installed. I do not know where 
libs get installed....

Original comment by olikr...@gmail.com on 3 Jan 2014 at 9:15

GoogleCodeExporter commented 8 years ago
Ok now made ​​without verification errors.

Thank you
José Rodrigues

Original comment by Josemap...@gmail.com on 4 Jan 2014 at 7:49

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 22 Jan 2014 at 8:22