MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MeShutter.h
Go to the documentation of this file.
1
44#ifndef MeShutter_H
45#define MeShutter_H
46#include <stdint.h>
47#include <stdbool.h>
48#include <Arduino.h>
49#include "MeConfig.h"
50#ifdef ME_PORT_DEFINED
51#include "MePort.h"
52#endif /* ME_PORT_DEFINED */
53
59#ifndef ME_PORT_DEFINED
60 class MeShutter
61#else // !ME_PORT_DEFINED
62class MeShutter : public MePort
63#endif // !ME_PORT_DEFINED
64{
65 public:
66#ifdef ME_PORT_DEFINED
73 MeShutter(void);
74
81 MeShutter(uint8_t port);
82#else // ME_PORT_DEFINED
91 MeShutter(uint8_t ShotPin, uint8_t FocusPin);
92#endif // ME_PORT_DEFINED
93
110 void setpin(uint8_t ShotPin, uint8_t FocusPin);
111
124 void shotOn(void);
125
138 void shotOff(void);
139
152 void focusOn(void);
153
166 void focusOff(void);
167
185 void setState(uint8_t state);
186 private:
187 volatile uint8_t _ShotPin;
188 volatile uint8_t _FocusPin;
189};
190#endif
191
MeConfig.h
Configuration file of library.
MePort.h
Header for MePort.cpp module.
MePort
Port Mapping for RJ25.
Definition MePort.h:128
MeShutter
Driver for Me Shutter device.
Definition MeShutter.h:64
MeShutter::setState
void setState(uint8_t state)
Definition MeShutter.cpp:225
MeShutter::MeShutter
MeShutter(void)
Definition MeShutter.cpp:54
MeShutter::setpin
void setpin(uint8_t ShotPin, uint8_t FocusPin)
Definition MeShutter.cpp:108
MeShutter::focusOn
void focusOn(void)
Definition MeShutter.cpp:178
MeShutter::shotOn
void shotOn(void)
Definition MeShutter.cpp:136
MeShutter::shotOff
void shotOff(void)
Definition MeShutter.cpp:157
MeShutter::focusOff
void focusOff(void)
Definition MeShutter.cpp:199