Library creation

Committer:
GlessConsult
Date:
Thu Mar 17 17:53:43 2016 +0000
Revision:
0:bd5d25911e06
A little library to control a Mobius ActionCam by connecting the USB interface via relays.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GlessConsult 0:bd5d25911e06 1 #ifndef MBED_MOBIUS_H
GlessConsult 0:bd5d25911e06 2 #define MBED_MOBIUS_H
GlessConsult 0:bd5d25911e06 3
GlessConsult 0:bd5d25911e06 4 #include "mbed.h"
GlessConsult 0:bd5d25911e06 5 #include "USBHostMSD.h"
GlessConsult 0:bd5d25911e06 6
GlessConsult 0:bd5d25911e06 7 class MobiusCam {
GlessConsult 0:bd5d25911e06 8 public:
GlessConsult 0:bd5d25911e06 9 MobiusCam(PinName camV5V, PinName camUSB) : _camV5V(camV5V), _camUSB(camUSB), _msd("usb") {
GlessConsult 0:bd5d25911e06 10 _camV5V = 0;
GlessConsult 0:bd5d25911e06 11 _camUSB = 0;
GlessConsult 0:bd5d25911e06 12 }
GlessConsult 0:bd5d25911e06 13
GlessConsult 0:bd5d25911e06 14 void clip(int t);
GlessConsult 0:bd5d25911e06 15 void directory(char *buf, int bufLen);
GlessConsult 0:bd5d25911e06 16
GlessConsult 0:bd5d25911e06 17 private:
GlessConsult 0:bd5d25911e06 18 DigitalOut _camV5V;
GlessConsult 0:bd5d25911e06 19 DigitalOut _camUSB;
GlessConsult 0:bd5d25911e06 20 USBHostMSD _msd;
GlessConsult 0:bd5d25911e06 21 };
GlessConsult 0:bd5d25911e06 22
GlessConsult 0:bd5d25911e06 23 #endif