qub1750ul / arduino_l293 Goto Github PK
View Code? Open in Web Editor NEWArduino library that allows to control electric motors with the L293x and L298x compatible modules
License: Creative Commons Attribution Share Alike 4.0 International
Arduino library that allows to control electric motors with the L293x and L298x compatible modules
License: Creative Commons Attribution Share Alike 4.0 International
The examples won't compile. Installed via library manager in Arduino IDE 1.8.5.
Error Code:
Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328P"
In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15:0,
from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:20:16: warning: inline function 'virtual void L293::forward(uint8_t)' used but never defined
inline void forward( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go forward and sets a new speed value
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:21:16: warning: inline function 'virtual void L293::back(uint8_t)' used but never defined
inline void back( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go reverse and sets a new speed value
In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:3:0,
from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15,
from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined
inline void stop() const ; ///< Stops the motor by power reduction
In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293.h:15:0,
from C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo\MotorControl_Demo.ino:44:
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:22:16: warning: inline function 'virtual bool L293::isForward() const' used but never defined
inline bool isForward() const override ; ///< Tells the information about the motor that the name says
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:23:16: warning: inline function 'virtual bool L293::isReverse() const' used but never defined
inline bool isReverse() const override ; ///< Tells the information about the motor that the name says
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:24:16: warning: inline function 'virtual bool L293::isStopped() const' used but never defined
inline bool isStopped() const override ; ///< Tells the information about the motor that the name says
In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_std.hpp:3:0,
from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_std.cpp:1:
C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined
inline void stop() const ; ///< Stops the motor by power reduction
C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:21:19: warning: inline function 'uint8_t L293_base::getPWMDC() const' used but never defined
inline uint8_t getPWMDC() const ; ///< Return the effective last set speed value
In file included from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_twoWire.hpp:3:0,
from C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_twoWire.cpp:1:
C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:19:18: warning: inline function 'void L293_base::stop() const' used but never defined
inline void stop() const ; ///< Stops the motor by power reduction
C:\Users\MrX\Documents\Arduino\libraries\L293\src\L293_base.hpp:21:19: warning: inline function 'uint8_t L293_base::getPWMDC() const' used but never defined
inline uint8_t getPWMDC() const ; ///< Return the effective last set speed value
Archiving built core (caching) in: C:\Users\MrX\AppData\Local\Temp\arduino_cache_986469\core\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a
C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::back(unsigned char)':
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:39: undefined reference to `L293_base::stop() const'
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:42: undefined reference to `L293_base::getPWMDC() const'
C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::forward(unsigned char)':
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:29: undefined reference to `L293_base::stop() const'
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.cpp:32: undefined reference to `L293_base::getPWMDC() const'
C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `L293::~L293()':
C:\Users\MrX\Documents\Arduino\libraries\L293\src/L293_std.hpp:11: undefined reference to `L293_base::~L293_base()'
C:\Users\MrX\AppData\Local\Temp\ccJ1F5xU.ltrans0.ltrans.o: In function `loop':
C:\Users\MrX\Documents\Arduino\libraries\L293\examples\MotorControl_Demo/MotorControl_Demo.ino:76: undefined reference to `L293_base::stop() const'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Nano.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi qub1750ul,
Is it possible to use this library to run two DC motor drivers (such as the DRV8870) that use two PWM inputs to control speed and direction?
I assume it could work with the 3 wire setup and just ignore the enable input.
Regards and have a great day.
George
Please read here why it is a bad idea to use the enable pin for pwm control:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.