Driver for Me Shutter device.
More...
#include <src/MeShutter.h>
Driver for Me Shutter device.
Class: MeShutter
- Description
- Declaration of Class MeShutter.
- Copyright (C), 2012-2016, MakeBlock
◆ MeShutter() [1/2]
| MeShutter::MeShutter |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the MeShutter to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeShutter() [2/2]
| MeShutter::MeShutter |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the MeShutter to arduino port, and the shot and focus PIN will be set LOW
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ focusOff()
| void MeShutter::focusOff |
( |
void |
| ) |
|
- Function
- focusOff
- Description
- Set the focus PIN off
- Output
- None
- Returns
- None
- Others
- None
◆ focusOn()
| void MeShutter::focusOn |
( |
void |
| ) |
|
- Function
- focusOn
- Description
- Set the focus PIN on
- Output
- None
- Returns
- None
- Others
- None
◆ setpin()
| void MeShutter::setpin |
( |
uint8_t |
ShotPin, |
|
|
uint8_t |
FocusPin |
|
) |
| |
- Function
- setpin
- Description
- Reset the shutter available PIN by its arduino port.
- Parameters
-
| [in] | ShotPin | - arduino port for shot PIN(should digital pin) |
| [in] | FocusPin | - arduino port for focus PIN(should digital pin) |
- Output
- None
- Returns
- None
- Others
- None
◆ setState()
| void MeShutter::setState |
( |
uint8_t |
state | ) |
|
- Function
- focusOff
- Description
- Set shutter device's work state.
- Parameters
-
| [in] | state | - 0:shotOff
1:shotOn
2:focusOff
3:focusOn
|
- Output
- None
- Returns
- None
- Others
- None
◆ shotOff()
| void MeShutter::shotOff |
( |
void |
| ) |
|
- Function
- shotOff
- Description
- Set the shot PIN off
- Output
- None
- Returns
- None
- Others
- None
◆ shotOn()
| void MeShutter::shotOn |
( |
void |
| ) |
|
- Function
- shotOn
- Description
- Set the shot PIN on
- Output
- None
- Returns
- None
- Others
- None
The documentation for this class was generated from the following files: