i2c - input and output on same pin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

i2c - input and output on same pin

Stephen Graf
I have set up i2c bit banging (bashing) on my Orange Pi one - not without
difficulty,  There are three issues I would like to explore:

- existing drivers, gpioiic

- nanosleep

- input/output on same gpio pin

 

Input and Output on same pin

 

On reading the Allwinner H3 documentation I do not see any settings to allow
a bidirectional i/o pin, something that is required for i2c.

Yet the H3 has built in i2c support, so the hardware must be able to do it.

Openbsd only allows setting the direction of the pin at secure level 0. Why?

 

To make my bit-bashing work I tied two pins together and set one up as input
and one as output.