Go to advanced search

by hexelpdkk
Thu Feb 04, 2016 7:48 am
Forum: Pidora / Fedora
Topic: Does anyone know why this won't boot?
Replies: 6
Views: 2563

Re: Does anyone know why this won't boot?

That would imply that it is included in the standard 4.1.13-v7+ kernel that I'm running, at least. It's a module, not compiled in to the kernel image itself, and so can not be used to mount the root file system. This is why Jon Archer's method works on F21 (which has the second partition as ext4) b...
by hexelpdkk
Wed Feb 03, 2016 8:55 pm
Forum: Pidora / Fedora
Topic: Does anyone know why this won't boot?
Replies: 6
Views: 2563

Re: Does anyone know why this won't boot?

From memory, I don't think the kernel from the foundation has xfs compiled in (I seem to remember hitting this myself) which is why the instructions work for F21 but not F23 (where the fedora arm root partition is xfs). Instead, look at the thread on a respin by vaughan - https://www.raspberrypi.org...
by hexelpdkk
Mon Jan 11, 2016 9:26 pm
Forum: Raspbian
Topic: Compilation error
Replies: 2
Views: 636

Re: Compilation error

From your output, the script is configuring the build for an x86_64 host, and not arm. This is why it can't build a usable executable. ../libusb-1.0.18/configure --disable-timerfd --disable-udev --disable-shared --host=x86_64-linux-gnu --prefix=/home/pi/Desktop/hauppauge_hdpvr2_driver_ver6/3rd-party...
by hexelpdkk
Wed Nov 18, 2015 11:41 pm
Forum: Beginners
Topic: AA few questions about R Pi!
Replies: 3
Views: 471

Re: AA few questions about R Pi!

* Is possible to install the Raspberry Pi and get in working and then shutdown and remove all cables except Power and network. Will it bootup? Yes - this is called "headless". You can access the pi remotely using ssh (from linux) or putty (an ssh client for windows). * What happens if there is a po...
by hexelpdkk
Wed Nov 18, 2015 8:15 pm
Forum: General discussion
Topic: How do I run a program from the terminal?
Replies: 2
Views: 722

Re: How do I run a program from the terminal?

Just looking at the examples on the filebot site, the basic calling convention is filebot [options] path [more options] Each option is an option name (e.g. --def) followed by some data (e.g. ut_label=tv). When you run a command line program, the arguments are passed to the program by breaking them u...
by hexelpdkk
Sun Nov 08, 2015 1:32 pm
Forum: Troubleshooting
Topic: Code issue, if statement not executing.
Replies: 2
Views: 466

Re: Code issue, if statement not executing.

You only ever set the value of the variable spinState at line 24.
Adding

Code: Select all

spinState = GPIO.input(18)
before line 47, so you read the state of the GPIO on each loop, should resolve your issue.
As an aside, I would normally add a sleep in this loop, so it doesn't run at 100% cpu usage
by hexelpdkk
Tue Nov 03, 2015 7:28 pm
Forum: Beginners
Topic: Crontab not allowing text entry
Replies: 2
Views: 367

Re: Crontab not allowing text entry

Just a guess, but I think it has started "vi" for you, to edit the file. If you type "ZZ" (that's capital Z twice) does it exit?
You can change the editor it uses by setting the EDITOR environment variable. For example:

Code: Select all

export EDITOR=nano
by hexelpdkk
Tue Nov 03, 2015 5:15 pm
Forum: Java
Topic: JavaNullPointer Exception while creating an object
Replies: 1
Views: 555

Re: JavaNullPointer Exception while creating an object

Firstly, I think you are making too much "static" in your class. "static" means there is only one instance of this variable, shared between all instances of your class. Secondly, you are invoking a static contructor using the value pin before pin is initialised. Try something like the following: pub...
by hexelpdkk
Tue Nov 03, 2015 8:29 am
Forum: Pidora / Fedora
Topic: Keyboard and mouse not working on Fedora 22 for RPi2B
Replies: 2
Views: 1842

Re: Keyboard and mouse not working on Fedora 22 for RPi2B

I had the same symptom with the workstation image, but not with XFCE, which worked fine. If you just want an image, user vaughn created one using the proper respin tools, see https://www.raspberrypi.org/forums/viewtopic.php?f=51&t=122403 . If you are more interested in doing it yourself, I can cross...
by hexelpdkk
Fri Oct 30, 2015 2:29 pm
Forum: Beginners
Topic: Strange CLI problem
Replies: 1
Views: 294

Re: Strange CLI problem

If I type nano /ect/apt/sources.list then it tries to create a new folder.
That should be /etc, not /ect.
by hexelpdkk
Wed Oct 28, 2015 9:05 pm
Forum: General discussion
Topic: Which kit to buy?
Replies: 1
Views: 268

Re: Which kit to buy?

Pimoroni do these starter kits:
https://shop.pimoroni.com/collections/r ... tarter-kit
That gives you everything apart from a monitor with an HDMI input to plug it in to.
by hexelpdkk
Tue Oct 27, 2015 8:19 am
Forum: Troubleshooting
Topic: Hobbytronics 12 channel servo controller poblems
Replies: 4
Views: 558

Re: Hobbytronics 12 channel servo controller poblems

I haven't used this device, but have used the adafruit 16 channel, which seems similar. As you say "it just spins continuously", is this a continuous rotation servo? Have you set up "standard mode" on the device (address 20, value 0) What value are you setting on servo 0? 127 should give 1.5ms pulse...
by hexelpdkk
Mon Oct 26, 2015 8:24 am
Forum: Graphics programming
Topic: Custom OS and simple graphics needs
Replies: 13
Views: 2378

Re: Custom OS and simple graphics needs

Maybe take a look at SDL, although I haven't tried it with a touch screen, and Kivy (python, but well structured and there are examples of it working with the RPi touchscreen, including multitouch support)
by hexelpdkk
Sun Oct 25, 2015 8:16 pm
Forum: Graphics programming
Topic: Custom OS and simple graphics needs
Replies: 13
Views: 2378

Re: Custom OS and simple graphics needs

Actually, my question may suck. Since every graphics are based on x or wayland + gpu drivers, I am wasting my life trying to implement a new stack.. Am I right? You don't necessarily need X/Wayland, OpenVG or OpenGLES will both work on the raspberry pi without running X. However, writing a custom O...
by hexelpdkk
Sun Oct 25, 2015 11:26 am
Forum: Raspbian
Topic: RPI 2 kernel module build
Replies: 4
Views: 1157

Re: RPI 2 kernel module build

The official instructions are for building the whole kernel and all modules. My instructions cover getting just enough in place to build a single module - in my case it was the XBox 360 big button controller https://github.com/micolous/xbox360bb
by hexelpdkk
Sun Oct 25, 2015 7:38 am
Forum: Raspbian
Topic: RPI 2 kernel module build
Replies: 4
Views: 1157

Re: RPI 2 kernel module build

I wrote some instructions a couple of years back that might help: see https://paulspiblog.wordpress.com/2013/ ... he-kernel/
Obviously kernel version numbers have changed since.
by hexelpdkk
Fri Oct 23, 2015 8:15 pm
Forum: Python
Topic: Trying to simplify and decipher this script
Replies: 11
Views: 1485

Re: Trying to simplify and decipher this script

Can I remind people that the code being discussed is from a member of this forum - please be constructive rather than insulting. Apologies if what I wrote came across as harsh, I was actually trying to get across that I could see where the OP had difficulties. Additionally, I meant my code to say t...
by hexelpdkk
Fri Oct 23, 2015 2:55 pm
Forum: Beginners
Topic: Starting Python GUI from SSH
Replies: 2
Views: 1719

Re: Starting Python GUI from SSH

This might work (it does over ssh to an old centos virtual machine)... Try setting the DISPLAY variable in the ssh session. Log in as the same user on the pi as over ssh, open a terminal on the pi, and type "echo $DISPLAY". This will give you something like ":0.0" Then on your ssh session, set the D...
by hexelpdkk
Fri Oct 23, 2015 9:31 am
Forum: Python
Topic: Trying to simplify and decipher this script
Replies: 11
Views: 1485

Re: Trying to simplify and decipher this script

This is mostly made difficult due to the very light documentation on the supplier site. A board schematic would make life a lot easier. It is worth taking some time to look at the multiplexer they use http://www.microchip.com/wwwproducts/Devices.aspx?product=MCP23017 which was referenced in the blog...
by hexelpdkk
Tue Oct 20, 2015 7:52 am
Forum: Python
Topic: Has anyone used the tm1640 library?
Replies: 3
Views: 630

Re: Has anyone used the tm1640 library?

Your first line imported the module, giving you access to things inside it only if you use the module name as a prefix. So you could access the class as follows >>> import tm1640 >>> tm1640.TM1640(clock_pin=3,data_pin=2) My line imported the class inside the module, so you can use it without the mod...
by hexelpdkk
Mon Oct 19, 2015 11:48 pm
Forum: Python
Topic: Has anyone used the tm1640 library?
Replies: 3
Views: 630

Re: Has anyone used the tm1640 library?

How about:

Code: Select all

from tm1640 import TM1640
by hexelpdkk
Sun Oct 18, 2015 6:07 pm
Forum: Troubleshooting
Topic: MySQL error 2002
Replies: 4
Views: 850

Re: MySQL error 2002

Have you tried what it says in the error message?
Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
I wouldn't expect this on a clean install. Normally you have to do this as you upgrade across particular versions.
by hexelpdkk
Sun Oct 18, 2015 6:02 pm
Forum: Python
Topic: Adafruit_I2C
Replies: 1
Views: 1252

Re: Adafruit_I2C

You need the Adafruit I2C module, which you can get from https://github.com/adafruit/Adafruit-Ra ... afruit_I2C

Put the file in the same directory as Adafruit_ADXL345.py
by hexelpdkk
Sat Oct 17, 2015 6:06 pm
Forum: Beginners
Topic: pi touch display upside down ?
Replies: 3
Views: 628

Re: pi touch display upside down ?

Although the screen really does look better the other way up.
by hexelpdkk
Sat Oct 17, 2015 6:05 pm
Forum: Beginners
Topic: pi touch display upside down ?
Replies: 3
Views: 628

Re: pi touch display upside down ?

From http://forums.pimoroni.com/t/official-7-raspberry-pi-touch-screen-faq/959 Help, my screen is upside-down! Note: An update has been pushed to Raspbian to flip the screen ( rotate it by 180 degrees ) for a better desktop viewing angle. This makes it upside-down in our stand, so you'll need to cha...

Go to advanced search