Added modules to implement
This commit is contained in:
0
src/battery/battery.go
Normal file
0
src/battery/battery.go
Normal file
3
src/battery/go.mod
Normal file
3
src/battery/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module battery
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
0
src/data/data.go
Normal file
0
src/data/data.go
Normal file
3
src/data/go.mod
Normal file
3
src/data/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module data
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
15
src/device/device.go
Normal file
15
src/device/device.go
Normal 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
3
src/device/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module device
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
@@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"main/serial"
|
"main/serial"
|
||||||
|
"main/ui"
|
||||||
"fyne.io/fyne/v2/app"
|
"fyne.io/fyne/v2/app"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
|||||||
3
src/serial/go.mod
Normal file
3
src/serial/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module serial
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
@@ -7,3 +7,4 @@ func GetPorts() []string {
|
|||||||
|
|
||||||
return ports
|
return ports
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
src/ui/go.mod
Normal file
3
src/ui/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module ui
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
2
src/ui/ui.go
Normal file
2
src/ui/ui.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
package ui
|
||||||
|
|
||||||
Reference in New Issue
Block a user