Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90936 > unrolled thread

Help for a newbie regarding code & physical switches

Started byHoward Spink <howi682@googlemail.com>
First post2015-05-19 23:49 -0700
Last post2015-05-20 14:50 -0400
Articles 6 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  Help for a newbie regarding code & physical switches Howard Spink <howi682@googlemail.com> - 2015-05-19 23:49 -0700
    Re: Help for a newbie regarding code & physical switches Christian Gollwitzer <auriocus@gmx.de> - 2015-05-20 09:14 +0200
      Re: Help for a newbie regarding code & physical switches Howard Spink <howi682@googlemail.com> - 2015-05-20 00:54 -0700
        Re: Help for a newbie regarding code & physical switches alister <alister.nospam.ware@ntlworld.com> - 2015-05-20 08:46 +0000
        Re: Help for a newbie regarding code & physical switches Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-05-20 08:17 -0400
        Re: Help for a newbie regarding code & physical switches Terry Reedy <tjreedy@udel.edu> - 2015-05-20 14:50 -0400

#90936 — Help for a newbie regarding code & physical switches

FromHoward Spink <howi682@googlemail.com>
Date2015-05-19 23:49 -0700
SubjectHelp for a newbie regarding code & physical switches
Message-ID<3c0e9762-625e-4740-9717-3ce6dc51df70@googlegroups.com>
I have a Pi + SD card with Pi OS + PiTfT screen

I am trying to display specific JPEGs when certain combination of GP10 inputs are HIGH. I would like to use Python, I have no background in programming. Can someone point me on the right tracks? 

[toc] | [next] | [standalone]


#90938

FromChristian Gollwitzer <auriocus@gmx.de>
Date2015-05-20 09:14 +0200
Message-ID<mjhc6q$hvt$1@dont-email.me>
In reply to#90936
Am 20.05.15 um 08:49 schrieb Howard Spink:
> I have a Pi + SD card with Pi OS + PiTfT screen
>
> I am trying to display specific JPEGs when certain combination of GP10 inputs are HIGH. I would like to use Python, I have no background in programming. Can someone point me on the right tracks?
>

No bg in programming is not very helpful. I suggest you do some 
tutorials. For instance, the PiTFT has this:

https://learn.adafruit.com/downloads/pdf/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi.pdf

It shows how you can display images from the shell. Next, do a tutorial 
on Python programming, e.g. https://wiki.python.org/moin/BeginnersGuide 
- but you shold choose one that fits your way of learning. Maybe there 
is a RasPI tutorial also, which shows you how to read from the GP ports, 
I'm too lazy to google it now - just try combinations of API, tutorial, 
documentation with keywords like RasPI, GP, GP programming etc.

Finally you can wire this all up. An experienced programmer with no 
previous knowledge of RasPI can do this within half an hour by reading 
these guides. Your biggest task is to understand programming. Have fun!

	Christian

[toc] | [prev] | [next] | [standalone]


#90943

FromHoward Spink <howi682@googlemail.com>
Date2015-05-20 00:54 -0700
Message-ID<c618bb56-11b9-4e3e-a290-4092fa82969c@googlegroups.com>
In reply to#90938
Thanks for your help. I want the python to run automatically after boot and show a blank white screen, when a combination of GP10 inputs are HIGH python displays one of 150 JPEGS. Is this possible? what sort of boot times can I get with Arch?


On Wednesday, 20 May 2015 08:14:50 UTC+1, Christian Gollwitzer  wrote:
> Am 20.05.15 um 08:49 schrieb Howard Spink:
> > I have a Pi + SD card with Pi OS + PiTfT screen
> >
> > I am trying to display specific JPEGs when certain combination of GP10 inputs are HIGH. I would like to use Python, I have no background in programming. Can someone point me on the right tracks?
> >
> 
> No bg in programming is not very helpful. I suggest you do some 
> tutorials. For instance, the PiTFT has this:
> 
> https://learn.adafruit.com/downloads/pdf/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi.pdf
> 
> It shows how you can display images from the shell. Next, do a tutorial 
> on Python programming, e.g. https://wiki.python.org/moin/BeginnersGuide 
> - but you shold choose one that fits your way of learning. Maybe there 
> is a RasPI tutorial also, which shows you how to read from the GP ports, 
> I'm too lazy to google it now - just try combinations of API, tutorial, 
> documentation with keywords like RasPI, GP, GP programming etc.
> 
> Finally you can wire this all up. An experienced programmer with no 
> previous knowledge of RasPI can do this within half an hour by reading 
> these guides. Your biggest task is to understand programming. Have fun!
> 
> 	Christian

[toc] | [prev] | [next] | [standalone]


#90944

Fromalister <alister.nospam.ware@ntlworld.com>
Date2015-05-20 08:46 +0000
Message-ID<mjhhl1$udc$1@speranza.aioe.org>
In reply to#90943
On Wed, 20 May 2015 00:54:40 -0700, Howard Spink wrote:

> Thanks for your help. I want the python to run automatically after boot
> and show a blank white screen, when a combination of GP10 inputs are
> HIGH python displays one of 150 JPEGS. Is this possible? what sort of
> boot times can I get with Arch?
> 
Please don't top post as it makes the conversation difficult to follow,
interleaved posting is the prefered style for this news group

Your question is probably best asked in the raspberry pi news group
comp.sys.raspberry-pi

> 
> On Wednesday, 20 May 2015 08:14:50 UTC+1, Christian Gollwitzer  wrote:
>> Am 20.05.15 um 08:49 schrieb Howard Spink:
>> > I have a Pi + SD card with Pi OS + PiTfT screen
>> >
>> > I am trying to display specific JPEGs when certain combination of
>> > GP10 inputs are HIGH. I would like to use Python, I have no
>> > background in programming. Can someone point me on the right tracks?
>> >
>> >
>> No bg in programming is not very helpful. I suggest you do some
>> tutorials. For instance, the PiTFT has this:
>> 
>> https://learn.adafruit.com/downloads/pdf/adafruit-pitft-28-inch-
resistive-touchscreen-display-raspberry-pi.pdf
>> 
>> It shows how you can display images from the shell. Next, do a tutorial
>> on Python programming, e.g. https://wiki.python.org/moin/BeginnersGuide
>> - but you shold choose one that fits your way of learning. Maybe there
>> is a RasPI tutorial also, which shows you how to read from the GP
>> ports,
>> I'm too lazy to google it now - just try combinations of API, tutorial,
>> documentation with keywords like RasPI, GP, GP programming etc.
>> 
>> Finally you can wire this all up. An experienced programmer with no
>> previous knowledge of RasPI can do this within half an hour by reading
>> these guides. Your biggest task is to understand programming. Have fun!
>> 
>> 	Christian





-- 
Now it's time to say goodbye
To all our company...
M-I-C	(see you next week!)
K-E-Y	(Why?  Because we LIKE you!)
M-O-U-S-E.

[toc] | [prev] | [next] | [standalone]


#90951

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2015-05-20 08:17 -0400
Message-ID<mailman.167.1432124264.17265.python-list@python.org>
In reply to#90943
On Wed, 20 May 2015 00:54:40 -0700 (PDT), Howard Spink
<howi682@googlemail.com> declaimed the following:

>Thanks for your help. I want the python to run automatically after boot and show a blank white screen, when a combination of GP10 inputs are HIGH python displays one of 150 JPEGS. Is this possible? what sort of boot times can I get with Arch?
>
	Just an FYI: Those are GPIO (gee pee eye oh: General Purpose
Input/Output), not GP10 (gee pee one zero) pins... If you do follow the
recommendation to ask in the R-Pi group it may help to have the notation
correct.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [next] | [standalone]


#90975

FromTerry Reedy <tjreedy@udel.edu>
Date2015-05-20 14:50 -0400
Message-ID<mailman.182.1432147828.17265.python-list@python.org>
In reply to#90943
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web