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: NeoPixelString SimplyLog
neopixel_i2c_daemon.h
- Committer:
- dwini
- Date:
- 2015-10-25
- Revision:
- 0:3a31c84ed525
- Child:
- 2:e0269262d1f2
File content as of revision 0:3a31c84ed525:
#pragma once
#include "i2c_device.h"
#include "neopixel_string.h"
#include <vector>
enum I2cCommand { OFF = 0x01, DIAGNOSTIC = 0x02, SINGLE_COLOR = 0x03 };
class NeoPixelI2cDaemon {
private:
I2cDevice * i2c;
std::vector<NeoPixelString *> pixelstrings;
public:
NeoPixelI2cDaemon(I2cDevice * i2c);
public:
void attachPixelString(NeoPixelString * pixelstring);
void listen(bool blocking);
void allOff(void);
void allSingleColor(neopixel::Pixel singlecolor);
void diagnoseAll(void);
};