git.haldean.org bitpic / 23f0753
trying to get systemd running to work Haldean Brown 2 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 #!/usr/bin/env python3
1
02 import bibliopixel
13 from bibliopixel import Matrix, Rotation
24 from bibliopixel.drivers.channel_order import ChannelOrder
164166 self.led.push_to_driver()
165167
166168 if __name__ == "__main__":
169 print("starting bitpic with screen ID {}".format(SID))
167170 bp = Bitpic()
168171 bp.main()
44 [Service]
55 User=pi
66 WorkingDirectory=/home/pi/bitpic
7 ExecStart=/usr/bin/python3 runmatrix.py
7 ExecStart=/home/pi/bitpic/runmatrix.py
88
99 # Restart every >2 seconds to avoid StartLimitInterval failure
1010 RestartSec=3