I use the Encoder Library on a Project that uses a Photon.
I would like to write the project for a Argon, but I get a error when Compiling for a Argon…
Encoder.h:35:63: 'NRF5x_Pin_Info {aka struct NRF5x_Pin_Info}' has no member named 'gpio_peripheral'
error
Encoder.h:35:63: 'NRF5x_Pin_Info {aka struct NRF5x_Pin_Info}' has no member named 'gpio_peripheral'
I’m not sure where to start looking for a fix for this.
thanks in advance for any help.
He did ask me I don’t have time at the moment to look into porting the encoder library to the Nordic microcontroller but I will gladly merge a pull request with changes and release a new version.
Have you had a chance to look at this @rickkas7 ?
I’d like to work on this project during thanksgiving, but I need this library.
Could you point me in the right direction, maybe I can fix it?
Since the Encoder library is really just the header file Encoder.h, I’d grab the file from the library and add it into your project directly and remove the Encoder library. Then change this little block of code at the top of the file:
Seems like I may not have the correct pins assigned to the Encoder Object. Where Can I find which pins can be used as interrupt pins? the Documentation for attachInterrupt() only lists the non-mesh hardware’s Interrupt pins.
Per @rickkas7 advice above, I have submitted a pull request to @jvanier on Github. Hopefully others will be able to use the library soon without having to dig.