-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVDRIVE2.h
More file actions
35 lines (28 loc) · 705 Bytes
/
VDRIVE2.h
File metadata and controls
35 lines (28 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
VDRIVE2 Library
An Arudino Library for basic control of the FTDI VDRIVE2
Uses Vinculum firmware
Created by Matt Westwick on 3/31/2013
Released into the public domain under the GPL licence
*/
#ifndef VDRIVE2_h
#define VDRIVE2_h
#include "Arduino.h"
class VDRIVE2
{
public:
VDRIVE2(int baudrate, int CTS, int CTR);
void Initialize();
void OpenFile(String FILENAME, byte* DATETIME, bool n);
void CloseFile(String FILENAME, bool n);
void WriteFileData(double* DATA, int columns, bool n);
void WriteFileString(String DATA, bool n);
bool QueryDisk();
void ViewStatus();
private:
String printDouble( double val, byte precision);
int _CTS;
int _CTR;
int _baudrate;
};
#endif