feat: Buttons for LED on and off
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user