Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.
Dependencies: C12832 LM75B mbed EthernetInterface mbed-rtos
rgb.h
- Committer:
- bertgereels
- Date:
- 2018-02-26
- Revision:
- 0:88d3b9015f7c
- Child:
- 1:b5c534165dfe
File content as of revision 0:88d3b9015f7c:
#pragma once #include "mbed.h" #define MAX_ARRAY_LENGTH_RGB 7 namespace ProjectOne{ class RGB{ public: RGB(PinName firstPin=p23, PinName secondPin=p24, PinName thirdPin=p25); void turnOnLed(int kleur); private: const static float r_values[MAX_ARRAY_LENGTH_RGB]; const static float g_values[MAX_ARRAY_LENGTH_RGB]; const static float b_values[MAX_ARRAY_LENGTH_RGB]; PwmOut r; PwmOut g; PwmOut b; }; };