Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C send nack #20

Open
elamre opened this issue Apr 28, 2022 · 1 comment
Open

I2C send nack #20

elamre opened this issue Apr 28, 2022 · 1 comment

Comments

@elamre
Copy link

elamre commented Apr 28, 2022

Hello, is it possible to send a nack back after reading out data? it defaults on an ACK, but some project I'm working on expects a nack after reading out some bytes. I can't find any way to currently do this in Periph.

@maruel
Copy link
Member

maruel commented Apr 28, 2022

Depends on the underlying device driver. For linux, I did:

git clone https://github.com/torvalds/linux
cd linux
git checkout v5.17
git grep -i nack -- "**i2c**" | grep -v "^driver"

I couldn't quickly figure out what's the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants