I am using latest chibios version and STM32F103xx controller. I want to interface oled ssd1306 display with i2c interface. I got stage where we have to send some commands and the later without stop condition we have to send start condition(Restart condition) and then we have to send data to display.
If i use i2cMasterTransmitTimeout function then it will generate the i2c bus sequence.
following is code snippet i want to convert into chibi i2c format.
Code: Select all
// OLED_command (ind, 0x21) ;
// OLED_command (ind, 0x00);
// OLED_command (ind, 127);
// OLED_command (ind, 0x22) ;
// OLED_command (ind, 0x00);
// OLED_command (ind, 7);
// i2c_start ();
// i2c_write (ind) ;
// i2c_write (0x40) ;
// for (i = 0; i < 1024; i++)
// {
//
// i2c_write (DISPLAY[i]) ;
// }
//
// i2c_stop ();
Thanks..