EV3RT CXX API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
ev3cxx_brick_led.h
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <stdio.h>
10
11
#include "ev3api.h"
12
13
namespace
ev3cxx
{
14
15
enum class
StatusLightColor {
16
OFF = LED_OFF,
17
RED = LED_RED,
18
GREEN = LED_GREEN,
19
ORANGE = LED_ORANGE
20
};
21
22
namespace
detail {
23
28
class
BrickLED
29
{
30
public
:
35
void
setColor
(StatusLightColor color) {
36
ev3_led_set_color(static_cast<ledcolor_t>(color));
37
}
38
39
};
// class BrickLED
40
41
}
// namespace detail
42
43
}
// namespace ev3cxx
ev3cxx
Definition:
ev3cxx.h:35
ev3cxx::detail::BrickLED::setColor
void setColor(StatusLightColor color)
set status light color
Definition:
ev3cxx_brick_led.h:35
ev3cxx::detail::BrickLED
Class BrickLED. API for working with brick status light.
Definition:
ev3cxx_brick_led.h:28
library
lib-ev3cxx
include
ev3cxx_brick_led.h
Generated on Mon May 15 2017 03:17:24 for EV3RT CXX API Reference [English] by
1.8.13