Go to advanced search

by davenull
Thu Nov 05, 2015 7:59 am
Forum: C/C++
Topic: openvg not pthread compatible?
Replies: 4
Views: 811

Re: openvg not pthread compatible?

perfect, thank you! :)

BTW: will those bind/unbind procedures cost a lot of cpu time or this perhaps as quick as just writing a few words to the screen?
by davenull
Thu Nov 05, 2015 7:50 am
Forum: Deutsch
Topic: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Maus ?
Replies: 32
Views: 4921

Re: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Ma

ok, dann besteht ja doch noch Hoffnung;)
also neuer Versuch, danke!
by davenull
Wed Nov 04, 2015 8:55 pm
Forum: Deutsch
Topic: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Maus ?
Replies: 32
Views: 4921

Re: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Ma

ich bin nur Anfänger und gelegentlicher Hobby-Bastler mit sehr beschränktem Budget.
Daher suche ich billige, selber erprobte Sets.
Ich bin mit dem Raspi oft unterwegs (Raspi im Aktenkoffer) und will nicht immer erst stundenlang neu verkabeln oder mich mit Kabelsalat herumärgern müssen.
by davenull
Wed Nov 04, 2015 8:30 pm
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

thank you for your input! indeed, I'm very new to Linux and pthread and actually I really needed a good tutorial (about which I already has asked for, thanks for that link, too!) https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=125086 Good to know that all which a task calls is at it's own st...
by davenull
Wed Nov 04, 2015 5:55 pm
Forum: C/C++
Topic: openvg not pthread compatible?
Replies: 4
Views: 811

openvg not pthread compatible?

Just tried to run my UART communication program with openvg functions in a pthread task, now I get the error Tx_master008: libshapes.c:571: End: Assertion `vgGetError() == VG_NO_ERROR' failed. as long the function runs in main in an endless loop it works though - what do I have to do? I need the gra...
by davenull
Wed Nov 04, 2015 5:18 pm
Forum: Raspbian
Topic: Menu task bar adjust?
Replies: 4
Views: 695

Menu task bar adjust?

heya,
I want to adjust the menu task bar

the following should be erased:
epiphany, mathematica, wolfram

I want to add: Iceweasel, geany.

How to do it?
by davenull
Wed Nov 04, 2015 4:47 pm
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

ok, I made a copy of openvg called openvg_sav

then

Code: Select all

pi@raspberrypi ~ $ wget https://github.com/paeryn/openvg/archive/master.zip
ok

now: master.zip is in the pi folder.

how to get it to the correct folder openvg ?
what next?

Linux is really the 7th hell to me... :evil:
by davenull
Wed Nov 04, 2015 3:53 pm
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

I don't even have the new openvg on my SD card - how do I get it there? (sorry, for Windows it would be easy, just
download zip,
unzip,
copy unzipped folder over existing openvg folder

but by linux ???
by davenull
Wed Nov 04, 2015 2:03 pm
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

isn't it useful or even necessary to acquire mutexes for calling
int isPrime(long int number)

or is this automatically thread-safe?
by davenull
Wed Nov 04, 2015 1:21 pm
Forum: C/C++
Topic: pthread questions
Replies: 30
Views: 7065

Re: pthread questions

2) is it useful to link by -D_REENTRANT additionally for Raspberry Pi? 3) how is it possible to immediately stop or kill 1 task by main() or by another task ? (e.g., a) immediately in case of emergency stop (no cleaning required necessarily) or b) by a higher-priority task (in this case a cleaning w...
by davenull
Wed Nov 04, 2015 12:50 pm
Forum: Deutsch
Topic: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Maus ?
Replies: 32
Views: 4921

Re: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Ma

genau deshalb habe ich ja eingangs gefragt: werden die meisten gängigen kabellosen QWERTZ Tastatur-Maus-Kombinationen alle vom Raspbian Linux (Jessie) erkannt? welche preiswerte Raspi-kompatible kabellose Tastatur + Maus Kombination ist zu empfehlen? in Verbindung gleich mit der ersten Antwort Die f...
by davenull
Wed Nov 04, 2015 12:47 pm
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

so I can delete the shapes_plus folder, but now how to install your libs instead?
I don't understand what to do unfortunately.
by davenull
Wed Nov 04, 2015 11:42 am
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

thank you!

now i tried -O1, it's no effect (51513ms) on this source as I had expected then for int algebra.

again, learned something new, thanks again! 8-)
by davenull
Wed Nov 04, 2015 11:19 am
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

thank you!

now it compiles and build is fine too!

runtime for my B+ at 800MHz : 51489 ms 8-)

---------------------------------------------------

BTW, what is the -O3 parameter for?
by davenull
Wed Nov 04, 2015 9:49 am
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

yes, I always need to have C++ because I also need C++ libs like
#include <iostream>
#include <limits>
using namespace std;

what will I have to change then (and where) ?
by davenull
Wed Nov 04, 2015 9:44 am
Forum: C/C++
Topic: pthread questions
Replies: 30
Views: 7065

pthread questions

heya, some question about pthread for RaspI: 1) is a short tutorial available how to setup, how to use it and make a couple of tasks run simultaneously - and at the end clean all and everything? ps, I'm using g++ for C++ libs additionally -------------------------------------- edit: found something!
by davenull
Wed Nov 04, 2015 9:40 am
Forum: C/C++
Topic: Having Fun with threads! Very Interesting
Replies: 19
Views: 7078

Re: Having Fun with threads! Very Interesting

I tried to compile your example for my B+, but I get errors (I admit I have different compiler and build settings for Geany, but I added your options though:): g++ -Wall -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -O3 -c "prime2.c" -lshapes...
by davenull
Wed Nov 04, 2015 9:13 am
Forum: Deutsch
Topic: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Maus ?
Replies: 32
Views: 4921

Re: preiswerte Raspi-kompatible kabellose QWERTZ Tastatur+Ma

genau wie erwartet:
jetzt habe ich mir ein Set von Hama bestellt, das läuft ohne weitere Treiberinstallation sogar automatisch an jedem PC (XP, Win7), aber absolute Funkstille beim raspi.
- wo und wie krieg ich jetzt die Raspi Treiber installiert?
by davenull
Wed Nov 04, 2015 8:47 am
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

hey, the last install procedure for your extended libs were: wget https://www.dropbox.com/s/h37po1q305eab17/shapes_plus.tar.gz tar xvf shapes_plus.tar.gz sudo rm shapes_plus.tar.gz cd shape_demo make sudo make install for the compiler: additionally -lshape_plus for the program: additionally #include...
by davenull
Wed Nov 04, 2015 7:49 am
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

that sounds amazing! Thank you very much for your efforts! Now having also a smaller screen besides the other ones on the desktop is really an outstanding feature! I just had my first look at it, it looks almost as if it's the complete entire openvg system like already ajstarks provided before? Now ...
by davenull
Tue Nov 03, 2015 7:19 pm
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

indeed, I didn't understand that int [0, 255] for RGB and then float [0.0, 1.0] for alpha was actually a defamiliarized RGBA coding. That's why I paraphrased the float parameter by an "x" which is often used in analysis for Real numbers, opposite to Natural numbers. So by Google search I found the k...
by davenull
Tue Nov 03, 2015 6:28 pm
Forum: Automation, sensing and robotics
Topic: Seeking Developer for a paid for project
Replies: 6
Views: 919

Re: Seeking Developer for a paid for project

regarding network access was an important hint, but this is not my skill - just basic Arduino Due, but this would have been almost as powerful by calculation speed as the Raspi though. Anyway, not my workspace then. If one had the name of this code, one might google common color 4D codes by Google p...
by davenull
Tue Nov 03, 2015 6:22 pm
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

thank you,
I never expected
#define WHITE 255, 255, 255, 1
to work lising 5 parameters without a brace around the last 4 ones :o

are those r,g,b,x coded colors a common color code? Is there a name for this color code like it's common for RGB (or RGBA or CMYK - or is this actually one of these)?
by davenull
Tue Nov 03, 2015 10:12 am
Forum: C/C++
Topic: HDMI graphic lib: openvg syntax questions
Replies: 91
Views: 9899

Re: HDMI graphic lib: openvg syntax questions

ps, edit:
of course I tried it already passing the macro to the function call but that does not work

no one around here who did this before, by passing color names to the Stroke or Fill functions and so on?
by davenull
Tue Nov 03, 2015 9:24 am
Forum: C/C++
Topic: How set certain time for digitalwrite
Replies: 11
Views: 1438

Re: How set certain time for digitalwrite

hey, I just was running into this same issue, now I found this code which is working fine, and even is quite quick: #include <termios.h> #include <unistd.h> #include <fcntl.h> int kbhit(void) { struct termios oldt, newt; int ch; int oldf; tcgetattr(STDIN_FILENO, &oldt); newt = oldt; newt.c_lflag &= ...

Go to advanced search