Funzioni di IO varie con seriale asincrona

Dependents:   Nucleo_AsyncSerialIO

Fork of IOFuncLib by Max Scordamaglia

IOFuncLib.h

Committer:
MaxScorda
Date:
2015-05-24
Revision:
1:58f3784ad68e
Parent:
0:f401aa69861a
Child:
2:8e723d99838e

File content as of revision 1:58f3784ad68e:

#ifndef IOFUNCLIB_H
#define IOFUNCLIB_H

#include "mbed.h"

class Flasher
{
public:
    Flasher(PinName pin);
    void flash(int n);
    void onOff(bool n);
    void notPin();

private:
    DigitalOut _pin;
};


class Screen
{
public:
    Screen(Serial* ps);
    void banner();
    void pressed();
    
private:
    /**
     * Receive bytes from the serial port and store it into the receive queue.
     */
    Serial* _ps;
};

#endif