Skip to content

Commit b81aaeb

Browse files
committed
tested deep sleep on 6COLOR and remove wifi credentials from examples
1 parent 2af58f0 commit b81aaeb

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
Inkplate display;
3030

3131
// Store int in rtc data, to remain persistent during deep sleep
32-
//RTC_DATA_ATTR int bootCount = 0;
32+
RTC_DATA_ATTR int bootCount = 0;
3333

3434
void setup()
3535
{
3636
display.begin();
37-
//display.setTextColor(INKPLATE_BLACK);
37+
display.setTextColor(INKPLATE_BLACK);
3838

39-
//++bootCount;
39+
++bootCount;
4040

4141
// Our function declared below
42-
//displayInfo();
42+
displayInfo();
4343

4444
// Go to sleep for TIME_TO_SLEEP seconds
45-
//esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
45+
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
4646

4747
// Enable wakeup from deep sleep on gpio 36 (wake button)
48-
//esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 0);
48+
esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 0);
4949

5050
// Put the panel in the deep sleep
51-
//display.setPanelDeepSleep(0);
51+
display.setPanelDeepSleep(0);
5252

5353
// Start deep sleep (this function does not return). Program stops here.
5454
esp_deep_sleep_start();
@@ -59,7 +59,7 @@ void loop()
5959
// Never here! If you use deep sleep, the whole program should be in setup() because the board restarts each
6060
// time. loop() must be empty!
6161
}
62-
/*
62+
6363
// Function that will write number of boots and boot reason to screen
6464
void displayInfo()
6565
{
@@ -93,4 +93,4 @@ void displayInfo()
9393
}
9494

9595
display.display();
96-
}*/
96+
}

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Gallery/Inkplate6COLOR_Gallery.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#error "Wrong board selection for this example, please select Soldered Inkplate 6COLOR in the boards menu."
1818
#endif
1919

20-
#include "Inkplate.h" //Include Inkplate library to the sketch
21-
#include "SdFat.h" //Include library for SD card
20+
#include "Inkplate.h" // Include Inkplate library to the sketch
2221
Inkplate display; // Create an object on Inkplate library and also set library into 1 Bit mode (BW)
2322
SdFile file; // Create SdFile object used for accessing files on SD card
2423

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Mapbox_API/Inkplate6COLOR_Mapbox_API.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
#include "Inkplate.h"
2222

23-
#define ssid "Soldered" // Name of the WiFi network (SSID) that you want to connect Inkplate to
24-
#define pass "dasduino" // Password of that WiFi network
23+
#define ssid "" // Name of the WiFi network (SSID) that you want to connect Inkplate to
24+
#define pass "" // Password of that WiFi network
2525

2626
// Fill in these using api key from https://www.mapbox.com/ and coordinates you want to draw
2727
// http://bboxfinder.com/ might help you :)

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crowdsupply_Campaing_Tracker/Inkplate6COLOR_Crowdsupply_Campaing_Tracker.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include "generatedUI.h" // include generated UI
2323

2424
// Change here to your wifi ssid and pass and the url to display info for
25-
#define ssid "Soldered" // Name of the WiFi network (SSID) that you want to connect Inkplate to
26-
#define pass "dasduino" // Password of that WiFi network
25+
#define ssid "" // Name of the WiFi network (SSID) that you want to connect Inkplate to
26+
#define pass "" // Password of that WiFi network
2727

2828
#define DELAY_MS 60000 * 60 // Delay between fetching data
2929
#define URL "https://www.crowdsupply.com/soldered/inkplate-6color" // Link to the Inkplate 6COLOR crowdsupply campaign

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crypto_Currency_Tracker/Inkplate6COLOR_Crypto_Currency_Tracker.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
int timeZone = 2;
3131

3232
// Put in your ssid and password
33-
char ssid[] = "Soldered";
34-
char pass[] = "dasduino";
33+
char ssid[] = "";
34+
char pass[] = "";
3535

3636
// Delay between API calls in miliseconds
3737
#define DELAY_MS 3 * 60 * 1000

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Image_Frame_From_Web/Inkplate6COLOR_Image_Frame_From_Web.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
Inkplate display;
2323

24-
const char ssid[] = ""; // Your WiFi SSID
25-
const char *password = ""; // Your WiFi password
24+
const char *ssid = ""; // Your WiFi SSID
25+
const char *password = ""; // Your WiFi password
2626

2727
void setup()
2828
{

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Quotables/Inkplate6COLOR_Quotables.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ void setup()
9797

9898
void loop()
9999
{
100-
// Never here
100+
// Never here! If you are using deep sleep, the whole program should be in setup() because the board restarts each
101+
// time. loop() must be empty!
101102
}
102103

103104

0 commit comments

Comments
 (0)