Added tap to wake and cycle feed
This commit is contained in:
@@ -17,9 +17,9 @@ namespace esphome {
|
||||
namespace fast_jpeg {
|
||||
|
||||
static const char *const TAG = "fast_jpeg";
|
||||
static const int kMaxWidth = 480;
|
||||
static const int kMaxHeight = 480;
|
||||
static const size_t kJpegCap = 48 * 1024;
|
||||
static const int kMaxWidth = 720;
|
||||
static const int kMaxHeight = 720;
|
||||
static const size_t kJpegCap = 128 * 1024;
|
||||
|
||||
static int align16_(int value) { return (value + 15) & ~15; }
|
||||
|
||||
|
||||
@@ -18,7 +18,11 @@ namespace fast_jpeg {
|
||||
|
||||
class FastJpeg : public PollingComponent {
|
||||
public:
|
||||
void set_url(const std::string &url) { this->url_ = url; }
|
||||
void set_url(const std::string &url) {
|
||||
this->url_ = url;
|
||||
this->etag_[0] = '\0';
|
||||
this->bars_cleared_ = false;
|
||||
}
|
||||
void set_display(display::Display *display) { this->display_ = display; }
|
||||
void set_x(int x) { this->x_ = x; }
|
||||
void set_y(int y) { this->y_ = y; }
|
||||
|
||||
Reference in New Issue
Block a user