|
|
@@ -56,7 +56,9 @@ class CycleEngine {
|
|
|
void request_full_update(const uint8_t *plane0, const uint8_t *plane1) {
|
|
|
this->planes_[0] = plane0;
|
|
|
this->planes_[1] = plane1;
|
|
|
- this->plane_bytes_ = (static_cast<uint32_t>(this->desc_->width) * this->desc_->height) / 8;
|
|
|
+ this->plane_bytes_ = this->desc_->packed_2bpp_plane
|
|
|
+ ? (static_cast<uint32_t>(this->desc_->width) * this->desc_->height) / 4
|
|
|
+ : (static_cast<uint32_t>(this->desc_->width) * this->desc_->height) / 8;
|
|
|
this->cursor_ = 0;
|
|
|
this->cmd_phase_ = CmdPhase::BEFORE_DELAY;
|
|
|
this->set_state_(this->rst_ != nullptr ? State::RESET_LOW : State::INIT_CMD);
|