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

readReg/writeReg does not read/write properly #25

Open
lcdinh opened this issue Jan 31, 2018 · 0 comments
Open

readReg/writeReg does not read/write properly #25

lcdinh opened this issue Jan 31, 2018 · 0 comments

Comments

@lcdinh
Copy link

lcdinh commented Jan 31, 2018

Hello,

I was trying to run your code on Raspberry Pi 3. The code stuck at this line:
do writeReg(REG_SYNCVALUE1, 0xAA); while (readReg(REG_SYNCVALUE1) != 0xAA);

I turned on printf and see that It writes 0xaa @ 0x2f, but read 0x00 @ 0x2f.

I also ran a loopback test on Pi to make sure SPI interface works properly. Any idea what was the issue?

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

No branches or pull requests

1 participant