canon_ble #82

Merged
mattmcw merged 149 commits from canon_ble into main 2023-08-01 03:38:52 +00:00
12 changed files with 30 additions and 0 deletions
Showing only changes of commit 8f7a40075a - Show all commits

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';

View File

@ -32,11 +32,13 @@ void McopySerial::_internal () {
} }
void McopySerial::_connect () { void McopySerial::_connect () {
connected = true;
Serial.println(CONNECT); Serial.println(CONNECT);
log("connect()"); log("connect()");
} }
void McopySerial::_identify () { void McopySerial::_identify () {
identified = true;
Serial.println(id); Serial.println(id);
log("identify()"); log("identify()");
} }

View File

@ -20,6 +20,9 @@ class McopySerial {
public: public:
volatile bool connected = false;
volatile bool identified = false;
/* CMD FLAGS */ /* CMD FLAGS */
const char BLACK = 'b'; const char BLACK = 'b';
const char CAMERA = 'c'; const char CAMERA = 'c';