| ||||||
Files | |
| file | mindsensors-magicwand.h |
Mindsensors Magic Wand. | |
Defines | |
| #define | MSMWclearALL(X) PCF8574sendBytes(X, 0xFF) |
| #define | MSMWsetALL(X) PCF8574sendBytes(X, 0x00) |
Functions | |
| bool | MSMWsetLED (tSensors link, ubyte ledToChange, bool on) |
| bool | MSMWtoggleLED (tSensors link, ubyte ledToChange) |
| bool | MSMWflashAndClear (tSensors link, int count) |
Magic Wand
| #define MSMWclearALL | ( | X ) | PCF8574sendBytes(X, 0xFF) |
Definition at line 43 of file mindsensors-magicwand.h.
| #define MSMWsetALL | ( | X ) | PCF8574sendBytes(X, 0x00) |
Definition at line 44 of file mindsensors-magicwand.h.
| bool MSMWflashAndClear | ( | tSensors | link, |
| int | count | ||
| ) |
Flash the LEDs and turn them off again. Nice effect.
| link | the Magic Wand port |
| count | number of times to flash the LEDs |
Definition at line 89 of file mindsensors-magicwand.h.
| bool MSMWsetLED | ( | tSensors | link, |
| ubyte | ledToChange, | ||
| bool | on | ||
| ) |
Turn a specific LED on or off.
| link | the Magic Wand port |
| ledToChange | the index of the LED to change (0-7) |
| on | stateof the LED, true = on, false = off |
Definition at line 53 of file mindsensors-magicwand.h.
| bool MSMWtoggleLED | ( | tSensors | link, |
| ubyte | ledToChange | ||
| ) |
Toggle a LED
| link | the Magic Wand port |
| ledToChange | the index of the LED to change (0-7) |
Definition at line 72 of file mindsensors-magicwand.h.
1.7.2