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
Simply, all I want to do is pass the value of the register to the function, and the function would then return me a number or hex value so I know what is set for this register. I have tried the above but I am not fully sure whether I can use the type Adafruit_BusIO_Register as a regular numbe or hex. Is that possible?
Hello. I am looking into registers and learning various operations with them. I am using LIS3DH accelerometer sensor with the adafruit library.
For some reason, I am having a lot of troubles trying to print out the value of the register. For example, I want to print CTRL1_REG of the LIS3DH.
Inside Adafruit_LIS3DH.cpp file, I have created my own function for reading the register:
Simply, all I want to do is pass the value of the register to the function, and the function would then return me a number or hex value so I know what is set for this register. I have tried the above but I am not fully sure whether I can use the type Adafruit_BusIO_Register as a regular numbe or hex. Is that possible?
In my main arduino code, I call:
But there is an error :
Any help is appreciated. Please suggest me a simplest way how to read a register and print out using serial print
The text was updated successfully, but these errors were encountered: