Main Code
Dependencies: DRV8833 PidControllerV3 mbed Buffer
Fork of ApexPID by
RGB_LED/RGB_LED.h@0:95384d72794f, 2018-05-07 (annotated)
- Committer:
- batchee7
- Date:
- Mon May 07 05:20:37 2018 +0000
- Revision:
- 0:95384d72794f
IntialRelease
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
batchee7 | 0:95384d72794f | 1 | /* |
batchee7 | 0:95384d72794f | 2 | RGB_LED.h - Library for creating Tri Colour LED Objects |
batchee7 | 0:95384d72794f | 3 | Created by J. Batchelar, February 15, 2018. |
batchee7 | 0:95384d72794f | 4 | Released into the public domain. |
batchee7 | 0:95384d72794f | 5 | */ |
batchee7 | 0:95384d72794f | 6 | |
batchee7 | 0:95384d72794f | 7 | #ifndef RGB_LED_h |
batchee7 | 0:95384d72794f | 8 | #define RGB_LED_h |
batchee7 | 0:95384d72794f | 9 | |
batchee7 | 0:95384d72794f | 10 | #include "mbed.h" |
batchee7 | 0:95384d72794f | 11 | |
batchee7 | 0:95384d72794f | 12 | class RGB_LED |
batchee7 | 0:95384d72794f | 13 | { |
batchee7 | 0:95384d72794f | 14 | public: |
batchee7 | 0:95384d72794f | 15 | RGB_LED(PinName Redpin, PinName GreenPin, PinName BluePin); |
batchee7 | 0:95384d72794f | 16 | void Red(); |
batchee7 | 0:95384d72794f | 17 | void Green(); |
batchee7 | 0:95384d72794f | 18 | void Blue(); |
batchee7 | 0:95384d72794f | 19 | void Off(); |
batchee7 | 0:95384d72794f | 20 | |
batchee7 | 0:95384d72794f | 21 | private: |
batchee7 | 0:95384d72794f | 22 | DigitalOut _Rpin; |
batchee7 | 0:95384d72794f | 23 | DigitalOut _Gpin; |
batchee7 | 0:95384d72794f | 24 | DigitalOut _Bpin; |
batchee7 | 0:95384d72794f | 25 | }; |
batchee7 | 0:95384d72794f | 26 | |
batchee7 | 0:95384d72794f | 27 | |
batchee7 | 0:95384d72794f | 28 | #endif |