Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
aleemont1 committed Nov 24, 2023
2 parents 000377b + e1123eb commit 5419b88
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smart_bridge/src/UI/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
def create_main_window():
root = tk.Tk()
root.title("Car Washing Dashboard")
root.geometry("500x500")
root.geometry("600x600")
root.configure(bg='lightblue')
root.resizable(False, False)
root.resizable(True, True)
return root


Expand Down Expand Up @@ -61,7 +61,7 @@ def configure_dynamic_elements(root):
(tk.Label, wash_counter, 1),
(tk.Label, progress_status, 4),
(tk.Label, current_temperature, 5),
(tk.Label, message, 6)
(tk.Label, ui_message, 6)
]

for element_type, text_var, row in dynamic_elements:
Expand Down
29 changes: 29 additions & 0 deletions smart_bridge/src/components/api/Temp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef __TEMP__
#define __TEMP__

/**
* @class Temp
* @brief This class represents a temperature sensor.
*
* It provides functionalities to get the temperature.
*/
class Temp
{

public:
/**
* @brief Construct a new Temp object
*
* @param pin The pin number where the temperature sensor is connected.
*/
Temp(int pin);

private:
/**
* @brief The pin number where the temperature sensor is connected.
*
*/
int tempPin;
};

#endif // __TEMP__
9 changes: 9 additions & 0 deletions smart_bridge/src/components/impl/Temp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../api/Temp.h"
#include "config/config.h"
#include "Arduino.h"

Temp::Temp(int pin)
{
this->tempPin = TMP_PIN;
pinMode(tempPin, INPUT);
}

0 comments on commit 5419b88

Please sign in to comment.