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
NeoPixelRing12/NeoPixelRing12.h@12:0217d269545e, 2020-06-17 (annotated)
- Committer:
- Rhamao
- Date:
- Wed Jun 17 14:05:49 2020 +0000
- Revision:
- 12:0217d269545e
- Parent:
- 8:aa1e315bf408
Changement de linterface;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rhamao | 7:1887c4e4b5de | 1 | #ifndef NEO_PIXEL_RING_12 |
| Rhamao | 7:1887c4e4b5de | 2 | #define NEO_PIXEL_RING_12 |
| Rhamao | 7:1887c4e4b5de | 3 | |
| Rhamao | 7:1887c4e4b5de | 4 | #include "mbed.h" |
| Rhamao | 7:1887c4e4b5de | 5 | #include "string.h" |
| Rhamao | 7:1887c4e4b5de | 6 | |
| Rhamao | 7:1887c4e4b5de | 7 | |
| Rhamao | 7:1887c4e4b5de | 8 | #define RST_TIME_IN_US 70 |
| Rhamao | 7:1887c4e4b5de | 9 | |
| Rhamao | 7:1887c4e4b5de | 10 | class NeoPixelRing12 |
| Rhamao | 7:1887c4e4b5de | 11 | { |
| Rhamao | 7:1887c4e4b5de | 12 | public: |
| Rhamao | 7:1887c4e4b5de | 13 | NeoPixelRing12(DigitalOut _digitalOutPin); |
| Rhamao | 7:1887c4e4b5de | 14 | bool rst(); |
| Rhamao | 7:1887c4e4b5de | 15 | bool rgbToDataStructure(char* rgbCode); |
| Rhamao | 7:1887c4e4b5de | 16 | bool bit(bool value); |
| Rhamao | 8:aa1e315bf408 | 17 | bool setLights(int nbOfLeds, char* rgbCode); |
| Rhamao | 7:1887c4e4b5de | 18 | |
| Rhamao | 7:1887c4e4b5de | 19 | private: |
| Rhamao | 7:1887c4e4b5de | 20 | DigitalOut digitalOutPin; |
| Rhamao | 7:1887c4e4b5de | 21 | bool rgbDataStructure[24]; |
| Rhamao | 7:1887c4e4b5de | 22 | }; |
| Rhamao | 7:1887c4e4b5de | 23 | |
| Rhamao | 7:1887c4e4b5de | 24 | #endif |