Go to advanced search

by Paeryn
Thu Jul 19, 2018 10:31 pm
Forum: General discussion
Topic: A new level of seasickness
Replies: 17
Views: 405

Re: A new level of seasickness

I've only looked at the main page on my phone and only because of this thread (I'm not really the target audience for the main page), but to me it definitely has the look of "how can we show as little information as possible using the most amount of space". I've got a decent sized screen on my phone...
by Paeryn
Thu Jul 19, 2018 3:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues accessing GPIO register with single bytes
Replies: 5
Views: 147

Re: Issues accessing GPIO register with single bytes

Finally I solved the problem: I simply have to compile the code with this option: gcc -o <name>.c -fstrict-volatile-bitfields In this way, at assembly level, even if I set only one bit the assembly code will read the entire 32 bit value from the source memory location, will OR the bit with this val...
by Paeryn
Wed Jul 18, 2018 8:24 pm
Forum: Python
Topic: running out of memory
Replies: 3
Views: 117

Re: running out of memory

paddyg wrote:
Wed Jul 18, 2018 7:36 pm
That is odd. I would suspect Idle trying to keep a record of everything on its 'terminal'.
You are correct paddyg, IDLE keeps the entire output written to the shell window and the only way to clear it is to close the window.
by Paeryn
Wed Jul 18, 2018 1:25 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 57
Views: 1058

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Ok, memory mapping and address translation complicates things, but that aside: what makes the RPi I/O any worse than any other memory mapped hardware accessed with a bit of bitblitting? A library call to do the address mapping and maybe some initialisation would paper over the variability between R...
by Paeryn
Tue Jul 17, 2018 5:34 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 57
Views: 1058

Re: What Does Hiding the Details of I/O in Library Calls Teach?

I'm completely happy with all those comments... if the programming were confined to a self-contained unit. As soon as it's not, you end up with the situation I was faced with: somebody who thinks they're a whizz kid programmer but has no knowledge of the fundamentals. Yes, no problem with libraries...
by Paeryn
Tue Jul 17, 2018 4:50 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 57
Views: 1058

Re: What Does Hiding the Details of I/O in Library Calls Teach?

What bothers me is that these student programmers really don't get to know anything about what they are doing, because they simply call up predefined libraries to do the "heavy lifting" of waggling GPIO pins, with no visibility of the code that is operating in the background. ... That's what I'm wo...
by Paeryn
Tue Jul 17, 2018 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues accessing GPIO register with single bytes
Replies: 5
Views: 147

Re: Issues accessing GPIO register with single bytes

The hardware registers are 32 bits wide, you have to read from and write to them as such. You can't read or write part of of hardware register and expect to get correct results.
by Paeryn
Mon Jul 16, 2018 12:33 am
Forum: C/C++
Topic: Trying to call an external function-linker can't find it.
Replies: 5
Views: 162

Re: Trying to call an external function-linker can't find it.

Did the corrected ButtonSetup.cpp file get re-compiled (I take it you did save the file after editing it)? The build log only shows it trying to link which could indicate that it still using the old object file. You can verify what name is used in the object file with :- [email protected]:~/Programming/tests ...
by Paeryn
Sun Jul 15, 2018 10:54 pm
Forum: C/C++
Topic: Trying to call an external function-linker can't find it.
Replies: 5
Views: 162

Re: Trying to call an external function-linker can't find it.

srjacob wrote:
Sun Jul 15, 2018 9:46 pm

Code: Select all

extern void ButtonSetup(void);

int main(int argc, char *argv[])
{
    ButtonSetup();
}
Here is the function:

Code: Select all

void buttonsetup()
buttonsetup is a totally different name to ButtonSetup
by Paeryn
Sun Jul 15, 2018 10:45 pm
Forum: Automation, sensing and robotics
Topic: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?
Replies: 21
Views: 392

Re: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?

How would I go about reading the values from the UK-type dimmer switch module like this? https://www.amazon.co.uk/Varilight-2-Way-Switch-Module-Dimmer/dp/B01DY2XE5I I'm hoping to use as a rotary encoder for the RPI (and also on/off switch). I've tried some other rotary encoders and potentiometers, ...
by Paeryn
Sun Jul 15, 2018 10:06 pm
Forum: Python
Topic: GPIO Inputs are both High and Low at once
Replies: 3
Views: 122

Re: GPIO Inputs are both High and Low at once

I am unsure if this is a hardware issue or one with my coding, so this may be in the wrong place but here we go... I have been coding my ZeroW to take inputs from a scan matrix hacked out of an old electronic keyboard and trigger MIDI signals to be sent to my Win7 PC. However, when I press a key, m...
by Paeryn
Sun Jul 15, 2018 4:49 pm
Forum: General discussion
Topic: What is a good site to get working roms from?
Replies: 3
Views: 183

Re: What is a good site to get working rooms from?

Unless you are after genuine, legally free games (i.e. not commercial games) then you are on your own. Distributing copies of commercial games is illegal and if anybody is daft enough to give you a link to somewhere then the RPF are likely to delete such information posthaste.
by Paeryn
Fri Jul 13, 2018 6:35 pm
Forum: OpenVG
Topic: Stretch: how to install latest openVG version with Dot() function?
Replies: 30
Views: 689

Re: Stretch: how to install latest openVG version with Dot() function?

no one here to explain how the correct and clean way for a downgrade is from screenshot to windowsave? Yes, but I have a life outside of helping on here. Whilst I do (generally) check these fora several times a day I may end up spending what time I have trying to help other people. You could have l...
by Paeryn
Fri Jul 13, 2018 4:57 pm
Forum: Italiano
Topic: Help Cpu 100% ( Risolto )
Replies: 2
Views: 109

Re: Help Cpu 100%

Scusa se questo legge male, io sono Google che traduce la mia risposta inglese in italiano. Sorry if this reads badly, I am Google translating my English answer into Italian. Quando si pubblica un codice, è necessario inserirlo all'interno dei tag del codice in modo tale da preservare il rientro che...
by Paeryn
Thu Jul 12, 2018 11:57 pm
Forum: Beginners
Topic: how to run .exe file on raspberry pi 3
Replies: 4
Views: 222

Re: how to run .exe file on raspberry pi 3

By the looks of it the RPi package is for a plugin that is meant to be installed on Windows where the OpenSpace3D is installed to allow OpenSpace3D to export an app (or whatever) suitable for running on an RPi. [email protected]:/media/pi/win/Downloads $ file scol_raspberrypi.exe scol_raspberrypi.exe: PE32 ex...
by Paeryn
Thu Jul 12, 2018 11:40 pm
Forum: Beginners
Topic: Bulk rename files
Replies: 3
Views: 108

Re: Bulk rename files

Your regex said to substitute everything from the first hyphen to the end with just the hyphen. $1 is the first sub-expression which you gave as ([-]) - that is just the hyphen. The rest of the filename you threw away - .*$ matches everything else that comes after, but you didn't use any of that in ...
by Paeryn
Thu Jul 12, 2018 11:16 pm
Forum: Beginners
Topic: Bulk rename files
Replies: 3
Views: 108

Re: Bulk rename files

Hi there. How would I rename a directory full of files? Files are structured like: 20180712-131350214204-192.168.1.32.jpg I'm hoping to rename them all like 192.168.1.32-20180712-131350214204.jpg Basically swapping year-time-ip to ip-year-time. I was playing around with: rename -n 's/([-]).*$/$1.jp...
by Paeryn
Thu Jul 12, 2018 10:20 pm
Forum: OpenGLES
Topic: OpenGL on Pi - confused!
Replies: 3
Views: 169

Re: OpenGL on Pi - confused!

If you wrote the code for OpenGL then you use the OpenGL headers. Whilst a lot of OpenGL code will be the the same under OpenGL|ES there are a few differences in that OpenGL|ES is a reduced API targeted at embedded / mobile devices. The RPi is a native OpenGL|ES 2 device so some features of OpenGL m...
by Paeryn
Thu Jul 12, 2018 1:55 am
Forum: Raspbian
Topic: pause between cron.daily jobs?
Replies: 1
Views: 87

Re: pause between cron.daily jobs?

No, run-parts runs each file consecutively in (lexical) order. I would suspect that is it a particular job that is holding things up rather than the whole run-parts batch. You might get away with creating a new job (or jobs) that is named so it appears in-between ones already there that just sleeps ...
by Paeryn
Wed Jul 11, 2018 11:05 pm
Forum: C/C++
Topic: Having problems with LIibPcap
Replies: 10
Views: 216

Re: Having problems with LIibPcap

I don't know, it works on my RPi3. When I compile your DRHE program with the wiringPi and rgb-matrix stuff edited out (no hardware to connect to on mine) and the packet printing bit un-commented, I get this :- [email protected]:~/Programming/pcap $ sudo ./drhe DEV: wlan0 Grabbed packet of length 169 Received ...
by Paeryn
Wed Jul 11, 2018 10:00 pm
Forum: C/C++
Topic: Having problems with LIibPcap
Replies: 10
Views: 216

Re: Having problems with LIibPcap

I've had a skim through libpcap, there are several places where that error could be being flagged from but they all look to be from when libpcap is trying to create a socket and it is being told that you either don't have permission or access failed (due to an unknown failure), so rather than not ha...
by Paeryn
Wed Jul 11, 2018 9:02 pm
Forum: OpenVG
Topic: Stretch: how to install latest openVG version with Dot() function?
Replies: 30
Views: 689

Re: Stretch: how to install latest openVG version with Dot() function?

hi, if IIUC, I should drop the current windowsave which I have installed and instead use the branch rendertarget or screenshot? Which is the newer one (or with least issues)? Actually I always used hard dots, never the smooth ones, because of drawing speed. After that, just a new git checkout <bran...
by Paeryn
Wed Jul 11, 2018 8:11 pm
Forum: Raspbian
Topic: Crontab configuration
Replies: 11
Views: 269

Re: Crontab configuration

apica, does your file /etc/crontab have a blank line (or a line with just a #) at the bottom (like RaTTuS' does a few posts up)? If the last line is the entry you added and it doesn't end with a newline character then cron will ignore that line. Indeed, the file didn't have a newline at the end. It...
by Paeryn
Wed Jul 11, 2018 7:32 pm
Forum: OpenVG
Topic: Stretch: how to install latest openVG version with Dot() function?
Replies: 30
Views: 689

Re: Stretch: how to install latest openVG version with Dot() function?

no functioning Dot function in any branch? Dot() should be working so long as you want rough dots (they are drawn as squares), I don't know what happened with smooth dots as they definitely worked at one time, I'll try and sort it out sometime but I know the last time I went back to try sorting it ...
by Paeryn
Wed Jul 11, 2018 5:56 pm
Forum: Raspbian
Topic: Crontab configuration
Replies: 11
Views: 269

Re: Crontab configuration

Do both systems have a root user enabled? There is no root enabled by default. Not sure what you are getting at with this, the user "root" cannot be disabled, it always exists and it always has processes running. By default on Raspbian the user root doesn't have a password and you can't log in dire...

Go to advanced search