Skip to content

Commit

Permalink
Develop into 2.0.9 (#29)
Browse files Browse the repository at this point in the history
* Updated boards

* Updated boards

* Updated boards

* Updated boards

* Updated board

* Added 2432S022N

* Updated boards

* Added 8048S070R

* Updated boards

* Smaller Lena 80x80

* Updated boards

* Rem oved v11 boards

* Removed esp32-8048S070

* Default no rotation

* Updated boards

* Updated build for node 20

* No default_env

* Updated boards

* Corrected platformio.ini

* Updated boards

* Set back to develop

* Added name of board in define and in loggin

* Added esp32-2432S028Rv3

* Updated boards

* Updated boards

* updated boards

* Updated boards

* Updated boards

* UPdated boards

* Updated boards

* Updated boards

* Updated boards

* Updated boards

* Enable all boards

* Delay if ARDUINO_USB_CDC_ON_BOOT

* Updated boards

* Updated boards

* Updated boards

* Updated boards

* Updated boards

* Updated boards

* Removed audio

* Updated boards

* not track s;ll

* Added rotate button, version 2.8

* Small fixes

* Modulo rotate

* %lu instead of %d
Updated boards

* updated boards
  • Loading branch information
rzeldent committed Mar 17, 2024
1 parent 5754016 commit 97a1ce2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ void OnAddOneClicked(lv_event_t *e)
void OnRotateClicked(lv_event_t *e)
{
auto disp = lv_disp_get_default();
auto rotation = (lv_disp_rot_t)((lv_disp_get_rotation(disp) + 1) % LV_DISP_ROT_270);
auto rotation = (lv_disp_rot_t)((lv_disp_get_rotation(disp) + 1) % (LV_DISP_ROT_270 + 1));
lv_disp_set_rotation(disp, rotation);
}

void setup()
{
#ifdef ARDUINO_USB_CDC_ON_BOOT
#ifdef ARDUINO_USB_CDC_ON_BOOT
delay(5000);
#endif
#endif
Serial.begin(115200);
Serial.setDebugOutput(true);
log_i("Board: %s", BOARD_NAME);
Expand Down Expand Up @@ -50,7 +50,7 @@ void loop()
next_millis = now + 500;

char text_buffer[32];
sprintf(text_buffer, "%d", now);
sprintf(text_buffer, "%lu", now);
lv_label_set_text(ui_lblMillisecondsValue, text_buffer);

#ifdef BOARD_HAS_RGB_LED
Expand Down

0 comments on commit 97a1ce2

Please sign in to comment.