I'm currently use the differential pressure sensor D6F-PH from OMRON with my LOPY. Unfortunatly It seems there's no driver for this sensor. And the data sheet seems indistinct for this purpose.
any help ?
Thanks a lot !
Now I must translate ARDUINO code
you must pass bytes
Thanks a lot ... but
my initialization code for instance based on ARDUINO example :
def initialize ():
#INITIALIZATION AFTER POWER UP i2c = I2C(0, I2C.MASTER) # create and init as a master #i2c.init(I2C.MASTER) # configure the I2C bus i2c.init(I2C.MASTER, baudrate=400000) # init as a master i2c.writeto(0x6C, 0x0B) i2c.writeto(0x6C, 0x00) print ("Initialization done: ")
give me :
TypeError: object with buffer protocol required for this line :
I don't understand.. what's the correct instruction ?
Thanks for help
it is i2c based and because of that it is simple to use
look into this thread
you must only convert code to micropython which is also quite simple