Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
youtube.h
Go to the documentation of this file.
1#ifndef _YOUTUBE_H_
2#define _YOUTUBE_H_
3
4#include "../ui_base.h"
5
6#define DEBUG Serial
7
8#define MAX_YOUTUBE_SUBSCRIBER_COUNT 20
9#define MAX_YOUTUBE_VIEWS_COUNT 20
10
12{
13public:
14uint64_t subscribers = 0;
15uint64_t views = 0;
16
17int8_t fetch_data(const char *channel_id, const char *api_id);
18
19void display_subscribers_med(GxEPD2_GFX& display, int16_t x, int16_t y, int16_t w = 0, int16_t h = 0);
20void display_views_med(GxEPD2_GFX& display, int16_t x, int16_t y, int16_t w = 0, int16_t h = 0);
21};
22
24
25#endif /* _YOUTUBE_H_ */
void display_views_med(GxEPD2_GFX &display, int16_t x, int16_t y, int16_t w=0, int16_t h=0)
Definition youtube.cpp:109
int8_t fetch_data(const char *channel_id, const char *api_id)
Definition youtube.cpp:42
void display_subscribers_med(GxEPD2_GFX &display, int16_t x, int16_t y, int16_t w=0, int16_t h=0)
Definition youtube.cpp:81
PaperdinkUIYoutubeClass Paperdink_Youtube
Definition youtube.cpp:138