1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg: u8g2: adapt to new I2C api.

This commit is contained in:
Bas Stottelaar 2018-05-27 23:13:17 +02:00 committed by dylad
parent 5a5caa9851
commit 01d8c7b4f8

View File

@ -162,7 +162,6 @@ uint8_t u8x8_byte_riotos_hw_i2c(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void
index += arg_int;
break;
case U8X8_MSG_BYTE_INIT:
i2c_init_master(dev, I2C_SPEED_FAST);
break;
case U8X8_MSG_BYTE_SET_DC:
break;
@ -171,7 +170,7 @@ uint8_t u8x8_byte_riotos_hw_i2c(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void
index = 0;
break;
case U8X8_MSG_BYTE_END_TRANSFER:
i2c_write_bytes(dev, u8x8_GetI2CAddress(u8g2), buffer, index);
i2c_write_bytes(dev, u8x8_GetI2CAddress(u8g2), buffer, index, 0);
i2c_release(dev);
break;
default: