Преглед на файлове

Added internal pictures

Toby Chui преди 11 месеца
родител
ревизия
f5b3ce1d72
променени са 34 файла, в които са добавени 25 реда и са изтрити 9 реда
  1. 16 1
      InkyDash/InkyDash.ino
  2. 9 8
      InkyDash/time.ino
  3. BIN
      card/OldVersions/clio-base.0001.ipt
  4. BIN
      card/clio-base.ipt
  5. BIN
      card/clio-base.stl
  6. BIN
      card/clip-cover.ipt
  7. BIN
      card/clip-cover.stl
  8. BIN
      card/cut0out.psd
  9. BIN
      card/glass-size.psd
  10. BIN
      photo/20240419_125022.JPG
  11. BIN
      photo/433621691_10221726257420539_7443553826567319330_n.jpg
  12. BIN
      photo/437510667_10221818869495783_4010766368976198868_n.jpg
  13. BIN
      photo/edited/20240419_124911.jpg
  14. BIN
      photo/edited/20240419_124924.jpg
  15. BIN
      photo/edited/20240419_124930.jpg
  16. BIN
      photo/edited/20240419_125037.jpg
  17. BIN
      photo/edited/20240419_125052.jpg
  18. BIN
      photo/edited/20240419_125209.jpg
  19. BIN
      photo/edited/20240419_125227.jpg
  20. BIN
      photo/internal/20240417_133539.JPG
  21. BIN
      photo/internal/20240417_133544.JPG
  22. BIN
      photo/internal/20240417_133556.JPG
  23. BIN
      photo/internal/20240417_133822.JPG
  24. BIN
      photo/internal/20240417_134103.JPG
  25. BIN
      photo/internal/20240417_143539.JPG
  26. BIN
      photo/internal/20240417_143543.JPG
  27. BIN
      photo/internal/20240417_143546.JPG
  28. BIN
      photo/internal/20240417_143550.JPG
  29. BIN
      photo/internal/20240417_193718.JPG
  30. BIN
      photo/internal/20240417_201152.JPG
  31. BIN
      photo/internal/20240417_201156.JPG
  32. BIN
      photo/internal/20240417_201159.JPG
  33. BIN
      photo/wiring.png
  34. BIN
      photo/wiring.psd

+ 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