You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two examples. One is for display and one for fm radio. It would be very helpful to have a sample of data reading from port on groove board itself.
The text was updated successfully, but these errors were encountered:
The analog or digital read are multistep process. Do you think that making a python script executable and having it return just the value back to the shell would work.
I understand but in my case python is excessive dependency. Probably I should try to compile C versions. It will be lighter and faster.
I'm I right that it will be process like described below?
In your step 3) you need to read block data, not just a single byte.
# set pin mode to input on port A0
# send block [5 0 0 0]
i2cset -y 1 0x04 1 5 0 0 0 i
# perform an analog read on port A0
# send block [3 0 0 0]
i2cset -y 1 0x04 1 3 0 0 0 i
# 100 millisecond pause
# give the grovepi some time to process the command
sleep .1
# read a byte
i2cget -y 1 0x04 0
# read i2c block data
i2cget -y 1 0x04 0 4
There are two examples. One is for display and one for fm radio. It would be very helpful to have a sample of data reading from port on groove board itself.
The text was updated successfully, but these errors were encountered: