Hi there,
I’ve recently bought a bunch of Photons, and they’re awesome; I’ve had no trouble thus far. I’m now wanting to port some Arduino code to the Photons, but running into a few problems (as to be expected). My experience thus far is somewhat limited. I’m using the Particle Dev environment.
When I verify code I get 4 errors:
expected initializer before ‘VFDTUBE_FONT’
the piece of code to which this error refers, looks like:
const uint8_t PROGMEM VFDTUBE_FONT[] PROGMEM =
{
// 0-9
0xb7, 0x22, 0x9b, 0xab, 0x2e,
0xad, 0xbd, 0x23, 0xbf, 0xaf,
// a-z
0xbb, 0xbc, 0x98, 0xba, 0x9f,
0x1d, 0xb5, 0x3c, 0x14, 0xa2,
0x9c, 0x94, 0x37, 0x38, 0xb8,
0x1f, 0x2f, 0x18, 0x2c, 0x1c,
0xb0, 0x90, 0x0e, 0x0f, 0x2a, 0x1a,
};
the other error, of which I have 3, is:
‘word’ has not been declared
one example line is:
void putWord(byte index, word value = 0xff00);
I realise this is all to do with variable declarations, but I’m not yet comfortable with the code. I have only really stuck with the basics until now.
In case you’re wondering, this code is for the VFD modules from DFRobot
If necessary, I can obviously provide more of the code. Please help, it would be amazing getting these VFD modules working on the Photons
Thank you!