Skip to content

Commit

Permalink
Minor commenting changes, removed LED.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
aclowmclaughlin committed Feb 24, 2024
1 parent b89b1a2 commit 3e52f8a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 55 deletions.
6 changes: 3 additions & 3 deletions include/charge_controller/dev/LCDView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace DEV = EVT::core::DEV;
namespace CC {

/**
* Outputs all the values from the ChargeController class to the LCD display
* Outputs all the values from the ChargeController & UIModel classes to the LCD display
* Acts as the view in a Model-View-Controller (MVC) design pattern where
* UIModel is the model,
* LCDView is the view, and
Expand All @@ -27,7 +27,7 @@ namespace CC {
class LCDView {
public:
/**
* Initializer for the LCD Display class.
* Initializer for the LCDView class.
*
* @param[in] regSelect Register select pin
* @param[in] reset Reset pin
Expand All @@ -36,7 +36,7 @@ class LCDView {
LCDView(IO::GPIO& reg_select, IO::GPIO& reset, IO::SPI& spi, UIModel& model);

/**
* Initializes the LCD driver and displays the splash image.
* Initializes the LCD driver
*/
void init();

Expand Down
44 changes: 0 additions & 44 deletions include/charge_controller/dev/LED.hpp

This file was deleted.

10 changes: 5 additions & 5 deletions include/charge_controller/dev/UIController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ namespace DEV = EVT::core::DEV;
namespace CC {

/**
* Outputs all the values from the ChargeController class to the LCD display
* Acts as the view in a Model-View-Controller (MVC) design pattern where
* Outputs all the values from the UIModel and the encoder inputs to the LCD display
* Acts as the controller in a Model-View-Controller (MVC) design pattern where
* UIModel is the model,
* LCDView is the view, and
* UIController is the controller.
*/
class UIController {
public:
/**
* Constructor for the ControllerUI class
* Constructor for the UIController class
*
* @param[in] encoder The encoder object
* @param[in] encoderButton the button on the encoder
* @param[in] display the LCDDisplay that the ControllerUI controls
* @param[in] model the ControllerModel that stores values from the ControllerUI
* @param[in] display the LCDView that this UIController controls
* @param[in] model the UIModel that stores values from this UIController
*/
UIController(EVT::core::DEV::Encoder& encoder, EVT::core::DEV::Button& encoderButton, LCDView& display, UIModel& model);

Expand Down
4 changes: 2 additions & 2 deletions include/charge_controller/dev/UIModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
namespace CC {

/**
* Outputs all the values from the ChargeController class to the LCD display
* Acts as the view in a Model-View-Controller (MVC) design pattern where
* Stores the values needed to run the UI, modified by UIController, read by LCDView
* Acts as the model in a Model-View-Controller (MVC) design pattern where
* UIModel is the model,
* LCDView is the view, and
* UIController is the controller.
Expand Down
2 changes: 1 addition & 1 deletion src/charge_controller/dev/LCDView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void CC::LCDView::init() {
lcd.clearLCD();
lcd.setDefaultSections(MAIN_SCREEN_SECTION_TITLES);

// Splash Screen
// Section Headers
lcd.displaySectionHeaders();
}

Expand Down

0 comments on commit 3e52f8a

Please sign in to comment.