Does anybody have I2C example code for the RPI_HAL ?
Using these functions:
function i2c_bus_write(baseadr,reg:word; var data:databuf_t; lgt:byte; testnr:integer) : integer;
function i2c_string_write(baseadr,reg:word; s:string; testnr:integer) : integer;
// write to the i2c general purpose bus e.g.
// i2c_string_write($68,$00,#$01+#$02+#$03)
Greets, Wouter van Wegenwoutervanwegen@mijnplinq.nl