diff --git a/Platformio/HAL/Architecture.png b/Platformio/HAL/Architecture.png new file mode 100644 index 0000000..ac3de9e Binary files /dev/null and b/Platformio/HAL/Architecture.png differ diff --git a/Platformio/HAL/Architecture.puml b/Platformio/HAL/Architecture.puml new file mode 100644 index 0000000..11696e8 --- /dev/null +++ b/Platformio/HAL/Architecture.puml @@ -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 \ No newline at end of file