const byte _DmPin
Data- pin.
Definition: QC2Control.h:93
Main class of the QC2Control-library.
Definition: QC2Control.h:16
static const unsigned int _WaitTime
Wait time in the handshake. Should be at least 1,25s.
Definition: QC2Control.h:98
void set5V()
Set voltage to 5V.
Definition: QC2Control.h:101
void begin()
Starts the handshake with the QC2.0 source.
Definition: QC2Control.cpp:14
byte _setVoltage
Current set voltage.
Definition: QC2Control.h:96
void set9V()
Set voltage to 9V.
Definition: QC2Control.h:105
QC2Control(byte DpPin, byte DmPin)
Makes an object to control a Quick Charge 2.0 source.
Definition: QC2Control.cpp:6
void setVoltage(byte volt)
Sets the desired voltage of the QC2.0 source.
Definition: QC2Control.cpp:31
byte getVoltage()
Return the current voltage set.
Definition: QC2Control.h:113
const byte _DpPin
Data+ pin.
Definition: QC2Control.h:92
void set12V()
Set voltage to 12V.
Definition: QC2Control.h:109
bool _handshakeDone
Is the handshake done?
Definition: QC2Control.h:95