Main Code

Dependencies:   DRV8833 PidControllerV3 mbed Buffer

Fork of ApexPID by James Batchelar

Revision:
0:95384d72794f
diff -r 000000000000 -r 95384d72794f RGB_LED/RGB_LED.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RGB_LED/RGB_LED.h	Mon May 07 05:20:37 2018 +0000
@@ -0,0 +1,28 @@
+/*
+    RGB_LED.h - Library for creating Tri Colour LED Objects
+    Created by J. Batchelar, February 15, 2018.
+    Released into the public domain.
+*/
+
+#ifndef RGB_LED_h
+#define RGB_LED_h
+
+#include "mbed.h"
+
+class RGB_LED
+{
+  public:
+    RGB_LED(PinName Redpin, PinName GreenPin, PinName BluePin);
+    void Red();
+    void Green();
+    void Blue();
+    void Off();
+    
+  private:
+    DigitalOut _Rpin;
+    DigitalOut _Gpin;
+    DigitalOut _Bpin;
+};
+
+
+#endif
\ No newline at end of file