-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
243512e
commit 8ebdb77
Showing
13 changed files
with
591 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@startuml | ||
abstract U8G2 | ||
class Display | ||
class St7735DisplayDriver | ||
class "stm32-st7735" | ||
class "CubeMX HAL" | ||
class MUIU8G2 | ||
class "User Defined Layouts" | ||
class Hardware | ||
|
||
U8G2 <|-- Display | ||
|
||
Display *-- St7735DisplayDriver | ||
|
||
St7735DisplayDriver ..> "CubeMX HAL" : uses | ||
|
||
"stm32-st7735" .up.> St7735DisplayDriver : uses | ||
|
||
"CubeMX HAL" --> Hardware : communicates via SPI | ||
|
||
MUIU8G2 ..> U8G2 : uses | ||
|
||
"User Defined Layouts" ..> MUIU8G2 : uses | ||
|
||
"User Defined Layouts" ..> Display : uses | ||
|
||
note on link | ||
U8G2 and MUIU8G2 libraries are monochrome by default. | ||
As a workaround, the color can be changed | ||
directly through the Display class. | ||
end note | ||
|
||
' Note for "stm32-st7735" | ||
note bottom of "stm32-st7735" | ||
Library from STMicroelectronics | ||
(not the commonly used stm32-st7735 library). | ||
Implements communication with the ST7735 via SPI. | ||
end note | ||
|
||
' Note for "CubeMX HAL" | ||
note as CubeMX_NOTE | ||
Generated with CubeMX. | ||
end note | ||
"CubeMX HAL" .right. CubeMX_NOTE | ||
|
||
' Note for U8G2 and MUIU8G2 | ||
note as U8G2_NOTE | ||
Part of the u8g2 library, | ||
providing GUI and fonts. | ||
end note | ||
|
||
MUIU8G2 .left. U8G2_NOTE | ||
U8G2 .left. U8G2_NOTE | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,5 @@ target_link_libraries(FirmwarePCSimulator | |
BusinessLogic | ||
Device | ||
DriverForSimulation | ||
u8g2 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef Display_h | ||
#define Display_h | ||
#include "Device/Interfaces/IDisplay.hpp" | ||
#include "Driver/Interfaces/IDisplayDriver.hpp" | ||
|
||
namespace Device | ||
{ | ||
class Display : public IDisplay | ||
{ | ||
public: | ||
explicit Display(Driver::IDisplayDriver &displayDriver); | ||
|
||
void check(); | ||
|
||
// void my_u8g2_ll_hvline_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); | ||
// void my_u8g2_Setup_uc1617_jlx128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); | ||
|
||
private: | ||
Driver::IDisplayDriver &displayDriver; | ||
}; | ||
|
||
}; | ||
|
||
#endif |
19 changes: 19 additions & 0 deletions
19
Software/STM32F103RBTx/Application/Device/Interfaces/IDisplay.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef IDisplay_h | ||
#define IDisplay_h | ||
#include "U8g2lib.h" | ||
#include "u8g2.h" | ||
|
||
namespace Device | ||
{ | ||
class IDisplay : public U8G2 | ||
{ | ||
public: | ||
// todo | ||
// IDisplay() = default; | ||
// IDisplay() : U8G2(U8G2_R0) {} | ||
IDisplay() : U8G2() {}; | ||
}; | ||
|
||
}; | ||
|
||
#endif |
Oops, something went wrong.