Add Quick draft of some UML to help conceptualize the Architecture a bit better.
This commit is contained in:
parent
a771c64c71
commit
6bbc0e5e5d
2 changed files with 40 additions and 0 deletions
BIN
Platformio/HAL/Architecture.png
Normal file
BIN
Platformio/HAL/Architecture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
40
Platformio/HAL/Architecture.puml
Normal file
40
Platformio/HAL/Architecture.puml
Normal file
|
@ -0,0 +1,40 @@
|
|||
@startuml
|
||||
' KEY
|
||||
' --> : is a
|
||||
' *-- : must have
|
||||
' o-- : should have
|
||||
|
||||
namespace HAL{
|
||||
interface BatteryInterface
|
||||
interface WifiInterface
|
||||
interface OtherHWInterface
|
||||
|
||||
abstract HardwareAbstract
|
||||
|
||||
HardwareAbstract o-- BatteryInterface
|
||||
HardwareAbstract o-- WifiInterface
|
||||
HardwareAbstract o-- OtherHWInterface
|
||||
}
|
||||
|
||||
namespace Simulator{
|
||||
class BatterySimulator
|
||||
class WifiSimulator
|
||||
BatterySimulator --> HAL.BatteryInterface
|
||||
WifiSimulator --> HAL.WifiInterface
|
||||
}
|
||||
|
||||
namespace ESP32{
|
||||
class Battery
|
||||
class WifiHandler
|
||||
Battery --> HAL.BatteryInterface
|
||||
WifiHandler --> HAL.WifiInterface
|
||||
}
|
||||
|
||||
|
||||
namespace UI {
|
||||
class OmoteUI
|
||||
OmoteUI *-- HAL.HardwareAbstract
|
||||
}
|
||||
|
||||
|
||||
@enduml
|
Loading…
Add table
Reference in a new issue