Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
L298LIB.h
00001 #ifndef L298LIB_h 00002 #define L298LIB_h 00003 #include "mbed.h" 00004 class L298LIB 00005 { 00006 public: 00007 L298LIB(PinName pinEnable, PinName pinIN1, PinName pinIN2, PinName pinIN3, PinName pinIN4); 00008 void setSpeed(float pwmVal); 00009 float getSpeed(); 00010 void forward(); 00011 void backward(); 00012 void stop(); 00013 void run(float velocity); 00014 private: 00015 PwmOut _pwm; 00016 DigitalOut _pinIN1; 00017 DigitalOut _pinIN2; 00018 DigitalOut _pinIN3; 00019 DigitalOut _pinIN4; 00020 }; 00021 #endif
Generated on Thu Jul 14 2022 09:41:36 by
1.7.2