Create .env for config

This commit is contained in:
siinus
2021-05-02 01:37:38 +03:00
parent e6fb8ea528
commit 74b6cbe7e3
7 changed files with 85 additions and 27 deletions

View File

@@ -8,20 +8,7 @@ Projekt Litsimaja - Lapikute tagatoa seintele programmeeritavad ARGB ribad
#### Running with emulation
This is mainly for testing, development.
In ``lib/Litsimaja.py`` change the following:
```
# from lib.strip.TkinterStrip import TkinterStrip
def __init__(self):
self._strip = PixelStrip(290, 18, 800000, 10, False, 255, 0, 4104)
```
to
```
from lib.strip.TkinterStrip import TkinterStrip
def __init__(self):
self._strip = TkinterStrip(290, 18, 800000, 10, False, 255, 0, 4104)
```
Create .env file:
```cp .env.example .env```
and see: ```USE_EMULATOR```
Now when you run the program, you will see a Tkinter window pop up with a rectangle simulating the LED strip.
Don't commit this change.