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.
Fork of SD600A by
LedStrip.h
- Committer:
- heroic
- Date:
- 2012-10-12
- Revision:
- 23:2e60470dd134
- Parent:
- 5:c2579d6415e1
- Child:
- 27:6667543f3b28
File content as of revision 23:2e60470dd134:
// Mbed library to control HL1606-based RGB LED Strips // Partially based on work (c) 2011 Jelmer Tiete // // Ported from Arduino by // Jas Strong <jasmine@electronpusher.org> /*****************************************************************************/ // This is a pure virtual parent class for all LED strips, so that different types // of strip may be used in a single array or container. #include "mbed.h" #ifndef LEDSTRIP_H #define LEDSTRIP_H class LedStrip { public: virtual void begin(void)=0; virtual void show(void)=0; virtual void blank(void)=0; virtual void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b)=0; virtual void setPixelB(uint16_t n, uint8_t b)=0; virtual void setPixelG(uint16_t n, uint8_t g)=0; virtual void setPixelR(uint16_t n, uint8_t r)=0; virtual void setPixelColor(uint16_t n, uint32_t c)=0; virtual uint16_t numPixels(void)=0; virtual uint32_t Color(uint8_t, uint8_t, uint8_t)=0; virtual uint32_t total_luminance(void); }; #endif