Forklift lift thread
lift.h@0:fb7984ae3c0c, 2017-08-23 (annotated)
- Committer:
- williampeers
- Date:
- Wed Aug 23 02:25:54 2017 +0000
- Revision:
- 0:fb7984ae3c0c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
williampeers | 0:fb7984ae3c0c | 1 | #ifndef __LIFT_INCLUDED__ |
williampeers | 0:fb7984ae3c0c | 2 | #define __LIFT_INCLUDED__ |
williampeers | 0:fb7984ae3c0c | 3 | |
williampeers | 0:fb7984ae3c0c | 4 | #include "mbed.h" |
williampeers | 0:fb7984ae3c0c | 5 | |
williampeers | 0:fb7984ae3c0c | 6 | class Lift{ |
williampeers | 0:fb7984ae3c0c | 7 | private: |
williampeers | 0:fb7984ae3c0c | 8 | Thread lift_thread; |
williampeers | 0:fb7984ae3c0c | 9 | void run(); |
williampeers | 0:fb7984ae3c0c | 10 | |
williampeers | 0:fb7984ae3c0c | 11 | public: |
williampeers | 0:fb7984ae3c0c | 12 | Lift(); |
williampeers | 0:fb7984ae3c0c | 13 | void start(); |
williampeers | 0:fb7984ae3c0c | 14 | }; |
williampeers | 0:fb7984ae3c0c | 15 | |
williampeers | 0:fb7984ae3c0c | 16 | #endif |