/* Test library for Display from PHILIPS Navigator F 505-2 Display is controlled by 3 pcs. PCF8576 chips over I2C bus. Address by the Wiring-library in Arduino. Remember, when doing a Wire.beginTransmission, only input 7 bits data and omit the LSB digit (Wiring takes care of the R/W bit itself) */ #include void setup() { Wire.begin(); // join i2c bus (address optional for master) Wire.beginTransmission(B0111001); //adress the upper I2C-controller. Wire.send(B11001110); //MODE SET (Command)(10)(LowPower)(Enable)(Bias) (Mux) // (1) (0) (1) (ΩBias) (1:2) Wire.send(B11100000); //Device select (Command)(1100)(A2 A1 A0) // (1) (0 0 0 ) Wire.send(B11111000); //Bank Select (Command)(11110)(Input)(Output) // (1) (0) (0) Wire.endTransmission(); //--------------------------------------------------------------------------- Wire.beginTransmission(B0111000); //Adress one of the lower I2C-controllers. Wire.send(B11001100); //MODE SET (Command)(10)(LowPower)(Enable)(Bias) (Mux) // (1) (0) (1) (ΩBias) (1:4) Wire.send(B10011001); //Data pointer points at adress "011001" Wire.endTransmission(); } void loop() { Wire.beginTransmission(B0111001); //adress the upper I2C-controller. Wire.send(B00000000); //Data pointer points at adress "000000" Wire.send(B11101101); Wire.send(B00000101); Wire.send(B11011100); Wire.send(B01011101); Wire.send(B00110101); Wire.send(B01111001); Wire.send(B11111001); Wire.send(B00001101); Wire.send(B11111101); Wire.send(B00000000); Wire.endTransmission(); //--------------------------------------------------------------------------- //Send data to lower part of display (18 x 14-segment characters) Wire.beginTransmission(B0111000); //Adress one of the lower I2C-controllers. Wire.send(B10011001); //Data pointer points at adress "011001" Wire.send(B01100000); //Device Select 000 Wire.send(B10110001); Wire.send(B11000000); Wire.send(B00001100); Wire.send(B11100001); Wire.send(B01101000); Wire.send(B00011110); Wire.send(B01010000); Wire.send(B11101101); Wire.send(B10010000); Wire.send(B11110001); Wire.send(B10100000); Wire.send(B00011100); Wire.send(B11110001); Wire.send(B11101101); Wire.send(B00011110); Wire.send(B01110001); Wire.send(B11101000); Wire.send(B00111110); Wire.send(B10110001); Wire.send(B00001000); Wire.send(B00111100); Wire.send(B11110001); Wire.send(B00100111); Wire.send(B00010000); Wire.send(B10110001); Wire.send(B10100111); Wire.send(B00001110); Wire.endTransmission(); delay(50); }