Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
Public Member Functions | List of all members
MeShutter Class Reference

Driver for Me Shutter device. More...

#include <MeShutter.h>

Inheritance diagram for MeShutter:
MePort

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

void MeShutter::focusOff ( void  )
Function
focusOff
Description
Set the focus PIN off
Output
None
Returns
None
Others
None
void MeShutter::focusOn ( void  )
Function
focusOn
Description
Set the focus PIN on
Output
None
Returns
None
Others
None
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
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
void MeShutter::shotOff ( void  )
Function
shotOff
Description
Set the shot PIN off
Output
None
Returns
None
Others
None
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: