Skip to content

Commit d01f653

Browse files
fix Telegram example
1 parent 1e2d609 commit d01f653

File tree

3 files changed

+6
-111
lines changed

3 files changed

+6
-111
lines changed

examples/CameraMotionDetection/CameraMotionToTelegramExample/CameraMotionToTelegramExample.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Camera motion detection + JPEG capture + Telegram Bot demo
33
*/
44

5+
// this is required to include the TelegramBot class
6+
#define ELOQUENT_TELEGRAM
7+
58
// replace with your own values
69
#define TELEGRAM_TOKEN "xxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
710
#define CHAT_ID "0123456789"

src/eloquent/vision/camera/portenta.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace Eloquent {
1515
namespace Cam {
1616
class PortentaCamera {
1717
public:
18+
HM01B0 himax;
19+
Camera cam;
20+
FrameBuffer buffer;
1821

1922
/**
2023
*
@@ -103,9 +106,6 @@ namespace Eloquent {
103106
int mode;
104107
uint8_t fps;
105108
uint16_t timeout;
106-
HM01B0 himax;
107-
Camera cam;
108-
FrameBuffer buffer;
109109
};
110110
}
111111
}

src/eloquent/vision/camera/portenta2.h

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)