Added modules to implement

This commit is contained in:
2026-04-04 17:15:43 +01:00
parent 7b989fb2b2
commit 7d10206ed2
11 changed files with 34 additions and 1 deletions

0
src/battery/battery.go Normal file
View File

3
src/battery/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module battery
go 1.26.1

0
src/data/data.go Normal file
View File

3
src/data/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module data
go 1.26.1

15
src/device/device.go Normal file
View File

@@ -0,0 +1,15 @@
package device
/*
need a struct for device status
battery simulationn
v_on - voltage output flag
v_target - voltage target
v_actual - voltage at output
battery profiling
i_target - discharge
i_actual - current output
*/

3
src/device/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module device
go 1.26.1

View File

@@ -3,7 +3,7 @@ package main
import (
"fmt"
"main/serial"
"main/ui"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"

3
src/serial/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module serial
go 1.26.1

View File

@@ -7,3 +7,4 @@ func GetPorts() []string {
return ports
}

3
src/ui/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module ui
go 1.26.1

2
src/ui/ui.go Normal file
View File

@@ -0,0 +1,2 @@
package ui