Skip to content

Commit 1799f9d

Browse files
authored
Merge pull request #302 from SolderedElectronics/dev
Fix examples and IO Expander code
2 parents 4942d69 + 9d42d75 commit 1799f9d

111 files changed

Lines changed: 339 additions & 211 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Partial_Update_With_Deep_Sleep/Inkplate10_Partial_Update_With_Deep_Sleep.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include "driver/rtc_io.h" // Include ESP32 library for RTC pin I/O (needed for rtc_gpio_isolate() function)
5959
#include <rom/rtc.h> // Include ESP32 library for RTC (needed for rtc_get_reset_reason() function)
6060

61-
#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds
61+
#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds
6262
#define TIME_TO_SLEEP 10 // Time how long ESP32 will be in deep sleep (in seconds). In this case 10 seconds.
6363

6464
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW)

examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const uint8_t *pictures[] = {picture1, picture2,
6060
picture3}; // This array of pinters holds address of every picture in the memory,
6161
// so we can easly select it by selecting index in array
6262

63-
#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds
63+
#define uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds
6464
#define TIME_TO_SLEEP 20 // How long ESP32 will be in deep sleep (in seconds)
6565
RTC_DATA_ATTR int slide = 0;
6666

examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_Button/Inkplate10_Wake_Up_Button.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#include <Inkplate.h>
5454

5555
// Conversion factor for micro seconds to seconds
56-
#define uS_TO_S_FACTOR 1000000
56+
#define uS_TO_S_FACTOR 1000000ULL
5757
// Time ESP32 will go to sleep (in seconds)
5858
#define TIME_TO_SLEEP 30
5959

examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_HTTPS_POST_Request/Inkplate10_HTTPS_POST_Request.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
#include <WiFiClientSecure.h>
6262

6363
// Enter your WiFi credentials
64-
const char *ssid = "Soldered Electronics";
65-
const char *pass = "dasduino";
64+
const char *ssid = "";
65+
const char *pass = "";
6666

6767
// Specify the API URL to send a POST request
6868
const char *apiUrl = "https://jsonplaceholder.typicode.com/posts";

examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_HTTPS_With_Certificate/Inkplate10_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
#include "Inkplate.h" //Include Inkplate library to the sketch
6060
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1 Bit mode (BW)
6161

62-
const char ssid[] = "Soldered Electronics"; // Your WiFi SSID
63-
const char *password = "dasduino"; // Your WiFi password
62+
const char ssid[] = ""; // Your WiFi SSID
63+
const char *password = ""; // Your WiFi password
6464

6565
//This is the certificate for the website https://varipass.org
6666

examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_HTTP_Request/Inkplate10_HTTP_Request.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
#include <HTTPClient.h> //Include HTTP library to this sketch
5555
#include <WiFi.h> //Include ESP32 WiFi library to our sketch
5656

57-
#define ssid "Soldered Electronics" // Name of the WiFi network (SSID) that you want to connect Inkplate to
58-
#define pass "dasduino" // Password of that WiFi network
57+
#define ssid "" // Name of the WiFi network (SSID) that you want to connect Inkplate to
58+
#define pass "" // Password of that WiFi network
5959

6060
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1 Bit mode (BW)
6161

examples/Inkplate10/Diagnostics/Inkplate10_Factory_Programming_VCOM/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const char sdCardTestStringLength = 100;
44
const char *testString = {"This is some test string..."};
55

66
// Change this to your WiFi
7-
const char *WSSID = {"Soldered Electronics"};
8-
const char *WPASS = {"dasduino"};
7+
const char *WSSID = {""};
8+
const char *WPASS = {""};
99

1010
// Change this to your used slave device
1111
const uint8_t easyCDeviceAddress = 0x76;

examples/Inkplate10/Projects/Inkplate10_Google_Calendar/Inkplate10_Google_Calendar.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ NetworkFunctions network(calendarID, apiKey);
7979
Gui gui(inkplate);
8080

8181
// --- Deep Sleep Configuration ---
82-
#define uS_TO_S_FACTOR 1000000 // Convert microseconds to seconds
82+
#define uS_TO_S_FACTOR 1000000ULL // Convert microseconds to seconds
8383
#define TIME_TO_SLEEP 600 // Sleep time: 600 seconds = 10 minutes
8484

8585
void setup()

examples/Inkplate10/Projects/Inkplate10_Image_Frame_From_Web/Inkplate10_Image_Frame_From_Web.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Inkplate display(INKPLATE_3BIT);
6060

6161

6262

63-
const char ssid[] = "Soldered Electronics"; // Your WiFi SSID
64-
const char *password = "dasduino"; // Your WiFi password
63+
const char ssid[] = ""; // Your WiFi SSID
64+
const char *password = ""; // Your WiFi password
6565

6666
void setup()
6767
{

examples/Inkplate10/Projects/Inkplate10_OpenMeteo_Weather_Station/Inkplate10_OpenMeteo_Weather_Station.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
#include "src/includes.h" // Include necessary libraries and dependencies for Inkplate and networking
8282

8383
// --- WiFi Configuration ---
84-
const char *ssid = "Soldered Electronics";
85-
const char *password = "dasduino";
84+
const char *ssid = "";
85+
const char *password = "";
8686

8787
// --- User and Location Info ---
8888
String myUsername = "Username"; // User's name to be displayed on screen
@@ -104,7 +104,7 @@ WeatherData weatherData; // Structure to hold fetched weather data
104104
Gui gui(inkplate); // Drawing visuals and info
105105

106106
// --- Deep Sleep Configuration ---
107-
#define uS_TO_S_FACTOR 1000000 // Convert microseconds to seconds
107+
#define uS_TO_S_FACTOR 1000000ULL // Convert microseconds to seconds
108108
#define TIME_TO_SLEEP 1800 // Sleep time: 1800 seconds = 30 minutes
109109

110110
// --- Main Setup: Runs Once on Boot ---

0 commit comments

Comments
 (0)