Go to advanced search

by CJHeiser
Sat Mar 07, 2015 7:08 pm
Forum: Python
Topic: Searching for Files in Python
Replies: 2
Views: 1518

Re: Searching for Files in Python

I think you could do something simple like this with your code: import os base = "/home/pi" target = raw_input("Enter name of file to find: ") for root, dirs, files in os.walk(base): if target in files: print "Target found" print os.path.join(root, target) So you just enter the file name that you'r...
by CJHeiser
Fri Mar 06, 2015 10:06 pm
Forum: Python
Topic: Searching for Files in Python
Replies: 2
Views: 1518

Searching for Files in Python

Let me explain what I am trying to do here. I am trying to make a program where you type in a file name (a song to be exact .mp3) and it will search for it automaticly, without having to type in the directory. So the user types in their song in the Pi terminal, and the program searches through the d...
by CJHeiser
Thu Jun 19, 2014 10:31 pm
Forum: Advanced users
Topic: Multiple Inputs (buttons)
Replies: 14
Views: 16011

Re: Multiple Inputs (buttons)

I would like to update all of you on what was wrong with the code, I needed to be using GPIO.HIGH/LOW. So it should have been... if GPIO.input(pin) == GPIO.LOW: #do this code here elif GPIO.input(pin2) == GPIO.LOW: #do this other code here ect... Also getting rid of the extra while statement at the ...
by CJHeiser
Tue Jun 17, 2014 6:51 pm
Forum: General discussion
Topic: Is it harmfull to have the CPU at 100% 24/7 ?
Replies: 4
Views: 1007

Re: Is it harmfull to have the CPU at 100% 24/7 ?

I agreee with Jessie, but if you plan on overclocking it you should look into getting a heat-sink http://www.amazon.com/Aluminum-Heatsink ... B00A88DVTG.
by CJHeiser
Tue Jun 17, 2014 6:42 pm
Forum: Advanced users
Topic: Multiple Inputs (buttons)
Replies: 14
Views: 16011

Re: Multiple Inputs (buttons)

Thanks so much for all of your replies! Dougie I tried your code ( I am on 2.7 so I had to change a few things ) and it returned some unexpected results. It would continuously write "Pin 18 is true" and the buttons were usless. I tried to change the True and False value but I would get the same resu...
by CJHeiser
Tue Jun 17, 2014 3:58 am
Forum: Advanced users
Topic: Multiple Inputs (buttons)
Replies: 14
Views: 16011

Multiple Inputs (buttons)

I can't seem to figure out how to program multiple inputs to the Raspberry pi. I want to have three buttons, when you press button 1 it does this, when you press button 2 it does something else, ect. I tried this code below (and many others) and it doesn't work. Any help is much appreciated. GPIO.se...
by CJHeiser
Sun Aug 11, 2013 10:52 pm
Forum: General discussion
Topic: Raspberry Pi as an FM Transmitter
Replies: 3
Views: 1460

Re: Raspberry Pi as an FM Transmitter

Thanks a lot! I will try it out when I get it!
by CJHeiser
Wed Jul 10, 2013 3:29 pm
Forum: General discussion
Topic: Raspberry Pi as an FM Transmitter
Replies: 3
Views: 1460

Raspberry Pi as an FM Transmitter

I have my pi set up so it can broadcast FM radio, however it only works within a few feet, any ideas on how to make it stronger? I did try a little tin foil but that did't work very good, any antennas that I could buy? No need to worry about the FCC regulations or any laws like that, I live in the ...

Go to advanced search