Mijn vraag
...hallo
ik heb een arduino uno ,met een display 12864B v2.0
nu krijg ik alle voorbeelden van de glcd library fouten.
dit is de example.
/*
GLCD Library - Hello World
This sketch prints "Hello World!" to the LCD
and shows the time in seconds since reset.
The circuit:
See the inlcuded documentation in glcd/doc directory for how to wire
up the glcd module. glcd/doc/GLCDref.htm can be viewed in your browser
by clicking on the file.
*/
// include the library header
#include <glcd.h>
// include the Fonts
#include <fonts/allFonts.h>
void setup() {
// Initialize the GLCD
GLCD.Init();
// Select the font for the default text area
GLCD.SelectFont(System5x7);
GLCD.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
GLCD.CursorTo(0, 1);
// print the number of seconds since reset:
GLCD.print(millis()/1000);
}
en dit de fout melding.
Build-opties gewijzigd, alles wordt opnieuw gebuild
In file included from /Users/mabbekerkoud/Documents/Arduino/libraries/glcd/glcd.h:38:0,
from ks0108example.pde:12:
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/fonts/Arial14.h:55:27: error: variable 'Arial_14' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t Arial_14[] PROGMEM = {
^
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/fonts/SystemFont5x7.h:48:28: error: variable 'System5x7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t System5x7[] PROGMEM = {
^
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/bitmaps/ArduinoIcon64x64.h:11:35: error: variable 'ArduinoIcon64x64' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ArduinoIcon64x64[] PROGMEM = {
^
Fout bij compileren.
als ik de regels weg haal,van de fonts compileert hij wel,maar ja dan geen tekst he.
wie weet het??
Relevante software en hardware die ik gebruik
...
Wat ik al gevonden of geprobeerd heb
...
...hallo
ik heb een arduino uno ,met een display 12864B v2.0
nu krijg ik alle voorbeelden van de glcd library fouten.
dit is de example.
/*
GLCD Library - Hello World
This sketch prints "Hello World!" to the LCD
and shows the time in seconds since reset.
The circuit:
See the inlcuded documentation in glcd/doc directory for how to wire
up the glcd module. glcd/doc/GLCDref.htm can be viewed in your browser
by clicking on the file.
*/
// include the library header
#include <glcd.h>
// include the Fonts
#include <fonts/allFonts.h>
void setup() {
// Initialize the GLCD
GLCD.Init();
// Select the font for the default text area
GLCD.SelectFont(System5x7);
GLCD.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
GLCD.CursorTo(0, 1);
// print the number of seconds since reset:
GLCD.print(millis()/1000);
}
en dit de fout melding.
Build-opties gewijzigd, alles wordt opnieuw gebuild
In file included from /Users/mabbekerkoud/Documents/Arduino/libraries/glcd/glcd.h:38:0,
from ks0108example.pde:12:
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/fonts/Arial14.h:55:27: error: variable 'Arial_14' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t Arial_14[] PROGMEM = {
^
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/fonts/SystemFont5x7.h:48:28: error: variable 'System5x7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t System5x7[] PROGMEM = {
^
/Users/mabbekerkoud/Documents/Arduino/libraries/glcd/bitmaps/ArduinoIcon64x64.h:11:35: error: variable 'ArduinoIcon64x64' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ArduinoIcon64x64[] PROGMEM = {
^
Fout bij compileren.
als ik de regels weg haal,van de fonts compileert hij wel,maar ja dan geen tekst he.
wie weet het??
Relevante software en hardware die ik gebruik
...
Wat ik al gevonden of geprobeerd heb
...