Download this file
#ifndef RELAY_H
#define RELAY_H

#include 

#define RELAY_OPEN 0
#define RELAY_CLOSED 1

class Relay {
  public:
    Relay();
    void open();
    void close();
    uint8_t get_state();
  private:
    uint8_t state;
    Port port;
}; 

#endif
// vim:ft=arduino