Outputs i2c interfaces (clock+data). More...
Go to the source code of this file.
Functions | |
void | i2c_pulse_0 () |
i2c test routine | |
void | i2c_pulse_1 () |
i2c test routine | |
void | i2c_setup_io () |
Setup ports and pins for i2c output. | |
void | i2c_write (uns8 data) |
Send a byte of data using software i2c. | |
void | i2c_write_lsb (uns8 data) |
Send a byte of data using software i2c. |
Covers standard i2c-like interfaces (clock + data) and Sure Electronics displays which are a little different
void i2c_pulse_0 | ( | ) |
void i2c_pulse_1 | ( | ) |
void i2c_setup_io | ( | ) |
Setup ports and pins for i2c output
Setup ports and pins for i2c output.
Set port and pins correctly for I2C communication
00235 { 00236 make_output(i2c_scl_port, i2c_scl_pin); 00237 make_input(i2c_sda_port, i2c_sda_pin); 00238 }
void i2c_write | ( | uns8 | data | ) |
Sends a byte of data MSB first, data only changes on clock low
void i2c_write_lsb | ( | uns8 | data | ) |
Sends a byte of data LSB first, data only changes on clock low