Go to advanced search

by AndrewS
Tue Aug 26, 2014 9:58 pm
Forum: Python
Topic: Criticize my code maybe?
Replies: 1
Views: 540

Re: Criticize my code maybe?

I'm not going to scrutinise your code, but have you looked at http://raspi.tv/2013/how-to-use-dropbox ... spberry-pi ?
At the very least it might give you some suggestions to learn from...?
by AndrewS
Tue Aug 26, 2014 9:55 pm
Forum: Python
Topic: [Solved] GPIO - Python
Replies: 12
Views: 3376

Re: GPIO - Python

http://raspi.tv/2013/rpi-gpio-basics-6- ... pull-downs should point you in the right direction :)
by AndrewS
Tue Aug 26, 2014 9:52 pm
Forum: Python
Topic: javascript in python .py
Replies: 9
Views: 1654

Re: javascript in python .py

paddyg wrote:PS in python I just stick in print()s but that won't help here as it seems that the python works ok (as you say you get a web page rendered) but the javaScript doesn't work.
http://www.w3schools.com/jsref/met_win_alert.asp ;)
by AndrewS
Tue Aug 26, 2014 6:55 pm
Forum: Python
Topic: javascript in python .py
Replies: 9
Views: 1654

Re: javascript in python .py

AFAICT you're currently only using Python to output a static HTML page (with embedded javascript)? So for debugging purposes it might be better to just create it as a standalone .html page, use that to debug your javascript, and then copy the 'fixed' version back into your python file, ready for fur...
by AndrewS
Tue Aug 26, 2014 6:47 pm
Forum: Troubleshooting
Topic: RPi and microSD ext4-fs error
Replies: 5
Views: 4655

Re: RPi and microSD ext4-fs error

See this thread http://www.raspberrypi.org/forums/viewt ... 28&t=85210

Especially the last post ;)
by AndrewS
Tue Aug 26, 2014 6:39 pm
Forum: General discussion
Topic: raspi pi c#/vb.net
Replies: 2
Views: 645

Re: raspi pi c#/vb.net

Depends what sort of "data" you're collecting... One way to do it would be to have the Python-on-Raspi program log results to a CSV file, and the use SFTP to transfer that file over to your PC, for the C#-on-Windows program to load and analyse. Or if you want real-time updates, you could use a netwo...
by AndrewS
Tue Aug 26, 2014 6:34 pm
Forum: Camera board
Topic: Camera only working when HDMI output enabled
Replies: 28
Views: 9536

Re: Camera only working when HDMI output enabled

By "here" I suspect 6by9 meant Broadcom's Cambridge offices, not the Raspberry Pi forums ;)
by AndrewS
Tue Aug 26, 2014 6:28 pm
Forum: Graphics, sound and multimedia
Topic: PS4 camera is it possible?
Replies: 3
Views: 2895

Re: PS4 camera is it possible?

I simply googled for "PS4 camera linux" and followed a few links... :|
by AndrewS
Tue Aug 26, 2014 6:21 pm
Forum: Bare metal, Assembly language
Topic: Questions about 0x8000, interrupts and memory structure
Replies: 12
Views: 3983

Re: Questions about 0x8000, interrupts and memory structure

dwelch67 wrote:If you use config.txt to place your binary at zero
The 'kernel_address' option in http://www.raspberrypi.org/documentatio ... fig-txt.md if you're wondering how to change it... ;)
by AndrewS
Tue Aug 26, 2014 4:07 pm
Forum: Graphics, sound and multimedia
Topic: PS4 camera is it possible?
Replies: 3
Views: 2895

Re: PS4 camera is it possible?

A bit of a google and I found https://github.com/ps4eye/ps4eye which says
The PS4 camera is USB 3.0 only and is not compatible with USB 2.0 systems.
by AndrewS
Tue Aug 26, 2014 2:53 pm
Forum: General discussion
Topic: The Raspberry Pi Model B+ Q&A thread
Replies: 388
Views: 191514

Re: The Raspberry Pi Model B+ Q&A thread

Because it makes all of the Bank0 GPIOs (0 -> 27) available on the header http://elinux.org/RPi_BCM2835_GPIOs :geek:
by AndrewS
Tue Aug 26, 2014 2:47 pm
Forum: Python
Topic: matplotlib .show() not showing graph on pi python3x
Replies: 3
Views: 1406

Re: matplotlib .show() not showing graph on pi python3x

Raspbian Wheezy has the same version of matplotlib as upstream Debian Wheezy https://packages.debian.org/wheezy/python-matplotlib

Only Jessie has a newer version https://packages.debian.org/jessie/python-matplotlib (so I assume that'll be the version in Raspbian Jessie too).
by AndrewS
Tue Aug 26, 2014 2:37 pm
Forum: General discussion
Topic: Chromium Os
Replies: 10
Views: 2718

Re: Chromium Os

For debugging kernel errors, you'll need a USB->TTL UART adaptor so you can watch the kernel bootup messages / errors...
by AndrewS
Tue Aug 26, 2014 2:26 pm
Forum: Python
Topic: Simulating keyboard events (?) in Python
Replies: 10
Views: 7548

Re: Simulating keyboard events (?) in Python

So with the uinput.KEY_A argument, ev_type is uinput (which equals 1, apparently, I don't know why - presumably something in the __init__ file I haven't seen yet) and ev_code is KEY_A. Nope, that's not how Python works ;-) uinput.KEY_A is an object called 'KEY_A' inside the module called 'uinput', ...
by AndrewS
Tue Aug 26, 2014 2:14 pm
Forum: Python
Topic: IOError: [Errno 24] Too many open files:
Replies: 1
Views: 1589

Re: IOError: [Errno 24] Too many open files:

You could try creating the 'conn' object just once (outside your while loop) and then simply pass it in as an extra parameter to your read() function...
Either that, or make sure that the 'conn' object gets properly close()d before leaving the read() function.
by AndrewS
Tue Aug 26, 2014 2:01 pm
Forum: Troubleshooting
Topic: ACT LED - Where this is enabled
Replies: 12
Views: 1594

Re: ACT LED - Where this is enabled

AFAIK the revision is stored in the BCM2835's OTP (One Time Programmable memory) - http://www.raspberrypi.org/forums/search.php?keywords=otp_dump will give you more info about that. For a list of previous revision values see http://elinux.org/RPi_HardwareHistory and http://raspberryalphaomega.org.uk...
by AndrewS
Tue Aug 26, 2014 12:28 pm
Forum: Troubleshooting
Topic: About network problem.
Replies: 3
Views: 631

Re: About network problem.

You'll need to give much more detail if you expect anybody to provide a helpful answer...
by AndrewS
Tue Aug 26, 2014 11:12 am
Forum: Compute Module
Topic: How to get a 2nd Camera Adapter Board?
Replies: 32
Views: 10034

Re: How to get a 2nd Camera Adapter Board?

Gordon would undoubtedly benefit from it more than I.
by AndrewS
Tue Aug 26, 2014 11:10 am
Forum: Compute Module
Topic: Bank 1 SPI - help needed
Replies: 4
Views: 1381

Re: Bank 1 SPI - help needed

Sounds like the driver for the LCD must be doing something to disable spidev then? As I've got no idea what LCD or driver you're using, all I can suggest is contacting the manufacturer and asking them for more help :? (even if I did know what LCD-driver you were using, I personally wouldn't be able ...
by AndrewS
Tue Aug 26, 2014 10:57 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 5966

Re: GUI

Because the function used only reads the state of the buttons but I don't know how I can set this state manually. You don't "manually set the button state". Instead you need to separate out the code that actually "does something" from your button-press-detecting function, and put that in a separate...
by AndrewS
Tue Aug 26, 2014 12:20 am
Forum: Beginners
Topic: kali raspberry repo
Replies: 4
Views: 12123

Re: kali raspberry repo

Be careful though - from what I've read elsewhere Kali uses armel (soft-float) on the Pi rather than armhf (hard-float), so it's likely that the armhf Kali packages are compiled for ARMv7 and above, just like upstream Debian. Whereas Raspbian is setup to use armhf, but compiled for ARMv6 (the CPU in...

Go to advanced search