Timeline for Reading and writing with smbus package
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 12, 2018 at 13:54 | comment | added | Pygmalion | Since you haven't followed my invitation to the chat, I post two questions here: 1. Is there any example on Internet how to use waveforms in pigpio? 2. I would still be interesting to do bitbanging and potentially create a simple library for MCP4728. Is there any example how to bitbang in open drain mode in pigpio? Thanks. | |
Feb 11, 2018 at 12:25 | comment | added | Pygmalion | Let us continue this discussion in chat. | |
Feb 11, 2018 at 12:24 | comment | added | joan |
Find the current address using something like i2cdetect -y 1 (sudo apt-get install i2c-tools if not installed). Then you don't need a response during the write I2C address bits command.
|
|
Feb 11, 2018 at 12:09 | comment | added | Pygmalion |
I need a response and I just don't see how to do it without bit banging. Is there an example of I2C bit banging with pigpio ? Can arbitrary GPIO pins be used? (If so, how to achieve open drain mode?)
|
|
Feb 11, 2018 at 11:57 | comment | added | joan | pigpio does support I2C bit banging, but there is little need to use it anymore on the Pi. I would probably use pigpio waves to generate the waveform you need (assuming you are not interested in any response from the device you are programming). | |
Feb 11, 2018 at 11:35 | comment | added | Pygmalion |
Could pigpio package be used for bit banging? Does it have a command to put arbitrary GPIO in open drain mode? Or perhaps hardware does not allow this state for GPIO and I have to do bit banging using I2C pins?
|
|
Feb 10, 2018 at 22:47 | comment | added | Pygmalion | Is that complicate to do, any instructions on that? | |
Feb 10, 2018 at 22:45 | comment | added | joan | You will need to bit bang the all the signals yourself (i.e. SDA/SCL/LDAC). I am not aware of any SMBus or I2C implementation which has "hooks" to allow such control. | |
Feb 10, 2018 at 22:40 | comment | added | Pygmalion |
I am aware of that. But is it possible to tell smbus to stop sending data to I2C after 8th bit, then lower the LDAC "manually" and then tell smbus to continue sending bits?
|
|
Feb 10, 2018 at 22:11 | history | answered | joan | CC BY-SA 3.0 |