Added the pin outs
Dependencies: mbed mbed-rtos ShiftReg TextLCD
Power/Power.hpp@3:3700f0c29710, 2019-04-10 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed Apr 10 11:33:32 2019 +0000
- Revision:
- 3:3700f0c29710
- Child:
- 7:d0159f675b30
A classy afair
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 3:3700f0c29710 | 1 | #ifndef _POWER_HPP_ |
thomasmorris | 3:3700f0c29710 | 2 | #define _POWER_HPP_ |
thomasmorris | 3:3700f0c29710 | 3 | |
thomasmorris | 3:3700f0c29710 | 4 | //Libraries |
thomasmorris | 3:3700f0c29710 | 5 | #include "mbed.h" |
thomasmorris | 3:3700f0c29710 | 6 | #include "rtos.h" |
thomasmorris | 3:3700f0c29710 | 7 | |
thomasmorris | 3:3700f0c29710 | 8 | |
thomasmorris | 3:3700f0c29710 | 9 | class POWER |
thomasmorris | 3:3700f0c29710 | 10 | { |
thomasmorris | 3:3700f0c29710 | 11 | public: |
thomasmorris | 3:3700f0c29710 | 12 | //POWER(); |
thomasmorris | 3:3700f0c29710 | 13 | POWER(PinName N1, PinName N2, PinName N3, PinName N4); |
thomasmorris | 3:3700f0c29710 | 14 | ~POWER(); |
thomasmorris | 3:3700f0c29710 | 15 | void Init();//Initialisation routine |
thomasmorris | 3:3700f0c29710 | 16 | int Post();//Power on self test routine |
thomasmorris | 3:3700f0c29710 | 17 | |
thomasmorris | 3:3700f0c29710 | 18 | private: |
thomasmorris | 3:3700f0c29710 | 19 | |
thomasmorris | 3:3700f0c29710 | 20 | DigitalOut Muscle_1; |
thomasmorris | 3:3700f0c29710 | 21 | DigitalOut Muscle_2; |
thomasmorris | 3:3700f0c29710 | 22 | DigitalOut FEEDBACK_1; |
thomasmorris | 3:3700f0c29710 | 23 | DigitalOut FEEDBACK_2; |
thomasmorris | 3:3700f0c29710 | 24 | |
thomasmorris | 3:3700f0c29710 | 25 | }; |
thomasmorris | 3:3700f0c29710 | 26 | #endif//_POWER_HPP_ |