Salinity and temperature sensors are implemented in classes.

Dependencies:   mbed

Committer:
mariosimaremare
Date:
Tue Jun 14 09:14:24 2016 +0000
Revision:
2:ed17e258da0d
Fixing temperature calculation.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mariosimaremare 2:ed17e258da0d 1 #ifndef MBED_DRV8825_H
mariosimaremare 2:ed17e258da0d 2 #define MBED_DRV8825_H
mariosimaremare 2:ed17e258da0d 3 #endif
mariosimaremare 2:ed17e258da0d 4
mariosimaremare 2:ed17e258da0d 5 #include "mbed.h"
mariosimaremare 2:ed17e258da0d 6
mariosimaremare 2:ed17e258da0d 7 class DRV8825
mariosimaremare 2:ed17e258da0d 8 {
mariosimaremare 2:ed17e258da0d 9 public:
mariosimaremare 2:ed17e258da0d 10 DRV8825(PinName _en, PinName m0, PinName m1, PinName m2, PinName _stepPin, PinName dir);
mariosimaremare 2:ed17e258da0d 11 void settings(float microstep, int dir, float speed);
mariosimaremare 2:ed17e258da0d 12 void enable();
mariosimaremare 2:ed17e258da0d 13 void disable();
mariosimaremare 2:ed17e258da0d 14 DigitalOut stepPin;
mariosimaremare 2:ed17e258da0d 15 DigitalOut direction;
mariosimaremare 2:ed17e258da0d 16 private:
mariosimaremare 2:ed17e258da0d 17 DigitalOut en;
mariosimaremare 2:ed17e258da0d 18 BusOut microstepping;
mariosimaremare 2:ed17e258da0d 19 //DigitalOut stepPin;
mariosimaremare 2:ed17e258da0d 20 //DigitalOut direction;
mariosimaremare 2:ed17e258da0d 21 };