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.
Diff: MDDS30_oit.h
- Revision:
- 4:085a9c395959
- Parent:
- 3:a64fd9b238c5
--- a/MDDS30_oit.h Thu Jul 22 01:06:29 2021 +0000
+++ b/MDDS30_oit.h Sat Jul 24 11:13:57 2021 +0000
@@ -2,16 +2,18 @@
#define MDDS30_OIT_H
#include "mbed.h"
+
class MDDS30oit{
public:
MDDS30oit(PinName _txpin, PinName _rxpin);
Serial md;
- int word=1,word2=0;
- int direction=0;
- int leftfront=0;
- int rightfront=0;
- int leftback=0;
- int rightback=0;
+ int word;
+ int word2;
+ int direction;
+ int leftfront;
+ int rightfront;
+ int leftback;
+ int rightback;
void lefttire(float speed);
void righttire(float speed);
};