Skip to content

Commit

Permalink
test for gpio UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes-Thiel committed Sep 25, 2024
1 parent 1a1daa2 commit 427c786
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions field_friend/interface/components/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
from .settings import settings
from .status_dev import status_dev_page

# from rosys.hardware import ESPPins


# esp_pins: ESPPins


if TYPE_CHECKING:
from field_friend.system import System

Expand All @@ -26,9 +32,19 @@ def development(system: 'System') -> None:
system.field_friend.robot_brain.developer_ui()
with ui.column():
system.field_friend.robot_brain.communication.debug_ui()
# with ui.row():
# with ui.card().style('min-width: 200px; background-color: #3E63A6; color: white;'):
# esp_pins = ESPPins(name='core', robot_brain=system.field_friend.robot_brain)
# esp_pins.developer_ui()

# # with ui.card().style('min-width: 200px; background-color: #3E63A6; color: white;'):
# esp_pins = ESPPins(name='p0', robot_brain=system.field_friend.robot_brain)
# esp_pins.developer_ui()

else:
rosys.simulation_ui()
hardware_control(system.field_friend, system.automator, system.puncher)
status_dev_page(system.field_friend, system)
with ui.row().style('width: calc(100vw - 2rem); flex-wrap: nowrap;'):
io_overview(system)
# io_overview(system)

0 comments on commit 427c786

Please sign in to comment.