-
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.
Merge pull request #171 from RobertGawron/feature/muimanual_integrati…
…on_v2 Feature/muimanual integration v2
- Loading branch information
Showing
4,983 changed files
with
21,031,123 additions
and
1,350 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,4 @@ | ||
*.png | ||
*.jpg | ||
*.jpeg | ||
*.gif |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@startuml | ||
|
||
box "MVC pattern" | ||
participant "Controller" as CONTROLLER | ||
participant "View" as VIEW | ||
end box | ||
|
||
participant "Device::Display" as DISPLAY | ||
note right of DISPLAY | ||
Device::Display | ||
inherits from U8G2 | ||
end note | ||
|
||
box "U8G2 library" | ||
participant MUIU8G2 | ||
participant U8G2 | ||
end box | ||
|
||
participant "Driver::St7735DisplayDriver" as DRIVER | ||
box "STM library" | ||
participant "stm32-st7735" as ST7735_LIB | ||
end box | ||
|
||
== Initialization == | ||
|
||
CONTROLLER --> DISPLAY : onInitialize | ||
DISPLAY --> DRIVER : onInitialize | ||
DISPLAY --> U8G2 : u8g2_Setup_st7735 | ||
|
||
DRIVER --> ST7735_LIB : Initialize hardware (TBD) | ||
CONTROLLER --> VIEW: onInitialize | ||
== Start == | ||
|
||
CONTROLLER --> DISPLAY : onStart | ||
DISPLAY --> DRIVER : onStart | ||
DRIVER --> ST7735_LIB : Configure settings (TBD) | ||
|
||
CONTROLLER --> U8G2 : begin | ||
CONTROLLER --> MUIU8G2 : begin | ||
|
||
== Main Loop == | ||
|
||
VIEW --> MUIU8G2 : draw | ||
MUIU8G2 --> U8G2 : u8x8_d_st7735 | ||
U8G2 --> DISPLAY : u8x8_d_st7735 | ||
DISPLAY --> DRIVER : drawBitmap | ||
DRIVER --> ST7735_LIB : Send Data (TBD) | ||
|
||
@enduml |
Oops, something went wrong.