The class for the WindRose Multiplexer Control.
More...
#include <WRMux.h>
|
void | init () |
| Initializes the WRMux class by seting the control pins as OUTPUT.
|
|
void | enable () |
| Unsets the inhibit pin and enable the mux.
|
|
void | disable () |
| Sets the inhibit pin and disable the mux.
|
|
void | setDir (uint8_t dir) |
| Sets the mux to the direction specified. More...
|
|
uint8_t | getDir () |
| Returns the current direction of the mux. More...
|
|
char | getdirchar () |
| Returns the current direction of the mux as a string.
|
|
void | next () |
| Sets the mux from the current to the next direction as N,S,E,W.
|
|
The WRMux class controls the multiplexer of the WindRose.
We dont call it directly, instead we call it from the class WRBoard as <mux>.
◆ getDir()
uint8_t WRMux::getDir |
( |
| ) |
|
|
inline |
- Returns
- The current direction of the mux as N,S,E,W.
◆ setDir()
void WRMux::setDir |
( |
uint8_t |
dir | ) |
|
|
inline |
- Parameters
-
dir | The direction to set the mux (N,S,E,W). |
The documentation for this class was generated from the following file: