MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
Public Member Functions | List of all members
MeShutter Class Reference

Driver for Me Shutter device. More...

`#include <src/MeShutter.h>`

Inheritance diagram for MeShutter:
[legend]
Collaboration diagram for MeShutter:
[legend]

## Public Member Functions
| MeShutter (void)
| MeShutter (uint8_t port)
void | setpin (uint8_t ShotPin, uint8_t FocusPin)
void | shotOn (void)
void | shotOff (void)
void | focusOn (void)
void | focusOff (void)
void | setState (uint8_t state)
Public Member Functions inherited from MePort
| MePort (void)
| MePort (uint8_t port)
| MePort (uint8_t port, uint8_t slot)
uint8_t | getPort (void)
uint8_t | getSlot (void)
bool | dRead1 (uint8_t mode=INPUT)
bool | dRead2 (uint8_t mode=INPUT)
bool | dpRead1 (void)
bool | dpRead2 (void)
void | dWrite1 (bool value)
void | dWrite2 (bool value)
int16_t | aRead1 (void)
int16_t | aRead2 (void)
void | aWrite1 (int16_t value)
void | aWrite2 (int16_t value)
void | reset (uint8_t port)
void | reset (uint8_t port, uint8_t slot)
uint8_t | pin1 (void)
uint8_t | pin2 (void)
uint8_t | pin (void)
uint8_t | pin (uint8_t port, uint8_t slot)

## Additional Inherited Members
Protected Attributes inherited from MePort
uint8_t | s1
uint8_t | s2
uint8_t | _port
uint8_t | _slot

## Detailed Description

Driver for Me Shutter device.

Class: MeShutter

Description
  Declaration of Class MeShutter.

Copyright (C), 2012-2016, MakeBlock

## Constructor & Destructor Documentation

## ◆ 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

  [in] | None |

## ◆ 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

## Member Function Documentation

## ◆ 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:

- src/MeShutter.h
- src/MeShutter.cpp