@Victor-Lucio Please take a look at this: Official Onion Omega2 Documentation I2C Python Module.
'/usr/lib/python2.7/OmegaExpansion/onionI2C.so' is not empty - it's an ELF binary file.
The source code can be found in the Onion i2c-exp-driver GitHub Repo.
An example of how the onionI2C library is used can be found in the i2c-exp-driver repo.
The example code programs the Relay Expansion (an MCP23008 8-bit, general purpose, parallel I/O expansion IC for I2C) directly.
Thank you for responding, the real direction is 0x70 using 7 bits.
In other words is 111-0000.
If I include the bit of R/W, this will be 0 if i want to write a data in the slave(sensor).
.111000-R/W ----------> 11100000
11100000 Is E0 in hex. For this reason, I have several concerns about this module, but I hope to solve it later. Thans again for taking my doubt. I will try to send you 6 bits as data and include the CRC byte. It is likely that when I insert the writeBytes command, the R/W bit is inclued internally without me noticing.
@Cristian-Bourceanu said in Controlling external motors and LED strips with Omega2+:
Normally a MCU can withstand a maximum of 20mA on each GPIO and MT7688 chipset of Omega should have a similar specification.
According to the MT7688 datasheet a GPIO can drive 4 mA.
According to Onion's Omega2S datasheet:
DC current through any digital I/O pin: 8 mA max.