i have a working 8 char 16-segment display that I will be doubleing up to make a 16 char display.
Currently it runs from a MAX6955 chip that I have sampled and solderedto a breakout board.
I have found very little documentation on how to "write" to this chip.
As it is I2C, I have to send data to each digit register seperately, Currently I have a string, which I have seperated using
for( int x = 0; x<[i]string[/i].length(); x++){
[i]string[/i].charAt(x)
if(x == 0) {
digit0 = x;
}
else if (x == 1) {
digit1 = x;
}
etc...
// now all the digits are loaded with wat they have to be show them;
show();
}
Show() is a simple function that consists of:
void show() {
Wire.beginTransmission(maxAddress);
Wire.write(0x20) //first char register;
Wire.write(digit0);
Wire.write(digit1);
Wire.write(digit2);
Wire.write(digit3);
Wire.write(digit4);
Wire.write(digit5);
Wire.write(digit6);
Wire.write(digit7);
Wire.endTransmission();
}
Ideailly I want to write a libary for this so I can give back to the community, but I want to create a function whereby I can call what I want to display like you can in LCD by calling:
lcd.print("Hello");
There has to be a way of breaking down the input to do it, I will not always be wanting to use strings, as it is going to display raw variables also such as temperature, pressure and fluid levels.
I have tried reading the LCD libary but I cannot find where it breaks down what is fead to it and sends it to the display.