emonGLCD error on testing

GLCD_SSM.ino:30:33: error: utility/font_clR4x6.h: No such file or directory
GLCD_SSM.ino:31:35: error: utility/font_courBO14.h: No such file or directory
GLCD_SSM:62: error: 'GLCD_ST7565' does not name a type
GLCD_SSM.ino: In function 'void setup()':
GLCD_SSM:85: error: 'glcd' was not declared in this scope
GLCD_SSM:87: error: 'font_courBO14' was not declared in this scope
GLCD_SSM:89: error: 'font_clR4x6' was not declared in this scope
GLCD_SSM.ino: In function 'void updateScreen()':
GLCD_SSM:129: error: 'glcd' was not declared in this scope
GLCD_SSM:130: error: 'font_clR4x6' was not declared in this scope
GLCD_SSM.ino: In function 'void displayPeak(byte)':
GLCD_SSM:165: error: 'glcd' was not declared in this scope
GLCD_SSM:171: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void checkSwitches()':
GLCD_SSM:239: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void adjustTriggerLevel(boolean)':
GLCD_SSM:285: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void adjustTriggerPosition(boolean)':
GLCD_SSM:294: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void adjustAttenuation(boolean)':
GLCD_SSM:303: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void adjustGlitchDetection(boolean)':
GLCD_SSM:311: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void adjustScale(boolean)':
GLCD_SSM:321: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void displayTriggerLevel(byte)':
GLCD_SSM:344: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void displayAttenuation(byte)':
GLCD_SSM:351: error: 'glcd' was not declared in this scope
GLCD_SSM:352: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void displayGlitchDetection(byte)':
GLCD_SSM:357: error: 'glcd' was not declared in this scope
GLCD_SSM:358: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void displayTriggerPosition(byte)':
GLCD_SSM:363: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void displayScale(byte)':
GLCD_SSM:376: error: 'glcd' was not declared in this scope
GLCD_SSM:390: error: 'glcd' was not declared in this scope
GLCD_SSM.ino: In function 'void powerDown()':
GLCD_SSM:524: error: 'glcd' was not declared in this scope

ukmoose's picture

Re: emonGLCD error on testing

OK is we look at the first two error lines:

error: utility/font_clR4x6.h: No such file or directory
error: utility/font_courBO14.h: No such file or directory

So it can't find the files it is expecting.

In the file GLCD_SSM.ino the following lines show the extra files you need to supply.

#include <JeeLib.h>       // https://github.com/jcw/jeelib (only needed because referenced by GLCDlib)
#include <SPI.h>
#include <GLCD_ST7565.h>  // https://github.com/jcw/glcdlib
#include <EEPROM.h>
#include <avr/sleep.h>
#include "utility/font_clR4x6.h"        
#include "utility/font_courBO14.h"

So which of the libraries you need to download supllies those files?

If you look at the README.md file at https://github.com/openenergymonitor/EmonGLCD

It says one of the files you need to download is: 

https://github.com/jcw/glcdlib  (GLCD library)

This library includes the files that appear to be missing.

 

So check that you have downloaded all the files the README tells you that you need to.

You also need to check that to have installed all of the files in the right arduino directory before you open the Arduino IDE.

 

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.