Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outsource LED-Matrix Logic from station.py and introduce unit test #4

Open
Spansky opened this issue Jun 22, 2024 · 0 comments
Open

Comments

@Spansky
Copy link
Owner

Spansky commented Jun 22, 2024

The LED-Matrix follows a certain logic:

0 0 0
0 0 0
0 0 0

...is an LED-matrix that is completely dark.

9 9 9  
9 9 9  
9 9 9  

...is an LED-matrix that is completely lit.

Currently the code triggers the sensor directly, making it impossible to run a unit test.

By introducing the matrix-logic from above we increase code quality as it can be tested and reused.

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

No branches or pull requests

1 participant