Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)
Dependents: Motor_HelloWorld Motor_HelloWorld xbee_robot MyFinalDerbot ... more
Revision 2:f265e441bcd9, committed 2010-11-23
- Comitter:
- simon
- Date:
- Tue Nov 23 16:16:43 2010 +0000
- Parent:
- 1:e341f695742a
- Commit message:
- Converted to a library
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
Motor.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e341f695742a -r f265e441bcd9 Motor.cpp --- a/Motor.cpp Sat Jul 10 07:46:17 2010 +0000 +++ b/Motor.cpp Tue Nov 23 16:16:43 2010 +0000 @@ -1,5 +1,5 @@ /* mbed simple H-bridge motor controller - * Copyright (c) 2007-2010, sford + * Copyright (c) 2007-2010, sford, http://mbed.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal
diff -r e341f695742a -r f265e441bcd9 Motor.h --- a/Motor.h Sat Jul 10 07:46:17 2010 +0000 +++ b/Motor.h Tue Nov 23 16:16:43 2010 +0000 @@ -1,5 +1,5 @@ /* mbed simple H-bridge motor controller - * Copyright (c) 2007-2010, sford + * Copyright (c) 2007-2010, sford, http://mbed.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,6 +26,7 @@ #include "mbed.h" /** Interface to control a standard DC motor + * * with an H-bridge using a PwmOut and 2 DigitalOuts */ class Motor {