Skip to content

Led Mock - #46

Open
lidyaa55 wants to merge 5 commits into
Open-Acidification:mainfrom
lidyaa55:led-mock
Open

Led Mock#46
lidyaa55 wants to merge 5 commits into
Open-Acidification:mainfrom
lidyaa55:led-mock

Conversation

@lidyaa55

Copy link
Copy Markdown
Contributor
  • Added mock LED backend integration. Created the LED mock device with ON/OFF/toggle functionality, connected it through library.py and Titrator, added the SetLED UI state for keypad control, and added Set LED to the main menu. This allows the mock LED to be controlled through the existing Tank Controller menu system.

  • Added tests for the mock LED, Titrator LED integration, and SetLED keypad controls.

  • Added the mock LED visualization to the GUI with a circular indicator that changes between black (OFF) and yellow (ON).

Comment thread src/gui.py Outdated
Comment thread tests/devices/led_mock_test.py Outdated
@@ -0,0 +1,14 @@
from src.devices.library import LED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice way to run a script and see if it works. But we need a unit test. Look at the other testing to see how it can be set up. I needs to follow pytest rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants