Go to advanced search

by The programmer
Sun Mar 04, 2018 6:59 am
Forum: Off topic discussion
Topic: How can I connect my raspberry pi 3 to wii
Replies: 1
Views: 1250

How can I connect my raspberry pi 3 to wii

I know it may not have been doen but I am willing to try. I want to connect my raspberry pi to the wii so I control from my pi. I have tried pressing sync and scanning for it on the pi. Please help :D . Thank you :) What I really want to do is to connect a xbox one controller v2 to my pi, get button...
by The programmer
Fri Feb 24, 2017 9:35 pm
Forum: Off topic discussion
Topic: Connect IDE Hard Drive to RPI 3 B
Replies: 13
Views: 6693

Re: Connect IDE Hard Drive to RPI 3 B

The programmer, Any other way without payig Ah, you should have said. Easy, peasy.... Hook up an old IDE cable to the Raspi GPIO. That may need some voltage level conversions, I think IDE signals are 5v. May need a port expander if there is not enough pins available. Then write the driver software ...
by The programmer
Fri Feb 24, 2017 4:05 pm
Forum: Off topic discussion
Topic: Connect IDE Hard Drive to RPI 3 B
Replies: 13
Views: 6693

Re: Connect IDE Hard Drive to RPI 3 B

I got a lot of cables
by The programmer
Fri Feb 24, 2017 4:05 pm
Forum: Off topic discussion
Topic: Connect IDE Hard Drive to RPI 3 B
Replies: 13
Views: 6693

Re: Connect IDE Hard Drive to RPI 3 B

Do you know how to make one
by The programmer
Fri Feb 24, 2017 4:04 pm
Forum: Off topic discussion
Topic: Connect IDE Hard Drive to RPI 3 B
Replies: 13
Views: 6693

Re: Connect IDE Hard Drive to RPI 3 B

Any other way without paying
by The programmer
Fri Feb 24, 2017 3:52 pm
Forum: Off topic discussion
Topic: Connect IDE Hard Drive to RPI 3 B
Replies: 13
Views: 6693

Connect IDE Hard Drive to RPI 3 B

Hello. I would like to know how to connect a IDE Hard Drive to my raspberry pi 3 b+. Thank you.
by The programmer
Wed Feb 08, 2017 6:38 pm
Forum: Off topic discussion
Topic: AWT LABEL NOT SHOWING
Replies: 8
Views: 1882

Re: AWT LABEL NOT SHOWING

It works now!
All I did was make l1 smaller by width
by The programmer
Wed Feb 08, 2017 5:14 pm
Forum: Off topic discussion
Topic: AWT LABEL NOT SHOWING
Replies: 8
Views: 1882

Re: AWT LABEL NOT SHOWING

This works for me import java.awt.Button; import java.awt.Color; import java.awt.Frame; import java.awt.Label; import java.awt.TextField; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Arrays; public class question extends Frame implements ActionListener{ ...
by The programmer
Wed Feb 08, 2017 5:13 pm
Forum: Off topic discussion
Topic: AWT LABEL NOT SHOWING
Replies: 8
Views: 1882

Re: AWT LABEL NOT SHOWING

Heater wrote:The programmer,
Forget about the question and answers.
OK, what was the question?
Who is the eff leader.
by The programmer
Tue Feb 07, 2017 7:06 pm
Forum: Off topic discussion
Topic: AWT LABEL NOT SHOWING
Replies: 8
Views: 1882

AWT LABEL NOT SHOWING

import java.awt.Button; import java.awt.Color; import java.awt.Frame; import java.awt.Label; import java.awt.TextField; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Arrays; public class question extends Frame implements ActionListener{ Label l1,l2, l3, l...
by The programmer
Sat Dec 31, 2016 3:09 pm
Forum: Python
Topic: Python error! Pls help
Replies: 4
Views: 943

Re: Python error! Pls help

I can see several faults with the logic in your code... Amongst them :- 1) You read the wii's buttons at the start of the main loop but the inner while loop doesn't re-read the wii's buttons so it will always have the same value (most likely 0). 2) Possible filename differences, you read "/home/pi/...
by The programmer
Sat Dec 31, 2016 3:04 pm
Forum: Python
Topic: Python error! Pls help
Replies: 4
Views: 943

Re: Python error! Pls help

Thank you I fixed my mistakes but do you know how to fix the wiimote not giving input.
It works find but whats wrong with the code.

newfile.txt=2121
And var = (len(line1)) outputs 12 instead of 4 or 3.Why? Fix?
print line1[0] prints 2 like it suppose to.
by The programmer
Sat Dec 31, 2016 12:04 pm
Forum: Python
Topic: Python 2.7 error 2
Replies: 4
Views: 996

Re: Py thon 2.7 error 2

What you trying to say or tell me?
by The programmer
Sat Dec 31, 2016 11:44 am
Forum: Python
Topic: Python 2.7 error 2
Replies: 4
Views: 996

Python 2.7 error 2

Code: Select all

File = open("/home/pi/newfile.txt", "r")
        line1 = File.read()
print (len(line1))
It outputs 12 but I need it to be 4.

But if this code add it prints 2.

Code: Select all

print line1[0]
why and fix.
newfile.txt=2121.
Thank you for help:D
by The programmer
Sat Dec 31, 2016 11:05 am
Forum: Python
Topic: Python error! Pls help
Replies: 4
Views: 943

Python error! Pls help

#!/usr/bin/python #+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #|R|a|s|p|b|e|r|r|y|P|i|-|S|p|y|.|c|o|.|u|k| #+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ # # wii_remote_1.py # Connect a Nintendo Wii Remote via Bluetooth # and read the button states in Python. # # Project URL : # http://www.raspberry...
by The programmer
Tue Dec 27, 2016 1:49 pm
Forum: General discussion
Topic: How to tell pi to hold and release wiimote buttons python2.7
Replies: 4
Views: 1404

Re: How to tell pi to hold and release wiimote buttons pytho

Do you know how to use the accelerometer, giroscope.
by The programmer
Tue Dec 27, 2016 1:48 pm
Forum: General discussion
Topic: How to tell pi to hold and release wiimote buttons python2.7
Replies: 4
Views: 1404

Re: How to tell pi to hold and release wiimote buttons pytho

Wow that was so easy.
I don't know why i did not do that.
by The programmer
Mon Dec 26, 2016 7:38 pm
Forum: General discussion
Topic: How to tell pi to hold and release wiimote buttons python2.7
Replies: 4
Views: 1404

How to tell pi to hold and release wiimote buttons python2.7

As your can see at the bottom I tried to tell my pi to switch on a led when pressed and off when released with wiimote. But when_pressed and when_released is only for buttons. So how do aI do this. Thank you for your help and support. #!/usr/bin/python #+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #|...
by The programmer
Mon Dec 26, 2016 1:02 pm
Forum: Troubleshooting
Topic: Issue running ./msfconsole
Replies: 1
Views: 720

Re: Issue running ./msfconsole

I got the same problem by this site too. Just a little different. [email protected]:~$ cd /opt/metasploit-framework [email protected]:/opt/metasploit-framework$ ./msfconsole /var/lib/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- robots ...

Go to advanced search