อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


LedBar Class

Definition

LedBar class to support grove LedBar http://wiki.seeedstudio.com/Grove-LED_Bar/

C#
public class LedBar
Inheritance
LedBar

Constructors

Properties

Orientation

Get/Set the Led bar orientation

SensorName

Get the name Led Bar

SupportedPorts

Only Digital ports only but you can't create more than 4 bars as each bar is using 2 Pins So you have to have at least 1 Grove Port empty between 2 bars

Value

Get/Set the level from 0 (no led on) to 10 (all leds on)

Methods

GetAllLeds()

Get the status of all leds

SetAllLeds(Int32)

Set all leds to either on or off by setting 1 as byte for on 0 for off. lowser bit is led 0

SetOneLed(Byte, Boolean)

Set one led

ToggleLeds(Byte)

Toggle the state of a led

ToString()

Returns the Level formatted

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0