mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Formatting
This commit is contained in:
parent
7d6622be61
commit
208edf543a
1 changed files with 12 additions and 11 deletions
|
@ -2615,6 +2615,7 @@ void HOT WaveshareEPaper7P3InF::display() {
|
||||||
this->command(0x10);
|
this->command(0x10);
|
||||||
uint32_t small_buffer_length = this->get_buffer_length_() / NUM_BUFFERS;
|
uint32_t small_buffer_length = this->get_buffer_length_() / NUM_BUFFERS;
|
||||||
uint8_t byte_to_send;
|
uint8_t byte_to_send;
|
||||||
|
for (int buffer_index = 0; buffer_index < NUM_BUFFERS; buffer_index++) {
|
||||||
for (uint32_t buffer_pos = 0; buffer_pos < small_buffer_length; buffer_pos += 3) {
|
for (uint32_t buffer_pos = 0; buffer_pos < small_buffer_length; buffer_pos += 3) {
|
||||||
std::bitset<24> triplet = this->buffers_[buffer_index][buffer_pos + 0] << 16 |
|
std::bitset<24> triplet = this->buffers_[buffer_index][buffer_pos + 0] << 16 |
|
||||||
this->buffers_[buffer_index][buffer_pos + 1] << 8 |
|
this->buffers_[buffer_index][buffer_pos + 1] << 8 |
|
||||||
|
|
Loading…
Reference in a new issue