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.
Shieldbot.h
00001 /* 00002 Created to support the release of the Sheildbot from SeeedStudios 00003 http://www.seeedstudio.com/wiki/Shield_Bot 00004 00005 Created by Jacob Rosenthal and Colin Ho, December 30, 2012. 00006 Released into the public domain. 00007 */ 00008 00009 // ensure this library description is only included once 00010 #ifndef Shieldbot_h 00011 #define Shieldbot_h 00012 00013 00014 // include types & constants of Wiring core API 00015 #include "mbed.h" 00016 00017 // library interface description 00018 class Shieldbot 00019 { 00020 // user-accessible "public" interface 00021 public: 00022 Shieldbot(); 00023 int readS1(); 00024 int readS2(); 00025 int readS3(); 00026 int readS4(); 00027 int readS5(); 00028 void setMaxSpeed(int); 00029 void setMaxSpeed(int, int); 00030 void setMaxLeftSpeed(int); 00031 void setMaxRightSpeed(int); 00032 void rightMotor(char); 00033 void leftMotor(char); 00034 void drive(char, char); 00035 void forward(); 00036 void backward(); 00037 void stop(); 00038 void stopRight(); 00039 void stopLeft(); 00040 void fastStopLeft(); 00041 void fastStopRight(); 00042 void fastStop(); 00043 00044 }; 00045 00046 #endif
Generated on Thu Jul 14 2022 04:57:50 by
