Sure 3208 LED display font problem

I’m using a Sure 3208 LED display and an Arduino UNO. Connected up like this (but using pins 12,10 and 9 for coms)

Using the libraries from here:
https://github.com/gauravmm/HT1632-for-Arduino

When I run the demos the picture ones work fine (the sail boat, heart and music) but the font ones give an error. Always the same for all font examples

#include <HT1632.h>
#include <font_8x4.h>
#include <images.h>

int i = 0;
int wd;
char disp [] = "Hello, how are you?";

void setup () {
  HT1632.begin(12, 10, 9);
  
  wd = HT1632.getTextWidth(disp, FONT_8X4_END, FONT_8X4_HEIGHT);
}

void loop () {
  
  HT1632.drawTarget(BUFFER_BOARD(1));
  HT1632.clear();
  HT1632.drawText(disp, OUT_SIZE - i, 0, FONT_8X4, FONT_8X4_END, FONT_8X4_HEIGHT);
  HT1632.render();
  
  i = (i+1)%(wd + OUT_SIZE);
  
  delay(100);
}

Error highlights this line: wd = HT1632.getTextWidth(disp, FONT_8X4_END, FONT_8X4_HEIGHT);

Invalid conversion from ‘char*’ to ‘const unsigned char*’

HT1632_Text_8X4.ino: In function ‘void setup()’:
HT1632_Text_8X4:12: error: invalid conversion from ‘char*’ to ‘const unsigned char*’
HT1632_Text_8X4:12: error: initializing argument 1 of ‘int HT1632Class::getTextWidth(const unsigned char*, int*, uint8_t, uint8_t)’
HT1632_Text_8X4.ino: In function ‘void loop()’:
HT1632_Text_8X4:17: error: ‘class HT1632Class’ has no member named ‘drawTarget’
HT1632_Text_8X4:17: error: ‘BUFFER_BOARD’ was not declared in this scope
HT1632_Text_8X4:19: error: invalid conversion from ‘char*’ to ‘const unsigned char*’
HT1632_Text_8X4:19: error: initializing argument 1 of ‘void HT1632Class::drawText(const unsigned char*, int, int, const unsigned char*, int*, uint8_t, uint8_t)’

Using Arduino 1.0.5 IDE

OK. Just been playing with this.

Changed this line:
const unsigned char disp = “Hello, how are you?”;

Also needed to comment out this line
// HT1632.drawTarget(BUFFER_BOARD(1));

It now works.

First change sort of makes sense and is probably obvious to the pro coders but not to us cut’n’pasters. No idea what the line I commented out does.

#include <HT1632.h>
#include <font_5x4.h>
#include <images.h>

int i = 0;
int wd;
const unsigned char disp [] = "Hello, how are you?";

void setup () {
  HT1632.begin(12, 10, 9);
  
  wd = HT1632.getTextWidth(disp, FONT_5X4_END, FONT_5X4_HEIGHT);
}

void loop () {
  
//  HT1632.drawTarget(BUFFER_BOARD(1));
  HT1632.clear();
  HT1632.drawText(disp, OUT_SIZE - i, 2, FONT_5X4, FONT_5X4_END, FONT_5X4_HEIGHT);
  HT1632.render();
  
  i = (i+1)%(wd + OUT_SIZE);
  
  delay(100);
}[code]

Im having problem with the includes. Keeps saying no such file or directory not found. Have you ever come cross this problem? If so, how do you fix it?

I think you need to install the relevant library for that display.

Sketch --> Include Library --> Manage Libraries --> select HT1632 --> More Info --> Install.