Go to advanced search

by PeterGurton
Sun Mar 09, 2014 7:42 pm
Forum: Beginners
Topic: Python code snippets
Replies: 5
Views: 1160

Re: Python code snippets

Thanks everyone for your help: Right click, then selecting Word from the 'choose default program' works fine and includes the code indents. FYI, Notepad puts it all on one line - awkward to read, but it's all there; WordPad breaks it down into individual lines but doesn't include the line indents. C...
by PeterGurton
Sun Mar 09, 2014 5:47 pm
Forum: Beginners
Topic: Python code snippets
Replies: 5
Views: 1160

Re: Python code snippets

Hi, I want to view the code on my laptop (the Pi I am using is not connected to the internet yet), I have downloaded a bunch of code examples that have .py extensions, but when I try to open these I get the "Windows cannot open this type of file" message. I downloaded a Python Interpreter program, w...
by PeterGurton
Sun Mar 09, 2014 12:51 pm
Forum: Beginners
Topic: Python code snippets
Replies: 5
Views: 1160

Python code snippets

Is there a downloadable Python interpreter that will allow the user to view .py code in a text editor - Word document on a PC for example. One that doesn't want to change all the default programs and install toolbars that I don't want etc... Many years ago I was doing VB programming and there were l...
by PeterGurton
Mon Mar 03, 2014 4:52 pm
Forum: Beginners
Topic: stopping a python program
Replies: 6
Views: 63753

Re: stopping a python program

Hi, I tried all combinations, none worked, program still running. But thanks for the reply.

Cheers

Peter
by PeterGurton
Mon Mar 03, 2014 4:21 pm
Forum: Beginners
Topic: stopping a python program
Replies: 6
Views: 63753

stopping a python program

I'm almost embarrassed to ask this, but how do you stop a program that's running. I am a newbie, but need to get a project up and running asap for which the GPIO will be ideal. I have used the flashing LED GPIO example program in "the essential guide to getting started with the raspberry Pi" book an...
by PeterGurton
Sat Mar 01, 2014 10:04 am
Forum: Beginners
Topic: Controlling a switch
Replies: 3
Views: 710

Re: Controlling a switch

Thanks for the replies. The load I am switching is tiny, it is actually just replacing a two way switch that has it's own controller for the motors - I won't bore you with the details though. I have found suitable relays that will work off 3V, and with the awesome resource that is YouTube, I think I...
by PeterGurton
Fri Feb 28, 2014 11:55 am
Forum: Beginners
Topic: Controlling a switch
Replies: 3
Views: 710

Controlling a switch

Hi, I am a total newbie to the Raspberry Pi, so any help will be greatly appreciated. I am working on a unit that needs to run through a repeated test cycle while current draw is logged. A two way switch is used to operate the unit. The complete cycle is: press "up" for 4 seconds, release, then pres...

Go to advanced search