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

Terminal simulation of blinkt library #98

Closed
wants to merge 6 commits into from

Conversation

druck13
Copy link
Contributor

@druck13 druck13 commented Jun 26, 2022

This is s small routine which can be used to test out code intended for use with a blinkt panel, but either without the hardware installed on the machine, or if using a Raspberry Pi remotely via VNC or ssh. Instead it simulates the blinkt display by drawing coloured squares on a Linux terminal.

To Use:
If a file called blinkt.py is in the current directory it will be used by programs in that directory instead of the real blink library. The easiest way to do this is to create a soft link to fake_blinkt.py.

ln -s fake_blinkt.py blinkt.py

After testing and to use the real blink library, just delete the link with rm blinkt.py

If the terminal does not support true colour output, set _true_color = False at line 6.

@coveralls
Copy link

coveralls commented Jun 26, 2022

Pull Request Test Coverage Report for Build 2565855430

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 74.026%

Totals Coverage Status
Change from base Build 1820718973: 0.0%
Covered Lines: 57
Relevant Lines: 77

💛 - Coveralls

@Gadgetoid
Copy link
Member

Thanks. This will be extremely broken and conflicted by #102 so I'm closing it for now, but feel free to poke things when the ported library is ready. (Still waiting on an official release of gpiod)

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.

3 participants