diff --git a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Partial_Update_With_Deep_Sleep/Inkplate10_Partial_Update_With_Deep_Sleep.ino b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Partial_Update_With_Deep_Sleep/Inkplate10_Partial_Update_With_Deep_Sleep.ino index 502093a2..254c4832 100644 --- a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Partial_Update_With_Deep_Sleep/Inkplate10_Partial_Update_With_Deep_Sleep.ino +++ b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Partial_Update_With_Deep_Sleep/Inkplate10_Partial_Update_With_Deep_Sleep.ino @@ -29,7 +29,7 @@ #include "driver/rtc_io.h" // Include ESP32 library for RTC pin I/O (needed for rtc_gpio_isolate() function) #include // Include ESP32 library for RTC (needed for rtc_get_reset_reason() function) -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 10 // Time how long ESP32 will be in deep sleep (in seconds). In this case 10 seconds. Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW) diff --git a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino index 4c59992d..6ab3cb0f 100644 --- a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino +++ b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino @@ -31,7 +31,7 @@ const uint8_t *pictures[] = {picture1, picture2, picture3}; // This array of pinters holds address of every picture in the memory, // so we can easly select it by selecting index in array -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 20 // How long ESP32 will be in deep sleep (in seconds) RTC_DATA_ATTR int slide = 0; diff --git a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_Button/Inkplate10_Wake_Up_Button.ino b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_Button/Inkplate10_Wake_Up_Button.ino index bb86afd1..bb9bc2d1 100644 --- a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_Button/Inkplate10_Wake_Up_Button.ino +++ b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_Button/Inkplate10_Wake_Up_Button.ino @@ -22,7 +22,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30 diff --git a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_On_Touchpads/Inkplate10_Wake_Up_On_Touchpads.ino b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_On_Touchpads/Inkplate10_Wake_Up_On_Touchpads.ino index ee4e9adf..cde9607d 100644 --- a/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_On_Touchpads/Inkplate10_Wake_Up_On_Touchpads.ino +++ b/examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_On_Touchpads/Inkplate10_Wake_Up_On_Touchpads.ino @@ -20,7 +20,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30 diff --git a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino index 0b7cd1e1..58c5aa28 100644 --- a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino +++ b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino @@ -30,7 +30,7 @@ const uint8_t *pictures[] = {pic1, pic2, pic3}; // This array of pinters holds address of every picture in the memory, // so we can easly select it by selecting index in array -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 20 // How long ESP32 will be in deep sleep (in seconds) RTC_DATA_ATTR int slide = 0; diff --git a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino index 23cb2e60..3d26995a 100644 --- a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino +++ b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino @@ -29,7 +29,7 @@ #include "driver/rtc_io.h" // Include ESP32 library for RTC pin I/O (needed for rtc_gpio_isolate() function) #include // Include ESP32 library for RTC (needed for rtc_get_reset_reason() function) -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 10 // Time how long ESP32 will be in deep sleep (in seconds). In this case 10 seconds. Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW) diff --git a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino index 5672c071..14ac129f 100644 --- a/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino +++ b/examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino @@ -20,7 +20,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30 diff --git a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Partial_Update_With_Deep_Sleep/Inkplate6_Partial_Update_With_Deep_Sleep.ino b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Partial_Update_With_Deep_Sleep/Inkplate6_Partial_Update_With_Deep_Sleep.ino index 55c3af7a..23d64ae9 100644 --- a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Partial_Update_With_Deep_Sleep/Inkplate6_Partial_Update_With_Deep_Sleep.ino +++ b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Partial_Update_With_Deep_Sleep/Inkplate6_Partial_Update_With_Deep_Sleep.ino @@ -29,7 +29,7 @@ #include "driver/rtc_io.h" // Include ESP32 library for RTC pin I/O (needed for rtc_gpio_isolate() function) #include // Include ESP32 library for RTC (needed for rtc_get_reset_reason() function) -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 10 // Time how long ESP32 will be in deep sleep (in seconds). In this case 10 seconds. Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW) diff --git a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Simple_Deep_Sleep/Inkplate6_Simple_Deep_Sleep.ino b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Simple_Deep_Sleep/Inkplate6_Simple_Deep_Sleep.ino index 297dac2d..079c2ca1 100644 --- a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Simple_Deep_Sleep/Inkplate6_Simple_Deep_Sleep.ino +++ b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Simple_Deep_Sleep/Inkplate6_Simple_Deep_Sleep.ino @@ -30,7 +30,7 @@ const uint8_t *pictures[] = {pic1, pic2, pic3}; // This array of pinters holds address of every picture in the memory, // so we can easly select it by selecting index in array -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 20 // How long ESP32 will be in deep sleep (in seconds) RTC_DATA_ATTR int slide = 0; diff --git a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_Button/Inkplate6_Wake_Up_Button.ino b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_Button/Inkplate6_Wake_Up_Button.ino index 2b4c3fbd..fab1000f 100644 --- a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_Button/Inkplate6_Wake_Up_Button.ino +++ b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_Button/Inkplate6_Wake_Up_Button.ino @@ -22,7 +22,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30 diff --git a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_On_Touchpads/Inkplate6_Wake_Up_On_Touchpads.ino b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_On_Touchpads/Inkplate6_Wake_Up_On_Touchpads.ino index 003eb27d..a68cdccb 100644 --- a/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_On_Touchpads/Inkplate6_Wake_Up_On_Touchpads.ino +++ b/examples/Inkplate6/Advanced/DeepSleep/Inkplate6_Wake_Up_On_Touchpads/Inkplate6_Wake_Up_On_Touchpads.ino @@ -20,7 +20,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30 diff --git a/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino b/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino index deda5b38..24040822 100644 --- a/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino +++ b/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino @@ -31,7 +31,7 @@ const uint8_t *pictures[] = {picture1, picture2, picture3}; // This array of pinters holds address of every picture in the memory, // so we can easly select it by selecting index in array -#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds +#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds #define TIME_TO_SLEEP 20 // How long ESP32 will be in deep sleep (in seconds) RTC_DATA_ATTR int slide = 0; diff --git a/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino b/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino index b2d408fc..544026ee 100644 --- a/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino +++ b/examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino @@ -21,7 +21,7 @@ #include // Conversion factor for micro seconds to seconds -#define uS_TO_S_FACTOR 1000000 +#define uS_TO_S_FACTOR 1000000ULL // Time ESP32 will go to sleep (in seconds) #define TIME_TO_SLEEP 30