Library for heating Nichrome

Revision:
0:e1e1b1f8c5d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Nichrome_lib.h	Tue Mar 17 12:30:27 2020 +0000
@@ -0,0 +1,26 @@
+#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
\ No newline at end of file