Library for heating Nichrome

Nichrome_lib.h

Committer:
Sigma884
Date:
2020-03-17
Revision:
0:e1e1b1f8c5d9

File content as of revision 0:e1e1b1f8c5d9:

#ifndef NICHROME_LIB_H
#define NICHROME_LIB_H

#include "mbed.h"

class Nichrome_lib{
    
    public:
    Nichrome_lib(PinName userPin);
    bool status;
    private:
    DigitalOut nichrome;
    Nichrome_lib *nlib;
    Timeout stopTime;
    
    public:
    void fire(float time);
    
    public:
    void fire_on();
    
    public:
    void fire_off();
};

#endif