Search found 177 matches
- Thu Jun 27, 2019 5:38 pm
- Forum: OpenGLES
- Topic: Thread from Pi4 discussion
- Replies: 87
- Views: 27754
Re: Thread from Pi4 discussion
The gles3 book samples all compile and work unmodified (https://github.com/danginsburg/opengles3-book) with cmake and libgles2-mesa-dev installed - at least all the ones I have run so far worked.
- Thu Jun 27, 2019 5:33 pm
- Forum: OpenGLES
- Topic: GLES3.0 :D at last
- Replies: 24
- Views: 4904
Re: GLES3.0 :D at last
Install libgles2-mesa-dev, this gives both the GLES2 and GLES3 headers.
With cmake installed, it was trivial to build all the samples from https://github.com/danginsburg/opengles3-book. Everything I have tried has worked.
With cmake installed, it was trivial to build all the samples from https://github.com/danginsburg/opengles3-book. Everything I have tried has worked.
- Thu Feb 04, 2016 7:48 am
- Forum: Pidora / Fedora
- Topic: Does anyone know why this won't boot?
- Replies: 6
- Views: 4033
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...
- Wed Feb 03, 2016 8:55 pm
- Forum: Pidora / Fedora
- Topic: Does anyone know why this won't boot?
- Replies: 6
- Views: 4033
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...
- Mon Jan 11, 2016 9:26 pm
- Forum: Raspberry Pi OS
- Topic: Compilation error
- Replies: 2
- Views: 1325
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...
- Wed Nov 18, 2015 11:41 pm
- Forum: Beginners
- Topic: AA few questions about R Pi!
- Replies: 3
- Views: 991
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 the...
- Wed Nov 18, 2015 8:15 pm
- Forum: General discussion
- Topic: How do I run a program from the terminal?
- Replies: 2
- Views: 1208
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...
- Sun Nov 08, 2015 1:32 pm
- Forum: Troubleshooting
- Topic: Code issue, if statement not executing.
- Replies: 2
- Views: 865
Re: Code issue, if statement not executing.
You only ever set the value of the variable spinState at line 24.
Adding 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
Adding
Code: Select all
spinState = GPIO.input(18)
As an aside, I would normally add a sleep in this loop, so it doesn't run at 100% cpu usage
- Tue Nov 03, 2015 7:28 pm
- Forum: Beginners
- Topic: Crontab not allowing text entry
- Replies: 2
- Views: 764
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:
You can change the editor it uses by setting the EDITOR environment variable. For example:
Code: Select all
export EDITOR=nano
- Tue Nov 03, 2015 5:15 pm
- Forum: Java
- Topic: JavaNullPointer Exception while creating an object
- Replies: 1
- Views: 899
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 lik...
- Tue Nov 03, 2015 8:29 am
- Forum: Pidora / Fedora
- Topic: Keyboard and mouse not working on Fedora 22 for RPi2B
- Replies: 2
- Views: 2596
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 c...
- Fri Oct 30, 2015 2:29 pm
- Forum: Beginners
- Topic: Strange CLI problem
- Replies: 1
- Views: 623
Re: Strange CLI problem
That should be /etc, not /ect.If I type nano /ect/apt/sources.list then it tries to create a new folder.
- Wed Oct 28, 2015 9:05 pm
- Forum: General discussion
- Topic: Which kit to buy?
- Replies: 1
- Views: 593
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.
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.
- Tue Oct 27, 2015 8:19 am
- Forum: Troubleshooting
- Topic: Hobbytronics 12 channel servo controller poblems
- Replies: 4
- Views: 1108
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 sho...
- Mon Oct 26, 2015 8:24 am
- Forum: Graphics programming
- Topic: Custom OS and simple graphics needs
- Replies: 13
- Views: 3547
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)
- Sun Oct 25, 2015 8:16 pm
- Forum: Graphics programming
- Topic: Custom OS and simple graphics needs
- Replies: 13
- Views: 3547
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...
- Sun Oct 25, 2015 11:26 am
- Forum: Raspberry Pi OS
- Topic: RPI 2 kernel module build
- Replies: 5
- Views: 1982
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
- Sun Oct 25, 2015 7:38 am
- Forum: Raspberry Pi OS
- Topic: RPI 2 kernel module build
- Replies: 5
- Views: 1982
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.
Obviously kernel version numbers have changed since.
- Fri Oct 23, 2015 8:15 pm
- Forum: Python
- Topic: Trying to simplify and decipher this script
- Replies: 11
- Views: 2817
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...
- Fri Oct 23, 2015 2:55 pm
- Forum: Beginners
- Topic: Starting Python GUI from SSH
- Replies: 2
- Views: 5085
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 ss...
- Fri Oct 23, 2015 9:31 am
- Forum: Python
- Topic: Trying to simplify and decipher this script
- Replies: 11
- Views: 2817
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...
- Tue Oct 20, 2015 7:52 am
- Forum: Python
- Topic: Has anyone used the tm1640 library?
- Replies: 3
- Views: 1256
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...
- Mon Oct 19, 2015 11:48 pm
- Forum: Python
- Topic: Has anyone used the tm1640 library?
- Replies: 3
- Views: 1256
Re: Has anyone used the tm1640 library?
How about:
Code: Select all
from tm1640 import TM1640
- Sun Oct 18, 2015 6:07 pm
- Forum: Troubleshooting
- Topic: MySQL error 2002
- Replies: 4
- Views: 1578
Re: MySQL error 2002
Have you tried what it says in the error message?
I wouldn't expect this on a clean install. Normally you have to do this as you upgrade across particular versions.Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
- Sun Oct 18, 2015 6:02 pm
- Forum: Python
- Topic: Adafruit_I2C
- Replies: 4
- Views: 2768
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
Put the file in the same directory as Adafruit_ADXL345.py