Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

How do I spawn a python subprocess for raspberry pi clock
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How do I spawn a python subprocess for raspberry pi clock

by Misterjenkins on Wed Apr 30, 2014 7:42 am

I have the 7 segment backpack led display, and I am able to use the adafruit 7 segment example clock python code to display the time with a blinking colon.

Noob question: How can I call this function from another python script as a parallel thread? I've tried subprocess and pexpect, but the clock function always blocks the main function from proceeding.

(The project is a game which uses a TFT display. The clock is just a feature that should run while the user plays the game). Thanks!
Misterjenkins
 
Posts: 4
Joined: Wed Mar 20, 2013 7:55 am

Please be positive and constructive with your questions and comments.