Salinity and temperature sensors are implemented in classes.

Dependencies:   mbed

Printer.h

Committer:
mariosimaremare
Date:
2016-06-22
Revision:
11:dcaaf1bb21ce
Parent:
5:4cbe44452889
Child:
15:e112bab9aa2f

File content as of revision 11:dcaaf1bb21ce:

/*
* G3: WATERPLAY
*/

#ifndef PRINTER_H
#define PRINTER_H

#include "mbed.h"
#include "TextLCD.h"

class Printer
{
public:
    Printer(
        mbed::Serial &serial,
        TextLCD &lcd
    );
    void toSerial(char* message);
    void toLCD(char* message);
    void toBoth(char* message);
    void toBothln(char* message);
    void display();
    void display(double salinity, char* salinityStatus, double temperature, char* temperatureStatus);
    void display(char* salinityStrStatus, char* temperatureStrStatus);

private:
    Serial &_serial;
    TextLCD &_lcd;
    char* _serial_message;
    char* _lcd_message;
};

#endif