Driver for Me voice device.
More...
#include <src/MeVoice.h>
|
| | MeVoice (void) |
| |
| | MeVoice (uint8_t port) |
| |
| void | begin (long=9600) |
| |
| int16_t | read (void) |
| |
| uint8_t | getCode (void) |
| |
| void | loop (void) |
| |
| | MeSerial (void) |
| |
| | MeSerial (uint8_t port) |
| |
| | MeSerial (uint8_t receivePin, uint8_t transmitPin, bool inverse_logic=false) |
| |
| void | setHardware (bool mode) |
| |
| void | begin (long baudrate) |
| |
| size_t | write (uint8_t byte) |
| |
| int | available () |
| |
| int16_t | poll (void) |
| |
| void | end (void) |
| |
| bool | listen (void) |
| |
| bool | isListening (void) |
| |
| void | sendString (char *str) |
| |
| void | printf (char *fmt,...) |
| |
|
boolean | dataLineAvailable (void) |
| |
|
String | readDataLine (void) |
| |
|
String | concatenateWith (String s1, String s2) |
| |
|
char | letterOf (int i, String s) |
| |
|
int | stringLength (String s) |
| |
|
boolean | equalString (String s1, String s2) |
| |
|
float | getValue (String key) |
| |
| | 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) |
| |
|
| SoftwareSerial (uint8_t receivePin, uint8_t transmitPin, bool inverse_logic=false) |
| |
|
void | begin (long speed) |
| |
|
bool | listen () |
| |
|
void | end () |
| |
|
bool | isListening () |
| |
|
bool | stopListening () |
| |
|
bool | overflow () |
| |
|
int | peek () |
| |
|
virtual void | flush () |
| |
|
| operator bool () |
| |
|
|
static void | handle_interrupt () __attribute__((__always_inline__)) |
| |
|
bool | _hard |
| |
|
bool | _polling |
| |
|
bool | _scratch |
| |
|
int16_t | _bitPeriod |
| |
|
int16_t | _byte |
| |
|
long | _lastTime |
| |
|
char | buffer [64] |
| |
|
String | lastLine |
| |
|
int | bufferIndex |
| |
| uint8_t | s1 |
| |
| uint8_t | s2 |
| |
| uint8_t | _port |
| |
| uint8_t | _slot |
| |
Driver for Me voice device.
Class: MeVoice
- Description
- Declaration of Class MeVoice
- Copyright (C), 2012-2016, MakeBlock
◆ MeVoice() [1/2]
| MeVoice::MeVoice |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the Voice device to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeVoice() [2/2]
| MeVoice::MeVoice |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the Voice device to arduino port, If the hardware serial was selected, we will used the hardware serial.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ begin()
| void MeVoice::begin |
( |
long |
speed = 9600 | ) |
|
- Function
- begin
- Description
- Sets the speed (baud rate) for the serial communication. Supported baud rates is 57600 bps
- Output
- None
- Returns
- None
- Others
- None
◆ getCode()
| uint8_t MeVoice::getCode |
( |
void |
| ) |
|
- Function
- getCode
- Description
- Get the button code
- Output
- None
- Returns
- Return the button code
- Others
- None
◆ loop()
| void MeVoice::loop |
( |
void |
| ) |
|
- Function
- loop
- Description
- This function used with getCode, it should called in the main loop
- Output
- None
- Returns
- None
- Others
- This function used with getCode
◆ read()
| int16_t MeVoice::read |
( |
void |
| ) |
|
|
virtual |
- Function
- read
- Description
- Return a character that was received on the RX pin of the software serial port. Note that only one SoftwareSerial instance can receive incoming data at a time (select which one with the listen() function).
- Output
- None
- Returns
- The character read, or -1 if none is available
- Others
- None
Reimplemented from MeSerial.
The documentation for this class was generated from the following files: