Beispiel #1
0
 private int _init()
 {
     if (_i2cio == null)
     {
         _i2cio = new I2CIO();
         if (_i2cio.Begin(_address) == 1)
         {
             _i2cio.PortMode(Constants.OUTPUT); // Set the entire IO extender to OUTPUT
             _displayFunction = Constants.LCD_4BITMODE | Constants.LCD_1LINE | Constants.LCD_5x8DOTS;
             _i2cio.Write(0);                   // Set the entire port to LOW
         }
     }
     return(1);
 }
Beispiel #2
0
 private int _init()
 {
     if (_i2cio == null)
     {
         _i2cio = new I2CIO();
         if (_i2cio.Begin(_address) == 1)
         {
             _i2cio.PortMode(Constants.OUTPUT);  // Set the entire IO extender to OUTPUT
             _displayFunction = Constants.LCD_4BITMODE | Constants.LCD_1LINE | Constants.LCD_5x8DOTS;
             _i2cio.Write(0);  // Set the entire port to LOW
         }
     }
     return 1;
 }