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 RGBLED by
rgbled.h
- Committer:
- rcflyair
- Date:
- 2014-06-09
- Revision:
- 0:7c0b6a649748
- Child:
- 1:a43483907ce0
File content as of revision 0:7c0b6a649748:
#ifndef __RGBLED_H__ #define __RGBLED_H__ // includes #include "mbed.h" // defines enum color {none, red, green, blue}; // rgb led class rgbled { private: DigitalOut _pin_red; DigitalOut _pin_green; DigitalOut _pin_blue; bool _on; bool _off; void _none(void); void _red(void); void _green(void); void _blue(void); public: rgbled(PinName pin_red, PinName pin_green, PinName pin_blue); void active(bool a); void set(color c); }; #endif