Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:code': 0.07; 'bits': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Help': 0.11; 'python': 0.11; 'jan': 0.12; 'inputs': 0.16; 'integer.': 0.16; 'possible?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'screen,': 0.16; 'wrote:': 0.18; 'starts': 0.20; 'help.': 0.21; 'input': 0.22; 'header:User-Agent:1': 0.23; 'sort': 0.25; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'high.': 0.31; 'run': 0.32; 'display': 0.35; 'combination': 0.36; 'subject:regarding': 0.36; 'thanks': 0.36; 'list': 0.37; 'displays': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'blank': 0.60; 'back': 0.62; 'times': 0.62; 'show': 0.63; 'high': 0.63; 'sum': 0.64; 'subject: & ': 0.68; 'howard': 0.84; 'received:fios.verizon.net': 0.84; '150': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Help for a newbie regarding code & physical switches Date: Wed, 20 May 2015 14:50:13 -0400 References: <3c0e9762-625e-4740-9717-3ce6dc51df70@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432147828 news.xs4all.nl 2913 [2001:888:2000:d::a6]:44174 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90975 On 5/20/2015 3:54 AM, Howard Spink wrote: > Thanks for your help. I want the python to run automatically after > boot and show a blank white screen, This part if for a RasPy group. > when a combination of GP10 inputs > are HIGH python displays one of 150 JPEGS. Is this possible? Number the n inputs 0 to n-1. Give input i the 'value' of 2**i. Sum the values of the hi inputs to get an integer. (Actually, flip the corresponding bits of an int that starts at 0). Create a list jpeg of jpegs, so that jpeg[k] is the jpeg to display when the corresponding set of inputs are high. > what sort of boot times can I get with Arch? Back to RasPy. -- Terry Jan Reedy