Go to advanced search

by Billboutin
Fri Apr 19, 2013 2:02 pm
Forum: General programming discussion
Topic: keypress function?
Replies: 0
Views: 434

keypress function?

Hi. I'm still just learning Python, and I've been doing some programs that output to a 7 segment LED display for demonstrations. What I'd like to know is if there's a "keypress" function that I can use in a loop to keep the program running, flashing lights, etc, without stopping to request an input ...
by Billboutin
Tue Apr 02, 2013 11:25 am
Forum: General programming discussion
Topic: problem with turtle graphics
Replies: 2
Views: 1610

Re: problem with turtle graphics

That did it, thanks.
by Billboutin
Mon Apr 01, 2013 2:00 pm
Forum: General programming discussion
Topic: problem with turtle graphics
Replies: 2
Views: 1610

problem with turtle graphics

Hi all, I tried following the "plot a sine wave" lesson in the python docs but couldn't get the setworldcoordinates to work, I plugged in the following code and got a "screen not defined error import math import turtle screen.reset() screen.setworldcoordinates(0,-1,360,1) wn = turtle.Screen() wn.bgc...
by Billboutin
Wed Mar 13, 2013 2:06 pm
Forum: Beginners
Topic: errors and missing modules
Replies: 3
Views: 608

Re: errors and missing modules

I assume you are using a recent Raspbian OS... If you can't find PyGame, then it is probably because you are using Python3 and not Python2. PyGame is already installed, but it is not yet available for Python3. So if you want to use PyGame you will have to use Python2 (and maybe IDLE) and not Python...
by Billboutin
Wed Mar 13, 2013 1:03 pm
Forum: Beginners
Topic: errors and missing modules
Replies: 3
Views: 608

errors and missing modules

Is there a revision of the Python tutorial somewhere about? There seem to be errors in the tutorial, doing exercise 6.2 generated the following error, and 6.3 didn't work either. >>> import sys >>> sys.ps1 Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> sys.ps1 AttributeEr...
by Billboutin
Tue Mar 12, 2013 6:02 pm
Forum: Beginners
Topic: How do I use the GPIO?
Replies: 5
Views: 1470

Re: How do I use the GPIO?

Substitute python for python3 on the command line. You are getting the error about non-ASCII characters because you copied and pasted some strange whitespace characters. Delete all the whitespace and add it again with your spacebar. Warning: do not use tabs! They will work after a fashion but will ...
by Billboutin
Tue Mar 12, 2013 3:59 pm
Forum: Beginners
Topic: How do I use the GPIO?
Replies: 5
Views: 1470

Re: How do I use the GPIO?

There are examples in the Raspberry Pi Education Manual: http://downloads.raspberrypi.org/Raspberry_Pi_Education_Manual.pdf Make sure you check the errata here: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=28098&p=252609#p249673 Note that for up to date RPi.GPIO information, look here (especia...
by Billboutin
Mon Mar 11, 2013 6:36 pm
Forum: Beginners
Topic: How do I use the GPIO?
Replies: 5
Views: 1470

Re: How do I use the GPIO?

There are examples in the Raspberry Pi Education Manual: http://downloads.raspberrypi.org/Raspberry_Pi_Education_Manual.pdf Make sure you check the errata here: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=28098&p=252609#p249673 Note that for up to date RPi.GPIO information, look here (especia...
by Billboutin
Mon Mar 11, 2013 5:33 pm
Forum: Beginners
Topic: How do I use the GPIO?
Replies: 5
Views: 1470

How do I use the GPIO?

Hi all, I recently received a Raspberry Pi and I'm just figuring out how to use it. My background is as an engineering electronics technician, I am familiar with circuit design and fairly familiar with digital and microprocessor circuitry. My programming experience has been with Fortran and Basic ye...
by Billboutin
Thu Mar 07, 2013 9:57 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

Finally got the keyboard working properly, at least for now. Thanks for all the help everyone. :D
by Billboutin
Thu Mar 07, 2013 9:51 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

I'm trying to learn programming in Python, trouble is the program doesn't seem to accept the double quote " symbol. When typing it there's even a delay on that symbol, so I tried every keyboard configuration in the config that I could find and it still gives a syntax error. I'm in the US using an H...
by Billboutin
Thu Mar 07, 2013 7:46 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

Hi all, I'm trying to learn programming in Python, trouble is the program doesn't seem to accept the double quote " symbol. When typing it there's even a delay on that symbol, so I tried every keyboard configuration in the config that I could find and it still gives a syntax error. I'm in the US us...
by Billboutin
Thu Mar 07, 2013 7:45 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

I suggest your problem is actually a syntax error in a previous line probably with a quoted line and a MISSING end quote on that line. I just copied and pasted your single line into a python 3 (actually idle on Windows) and it executed no problem, and NO errors The following in python 3 works x=int...
by Billboutin
Thu Mar 07, 2013 4:18 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

croston wrote:What about single quotes?
Same problem syntax error in identifier. Quotation marks are not coming up in this reply either.
by Billboutin
Thu Mar 07, 2013 4:02 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

Are you using Python (V2) or Python3 your statement looks Python 3 being executed in Python2 If you are using IDLE that is python V2 Use IDLE3 for Python 3 I tried it in all three, Linux tx, idle and idle 3 got basically the same message. For some reason the computer does not seem to like the quota...
by Billboutin
Thu Mar 07, 2013 3:50 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

[quote="joan"]Could you post an example of the code which gives a syntax error in Python?
x=int(input("Please enter an integer: "))
by Billboutin
Thu Mar 07, 2013 3:47 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

joan wrote:Could you post an example of the code which gives a syntax error in Python?

Include it using the Code button above.
x = int(input("Please enter an integer: "))
this got a "syntax error" with a symbol under the first double quotation mark.
by Billboutin
Thu Mar 07, 2013 3:46 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Re: Getting a s syntax error

croston wrote:Could you show us your code please!
x = int(input("Please enter an integer: "))
this got a "syntax error" with a symbol under the first double quotation mark.
by Billboutin
Thu Mar 07, 2013 2:46 pm
Forum: Troubleshooting
Topic: Getting a s syntax error
Replies: 15
Views: 2169

Getting a s syntax error

Hi all, I'm trying to learn programming in Python, trouble is the program doesn't seem to accept the double quote " symbol. When typing it there's even a delay on that symbol, so I tried every keyboard configuration in the config that I could find and it still gives a syntax error. I'm in the US usi...
by Billboutin
Wed Mar 06, 2013 1:17 pm
Forum: Troubleshooting
Topic: Bad power connection
Replies: 2
Views: 409

Re: Bad power connection

Thanks.
by Billboutin
Wed Mar 06, 2013 12:47 pm
Forum: Troubleshooting
Topic: Bad power connection
Replies: 2
Views: 409

Bad power connection

The power cable to the Rapi is bad, is it possible to backfeed 5 volts through the gpio connectors?
by Billboutin
Tue Mar 05, 2013 10:25 pm
Forum: Beginners
Topic: Hello newbie here
Replies: 3
Views: 613

Re: Hello newbie here

What are your interests? Are into coding at all? Just wish to understand GNU/Linux and experience the world on the other side of the Window(s)? Aspirations to use the GPIO and the physical computing side of things.? Take a look at the MagPi magazine http://www.themagpi.com/ where there is a smatter...
by Billboutin
Tue Mar 05, 2013 6:55 pm
Forum: Beginners
Topic: Hello newbie here
Replies: 3
Views: 613

Hello newbie here

Hi. I just received my Pi and just got it on the internet today. I am totally new to the computer, to Linux and Python as well. Could someone please point me in the right direction to get started learning how to use Linux and how to get Python up and running? Thanks in advance.

Bill Boutin

Go to advanced search