Browse Source

Added internal pictures

Toby Chui 11 months ago
parent
commit
f5b3ce1d72

+ 16 - 1
InkyDash/InkyDash.ino

@@ -147,6 +147,7 @@ void setup() {
     Serial.print("IP address:\t");
     Serial.println(WiFi.localIP());
   */
+  WiFi.forceSleepWake();
   wifiManager.setAPCallback(configModeCallback);
   wifiManager.autoConnect("InkyDash");
 
@@ -182,11 +183,25 @@ void setup() {
 }
 
 void loop() {
+  //Render to e-ink, see time.ino
   datetimeUpdateCallback();
-  Serial.println("Entering sleep mode");
+  //Enter low power mode, draw around 20mA during delay(DURATION) with WiFi off
+  Serial.println("Entering low power mode");
+  WiFi.forceSleepBegin();
+  delay(REFRESH_INTERVAL_HIGH_PWR_MODE);
+  //If your refresh interval > max integer
+  /*
   int cc = REFRESH_INTERVAL_HIGH_PWR_MODE/1000;
   for (int i = 0; i < cc; i++){
     //Prevent delay overflow
     delay(1000);
   }
+  */
+  WiFi.forceSleepWake();
+  //Exit of low power mode, draw around 80mA with WiFi ON
+  Serial.println("Low power mode ended. Reconnecting to WiFi");
+  while(WiFi.status() != WL_CONNECTED){
+    Serial.print(".");
+    delay(500);
+  }
 }

+ 9 - 8
InkyDash/time.ino

@@ -4,6 +4,15 @@
    This script handle date time related features
 */
 
+
+//Entry point for default mode
+void datetimeUpdateCallback() {
+  //Get weather information from API
+  updateCurrentWeatherInfo();
+  //Render the calender page
+  display.drawPaged(drawHomeFrame);
+}
+
 //Update the current time with retry
 void updateNTPTimeWithRetry() {
   bool succ = false;
@@ -31,14 +40,6 @@ void updateNTPTimeWithRetry() {
   }
 }
 
-//Entry point for scheduler
-void datetimeUpdateCallback() {
-  //Get weather information from API
-  updateCurrentWeatherInfo();
-  //Render the calender page
-  display.drawPaged(drawHomeFrame);
-}
-
 //Pad any time string with 0
 String timeZeroPad(int input) {
   if (input < 10) {

BIN
card/OldVersions/clio-base.0001.ipt


BIN
card/clio-base.ipt


BIN
card/clio-base.stl


BIN
card/clip-cover.ipt


BIN
card/clip-cover.stl


BIN
card/cut0out.psd


BIN
card/glass-size.psd


BIN
photo/20240419_125022.JPG


BIN
photo/433621691_10221726257420539_7443553826567319330_n.jpg


BIN
photo/437510667_10221818869495783_4010766368976198868_n.jpg


BIN
photo/edited/20240419_124911.jpg


BIN
photo/edited/20240419_124924.jpg


BIN
photo/edited/20240419_124930.jpg


BIN
photo/edited/20240419_125037.jpg


BIN
photo/edited/20240419_125052.jpg


BIN
photo/edited/20240419_125209.jpg


BIN
photo/edited/20240419_125227.jpg


BIN
photo/internal/20240417_133539.JPG


BIN
photo/internal/20240417_133544.JPG


BIN
photo/internal/20240417_133556.JPG


BIN
photo/internal/20240417_133822.JPG


BIN
photo/internal/20240417_134103.JPG


BIN
photo/internal/20240417_143539.JPG


BIN
photo/internal/20240417_143543.JPG


BIN
photo/internal/20240417_143546.JPG


BIN
photo/internal/20240417_143550.JPG


BIN
photo/internal/20240417_193718.JPG


BIN
photo/internal/20240417_201152.JPG


BIN
photo/internal/20240417_201156.JPG


BIN
photo/internal/20240417_201159.JPG


BIN
photo/wiring.png


BIN
photo/wiring.psd