feat: Buttons for LED on and off

This commit is contained in:
2026-07-25 17:24:54 +01:00
parent 1bb8a83308
commit 1a777145e6
5 changed files with 67 additions and 34 deletions

View File

@@ -5,12 +5,15 @@ struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
Text(bluetoothManager.status)
Button(action: bluetoothManager.led_on) {
Text("LED On")
}
Button(action: bluetoothManager.led_off) {
Text("LED Off")
}
}
.padding()
.buttonStyle(BorderedButtonStyle())
}
}