![]() |
ThinkingSkins - MossSolar Facade
Version 1.0
|
Public Member Functions | |
| void | setup () |
| Initializes the pins for the motordrivers and set them to a defined state. Please call calibrateMotors() after this function to provide correct functionality. More... | |
| void | loop () |
| heck each loop-tick if a motor has to be turned. More... | |
| void | setPanels (char pSideA, char pSideB, char pSideC) |
| Turns the choosen layer of the panels to the frondside. More... | |
| void | calibrate () |
| Syncronize all panels to the neutral setting. More... | |
| void TM_motorDriver::calibrate | ( | ) |
Syncronize all panels to the neutral setting.
calibrate() No ongoing or upcoming turnings, left rotation-direction.
| void TM_motorDriver::loop | ( | ) |
heck each loop-tick if a motor has to be turned.
| void TM_motorDriver::setPanels | ( | char | pSideA, |
| char | pSideB, | ||
| char | pSideC | ||
| ) |
Turns the choosen layer of the panels to the frondside.
setPanels(byte sideA, byte sideB, byte sideC)
| psideA | - set front of panel A |
| psideB | - set front of panel B |
| psideC | - set front of panel C set 'g' for green moss set 'r' for red moss set 's' for solar |
If the layer is already at the frontside, nothing is done. If there is an ongoing turning-action, it buffers the next turning-order to execute it after the current action.
| void TM_motorDriver::setup | ( | ) |
Initializes the pins for the motordrivers and set them to a defined state. Please call calibrateMotors() after this function to provide correct functionality.