nwb99 / MCP4151

MIT License
4 stars 1 forks source link

Support for Nano Every? #2

Open Kaldek opened 9 months ago

Kaldek commented 9 months ago

I've used this library for an Arduino Uno, but on my Leonardo with its weird mapping of SPI pins it didn't work. The project this is for is going into a vehicle, where I normally use the Nano Every due to its robust power management, so given the issues with the Leonardo I'm a little gun shy.

Can you tell me if this library will have issues on the Nano Every due to use of Atmega328 specific registers or other issues?

nwb99 commented 8 months ago

Sorry for the late reply-- I'm unsure. You can pass your own pin numbers in the constructor when initializing an object of class MCP4151 (see MCP4151.cpp).

Otherwise my library is relying on the built-in Arduino SPI library (SPI.h), so if it doesn't work on that model, I think it would be an issue elsewhere; then again I haven't used my library in nearly two years, having been busy with other things in life.