Michael Koster / Mbed 2 deprecated ipso_interop_mbed1

Dependencies:   Chainable_RGB_LED DHT LED_Bar mbed mbedConnectorInterface mbedEndpointNetwork_mjk_regfix

Embed: (wiki syntax)

« Back to documentation index

LedBarResource Class Reference

LedBarResource Class Reference

LedBarResource class. More...

#include <LedBarResource.h>

Public Member Functions

 LedBarResource (const Logger *logger, const char *name, const bool observable=false)
 Default constructor.
virtual string get ()
 Get the value of the LED bar.
virtual void put (const string value)
 Set the value of the LED bar.

Detailed Description

LedBarResource class.

Definition at line 51 of file LedBarResource.h.


Constructor & Destructor Documentation

LedBarResource ( const Logger *  logger,
const char *  name,
const bool  observable = false 
)

Default constructor.

Parameters:
loggerinput logger instance for this resource
nameinput the Light resource name
observableinput the resource is Observable (default: FALSE)

Definition at line 61 of file LedBarResource.h.


Member Function Documentation

virtual string get (  ) [virtual]

Get the value of the LED bar.

Returns:
string containing either "0" (light off) or "1" (light on) for each LED segment

Definition at line 69 of file LedBarResource.h.

virtual void put ( const string  value ) [virtual]

Set the value of the LED bar.

Parameters:
stringinput the string containing "0" (light off) or "1" (light on) per segment

Definition at line 77 of file LedBarResource.h.