Recent

Author Topic: Does anybody have I2c example code for the RPI_HAL ? i2c_string_write  (Read 1513 times)

pascalbythree

  • Jr. Member
  • **
  • Posts: 68
Does anybody have I2C example code for the RPI_HAL ?

Using these functions:

Code: Pascal  [Select]
  1. function  i2c_bus_write(baseadr,reg:word; var data:databuf_t; lgt:byte; testnr:integer) : integer;
  2.  
  3. function  i2c_string_write(baseadr,reg:word; s:string; testnr:integer) : integer;
  4. // write to the  i2c general purpose bus e.g.
  5. //  i2c_string_write($68,$00,#$01+#$02+#$03)

Greets, Wouter van Wegen

woutervanwegen@mijnplinq.nl
« Last Edit: November 09, 2016, 03:52:40 pm by pascalbythree »