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