Library for heating Nichrome
Nichrome_lib.h@0:e1e1b1f8c5d9, 2020-03-17 (annotated)
- Committer:
- Sigma884
- Date:
- Tue Mar 17 12:30:27 2020 +0000
- Revision:
- 0:e1e1b1f8c5d9
commit for publish stability_seed2019_v1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sigma884 | 0:e1e1b1f8c5d9 | 1 | #ifndef NICHROME_LIB_H |
Sigma884 | 0:e1e1b1f8c5d9 | 2 | #define NICHROME_LIB_H |
Sigma884 | 0:e1e1b1f8c5d9 | 3 | |
Sigma884 | 0:e1e1b1f8c5d9 | 4 | #include "mbed.h" |
Sigma884 | 0:e1e1b1f8c5d9 | 5 | |
Sigma884 | 0:e1e1b1f8c5d9 | 6 | class Nichrome_lib{ |
Sigma884 | 0:e1e1b1f8c5d9 | 7 | |
Sigma884 | 0:e1e1b1f8c5d9 | 8 | public: |
Sigma884 | 0:e1e1b1f8c5d9 | 9 | Nichrome_lib(PinName userPin); |
Sigma884 | 0:e1e1b1f8c5d9 | 10 | bool status; |
Sigma884 | 0:e1e1b1f8c5d9 | 11 | private: |
Sigma884 | 0:e1e1b1f8c5d9 | 12 | DigitalOut nichrome; |
Sigma884 | 0:e1e1b1f8c5d9 | 13 | Nichrome_lib *nlib; |
Sigma884 | 0:e1e1b1f8c5d9 | 14 | Timeout stopTime; |
Sigma884 | 0:e1e1b1f8c5d9 | 15 | |
Sigma884 | 0:e1e1b1f8c5d9 | 16 | public: |
Sigma884 | 0:e1e1b1f8c5d9 | 17 | void fire(float time); |
Sigma884 | 0:e1e1b1f8c5d9 | 18 | |
Sigma884 | 0:e1e1b1f8c5d9 | 19 | public: |
Sigma884 | 0:e1e1b1f8c5d9 | 20 | void fire_on(); |
Sigma884 | 0:e1e1b1f8c5d9 | 21 | |
Sigma884 | 0:e1e1b1f8c5d9 | 22 | public: |
Sigma884 | 0:e1e1b1f8c5d9 | 23 | void fire_off(); |
Sigma884 | 0:e1e1b1f8c5d9 | 24 | }; |
Sigma884 | 0:e1e1b1f8c5d9 | 25 | |
Sigma884 | 0:e1e1b1f8c5d9 | 26 | #endif |