Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select). ES200 fork with line 31 of motor.cpp modified.

Dependents:   Fa2018-es200-1121-3321-thread-example Fa2018-es200-1121-3321-thread-example-peanut Fa2018-es200-1121-3321-thread-example-herndon Fa2018-es200-1121-3321-thread-example-rockem

Fork of Motor by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Tue Nov 23 16:16:43 2010 +0000
Parent:
1:e341f695742a
Child:
3:2fb29b1f7d1c
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
--- 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
--- 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 {