Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: lcd neoPixelRing12 view2 BSP_DISCO_F746NG view1 button
Diff: NeoPixelRing12/NeoPixelRing12.h
- Revision:
- 7:1887c4e4b5de
- Child:
- 8:aa1e315bf408
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/NeoPixelRing12/NeoPixelRing12.h Thu Jun 04 23:35:29 2020 +0000
@@ -0,0 +1,24 @@
+#ifndef NEO_PIXEL_RING_12
+#define NEO_PIXEL_RING_12
+
+#include "mbed.h"
+#include "string.h"
+
+
+#define RST_TIME_IN_US 70
+
+class NeoPixelRing12
+{
+ public:
+ NeoPixelRing12(DigitalOut _digitalOutPin);
+ bool rst();
+ bool rgbToDataStructure(char* rgbCode);
+ bool bit(bool value);
+ bool setLights(int nbOfLeds, char* rgbCode);
+
+ private:
+ DigitalOut digitalOutPin;
+ bool rgbDataStructure[24];
+};
+
+#endif
\ No newline at end of file