Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit9857d1c5f4ee4fe8da252fefa02a0c417cbdc1df (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-05-28 16:45:47 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-05-28 16:45:47 +0300
Filesafa40383207c60deac68c0f53f76e254b97fda07
uni-projects-9857d1c5f4ee4fe8da252fefa02a0c417cbdc1df.tar
uni-projects-9857d1c5f4ee4fe8da252fefa02a0c417cbdc1df.tar.gz
uni-projects-9857d1c5f4ee4fe8da252fefa02a0c417cbdc1df.zip
Parentda6899d1edc04c2dd5fe0ab783d3dc82c916818b (diff)
[iot/goam] Added timelapse icon
diff --git a/Year 3/Internet of things/goam/ibm-vga-8x16.xcf b/Year 3/Internet of things/goam/ibm-vga-8x16.xcf
index 349cee5..456b5f0 100644
--- a/Year 3/Internet of things/goam/ibm-vga-8x16.xcf
+++ b/Year 3/Internet of things/goam/ibm-vga-8x16.xcf
Binary files differ
diff --git a/Year 3/Internet of things/goam/main/Kconfig.projbuild b/Year 3/Internet of things/goam/main/Kconfig.projbuild
index 41f20dd..eddf308 100644
--- a/Year 3/Internet of things/goam/main/Kconfig.projbuild
+++ b/Year 3/Internet of things/goam/main/Kconfig.projbuild
@@ -17,6 +17,10 @@ menu "GoAm configurations"
int "Column on which the save image setting icon will be shown, takes one column"
range 1 16
default 5
+ config SELF_TIMER_COLUMN
+ int "Column on which the timelapse icon will be shown, takes one column"
+ range 1 16
+ default 7
config WIFI_COLUMN
int "Column on which the wifi icon will be shown, takes two columns"
range 1 16
diff --git a/Year 3/Internet of things/goam/main/display.h b/Year 3/Internet of things/goam/main/display.h
index d3e8779..35e1ef9 100644
--- a/Year 3/Internet of things/goam/main/display.h
+++ b/Year 3/Internet of things/goam/main/display.h
@@ -20,6 +20,8 @@ void display_printat(const char* str, unsigned char line, unsigned char column);
#define CHAR_IS_SEND "\15"
#define CHAR_IS_STORE "\16"
+#define CHAR_SELF_TIMER "\17"
+
#define CHAR_HALF_RES "\20"
#define CHAR_QUART_RES "\21"
diff --git a/Year 3/Internet of things/goam/main/ibm-vga-8x16.c b/Year 3/Internet of things/goam/main/ibm-vga-8x16.c
index 2791ad1..de3f370 100644
--- a/Year 3/Internet of things/goam/main/ibm-vga-8x16.c
+++ b/Year 3/Internet of things/goam/main/ibm-vga-8x16.c
@@ -145,6 +145,17 @@ const uint8_t bitpixel_chars[256][16] = {
COL(0000000000000000)
},
+ ['\17'] = {
+ COL(0000001110100000)
+ COL(0000010001100000)
+ COL(0000100011000000)
+ COL(0000100110000000)
+ COL(0000100100110000)
+ COL(0000100000110000)
+ COL(0000010000000000)
+ COL(0000001111000000)
+ },
+
['\20'] = {
COL(0000110011111000)
COL(0000011011111000)
diff --git a/Year 3/Internet of things/goam/main/main.c b/Year 3/Internet of things/goam/main/main.c
index 35088f3..fe52995 100644
--- a/Year 3/Internet of things/goam/main/main.c
+++ b/Year 3/Internet of things/goam/main/main.c
@@ -143,13 +143,21 @@ void main_store_timelapse_period(int32_t value) {
void main_start_timelapse() {
if (xTimerStart(timelapse_timer, 100) != pdPASS) {
ESP_LOGE(TAG, "Failed to start the timer!");
+ return;
}
+ display_printat(CHAR_SELF_TIMER,
+ CONFIG_DISPLAY_ICONS_ROW,
+ CONFIG_SELF_TIMER_COLUMN);
}
void main_stop_timelapse() {
if (xTimerStop(timelapse_timer, 100) != pdPASS) {
ESP_LOGE(TAG, "Failed to stop the timer!");
+ return;
}
+ display_printat(" ",
+ CONFIG_DISPLAY_ICONS_ROW,
+ CONFIG_SELF_TIMER_COLUMN);
}
/*
diff --git a/Year 3/Internet of things/goam/sdkconfig b/Year 3/Internet of things/goam/sdkconfig
index 90f1d7f..ca57322 100644
--- a/Year 3/Internet of things/goam/sdkconfig
+++ b/Year 3/Internet of things/goam/sdkconfig
@@ -355,6 +355,7 @@ CONFIG_DISPLAY_ICONS_ROW=1
CONFIG_CAMERA_COLUMN=1
CONFIG_RESOLUTION_COLUMN=3
CONFIG_SAVEIMAGE_COLUMN=5
+CONFIG_SELF_TIMER_COLUMN=7
CONFIG_WIFI_COLUMN=15
# end of Icons row layout