Saeterncj / MX1508

Arduino library for MX1508 dual DC motor driver
MIT License
35 stars 15 forks source link

Error with ICR1 not declared in scope #5

Open SeanDolan opened 3 years ago

SeanDolan commented 3 years ago

There are a number of errors when trying to verify the example sketches. The first one (after the number of pins issue I also opened) is this, just from any of the example files:

C:\Users\xxxxx\Documents\Arduino\libraries\MX1508\MX1508.cpp: In member function 'void MX1508::setResolution(unsigned int)': C:\Users\xxxxx\Documents\Arduino\libraries\MX1508\MX1508.cpp:32:25: error: 'ICR1' was not declared in this scope if(_useAnalogWrite16) ICR1 = pwmResolution;

SeanDolan commented 3 years ago

I believe this is because I tried to compile for an ESP32 device. Attempting to perform the compile for Arduino Uno works fine. Is there a way to get this working on ESP32?