Subversion Repositories group.electronics

Rev

Rev 186 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 186 Rev 188
Line 142... Line 142...
142
            
142
            
143
        }
143
        }
144
 
144
 
145
        public int oled_command(byte c) {
145
        public int oled_command(byte c) {
146
            byte[] data = { 0x00, c };
146
            byte[] data = { 0x00, c };
-
 
147
 
147
            
148
            i2c.SetGpio(0, 1);
148
            i2c.WriteI2cData(i2cUtils.addressToWrite(this.i2caddr), data, 2); ;
149
            i2c.WriteI2cData(i2cUtils.addressToWrite(this.i2caddr), data, 2);
149
            
150
            i2c.SetGpio(0, 0);
150
            return 0;
151
            return 0;
151
        }
152
        }
152
    }
153
    }
153
 
154
 
154
    public class BmpImage {
155
    public class BmpImage {