Main Code
Dependencies: DRV8833 PidControllerV3 mbed Buffer
Fork of ApexPID by
RGB_LED.h
00001 /* 00002 RGB_LED.h - Library for creating Tri Colour LED Objects 00003 Created by J. Batchelar, February 15, 2018. 00004 Released into the public domain. 00005 */ 00006 00007 #ifndef RGB_LED_h 00008 #define RGB_LED_h 00009 00010 #include "mbed.h" 00011 00012 class RGB_LED 00013 { 00014 public: 00015 RGB_LED(PinName Redpin, PinName GreenPin, PinName BluePin); 00016 void Red(); 00017 void Green(); 00018 void Blue(); 00019 void Off(); 00020 00021 private: 00022 DigitalOut _Rpin; 00023 DigitalOut _Gpin; 00024 DigitalOut _Bpin; 00025 }; 00026 00027 00028 #endif
Generated on Tue Jul 19 2022 15:22:18 by 1.7.2