Go to advanced search

by tito-t
Sun Oct 30, 2016 12:50 pm
Forum: C/C++
Topic: Xlib for Jessie for GUI desktop (or a better alternative)?
Replies: 26
Views: 4251

Xlib for Jessie for GUI desktop (or a better alternative)?

hello, is Xlib usable for the Jessie standard GUI desktop? In my C/C++ programs I want to poll mouse position and mouse events (buttonX, buttonY, ri/le buttonClick, buttonDown, buttonUp, buttonDoubleClick) and so on. If Xlib is eventually suitable for this: How can I install it correctly including a...
by tito-t
Sun Oct 30, 2016 11:13 am
Forum: OpenVG
Topic: what means: openVG command finish() depricated?
Replies: 7
Views: 12848

Re: what means: openVG command finish() depricated?

Image

BTW,
InitShapes and FinishShapes are much better and far more comprehensible than the former
init
finish
which are really very much ambiguous by their meanings!

8-)
by tito-t
Sun Oct 30, 2016 10:27 am
Forum: OpenVG
Topic: what means: openVG command finish() depricated?
Replies: 7
Views: 12848

Re: what means: openVG command finish() depricated?

ps, I actually expected to read about Dot() in the section Shapes (i.e., presumably at the top of it)...: https://github.com/paeryn/openvg/ Shapes void Line(VGfloat x1, VGfloat y1, VGfloat x2, VGfloat y2) Draw a line between (x1, y1) and (x2, y2). void Rect(VGfloat x, VGfloat y, VGfloat w, VGfloat h...
by tito-t
Sun Oct 30, 2016 10:19 am
Forum: OpenVG
Topic: what means: openVG command finish() depricated?
Replies: 7
Views: 12848

Re: what means: openVG command finish() depricated?

thank you very much, now this compiles without neither (or do you say in English: either ?) moaning: ;) // first OpenVG program // Anthony Starks (ajstarks@gmail.com) // Adapted for paeryn's fork by paeryn #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "VG/openvg.h" #include "VG...
by tito-t
Sun Oct 30, 2016 10:06 am
Forum: OpenVG
Topic: what means: openVG command finish() depricated?
Replies: 7
Views: 12848

Re: what means: openVG command finish() depricated?

thank you very much for your reply! but now I get the error unbenannt.c:31:12: error: ‘Finish’ was not declared in this scope On your github site there indeed is still the lower case finsh in the examples. Also the new Dot() function has not been mentioned at the start page AFAICS. It would be very ...
by tito-t
Sun Oct 30, 2016 9:32 am
Forum: C/C++
Topic: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi
Replies: 22
Views: 8740

Re: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi

great,
but could you please post also your code for that which now works as expected ?
by tito-t
Sun Oct 30, 2016 9:29 am
Forum: OpenVG
Topic: what means: openVG command finish() depricated?
Replies: 7
Views: 12848

what means: openVG command finish() depricated?

hello, using openVG I get the compiler warning // first OpenVG program // Anthony Starks (ajstarks@gmail.com) // Adapted for paeryn's fork by paeryn #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "VG/openvg.h" #include "VG/vgu.h" #include "fontinfo.h" #include "shapes.h" int mai...
by tito-t
Sun Oct 30, 2016 9:05 am
Forum: C/C++
Topic: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi
Replies: 22
Views: 8740

Re: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi

I fully agree. Unfortunately there actually ARE different example source codes posted in the web, especially if using the wiringPi libs, and so different pin numbering schemes have actually BEEN used then . I personally also would prefer the BCM scheme. Having said that, this is admittedly highly co...
by tito-t
Sun Oct 30, 2016 7:14 am
Forum: C/C++
Topic: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi
Replies: 22
Views: 8740

Re: Raspberry Pi3 + LCD keypad shield v1.0 + wiringPi

hi, for the LCD without buttons (probably different wiring scheme) I found this code, and for that purpose wiringPiSetup() is needed for initializing the GPIOs: #include <wiringPi.h> //WiringPi headers #include <lcd.h> //LCD headers from WiringPi #include <stdio.h> //Needed for the printf function b...
by tito-t
Sun Oct 30, 2016 6:58 am
Forum: Beginners
Topic: Power supply for Hub?
Replies: 21
Views: 2914

Re: Power supply for Hub?

Ok thx....where is the config.txt file? I didn't see it on the sd card?
it's probably the same file where you should have added the USB current setting

Code: Select all

#USB current 1.2A
max_usb_current=1
you can access that file by

Code: Select all

sudo leafpad  /boot/config.txt 
by tito-t
Fri Oct 28, 2016 11:36 am
Forum: Beginners
Topic: Power supply for Hub?
Replies: 21
Views: 2914

Re: Power supply for Hub?

Ok so I very carefully put everything together tonight re set-up. All went smooth until I plugged the power supply in. When I did, a red light went on in the back of the board but nothing came up on the screen as it remained black. I checked the micro sd card on my computer to make sure Noobs was i...
by tito-t
Fri Oct 28, 2016 11:35 am
Forum: General discussion
Topic: Copy sd card to another (a bit smaller) card
Replies: 11
Views: 6139

Re: Copy sd card to another (a bit smaller) card

fruitoftheloom wrote:
tito-t wrote:is there any reasonable reason for the OP not to use the built-in SD copy tool?

(see: viewtopic.php?f=63&t=163981&p=1059678#p1059538 )
That has been discussed in this thread already, please keep up :D
is there, or is there not, or are you just trolling?
by tito-t
Fri Oct 28, 2016 9:29 am
Forum: General discussion
Topic: Copy sd card to another (a bit smaller) card
Replies: 11
Views: 6139

Re: Copy sd card to another (a bit smaller) card

is there any reasonable reason for the OP not to use the built-in SD copy tool?

(see: viewtopic.php?f=63&t=163981&p=1059678#p1059538 )
by tito-t
Fri Oct 28, 2016 8:22 am
Forum: Beginners
Topic: Power supply for Hub?
Replies: 21
Views: 2914

Re: Power supply for Hub?

hi, @ Thlorian : what kind of touchscreen exactly do you use? what do the specs say about power requirements (current) ? Just to mention, The power setting for 1.2A (max_usb_current=1 ) is the maximum current allowed through all 4 ports combined (!), IIRC max current at 1 single USB is always limite...
by tito-t
Fri Oct 28, 2016 8:02 am
Forum: Beginners
Topic: Programming for Kids
Replies: 15
Views: 5738

Re: Programming for Kids

hi,
@ 16labs :
maybe I missed that point - how old are the kids you're talking about?
by tito-t
Tue Oct 25, 2016 7:11 am
Forum: Beginners
Topic: Raspberry pi 3 - no serial.
Replies: 6
Views: 3655

Re: Raspberry pi 3 - no serial.

some people fixed that issue for UART by disabling Bluetooth (which is using the former UART address now). IIRC, you can enable/disable either one via the raspi-config tool. BTW, IMO it was a bad decision of the PI3 developers to change the UART address in the device tree from all former B/B+/2B Pis...
by tito-t
Tue Oct 25, 2016 6:56 am
Forum: C/C++
Topic: Control raspberry pi camera & gpio by C language
Replies: 8
Views: 4950

Re: Control raspberry pi camera & gpio by C language

ah, ok, I see! I was curious if you were perhaps from Germany like me, because of some German overviews I have seen (not just tutorials). But its also just for GPIOs and communications, not about a cam. (BTW, I personally would prefer a USB cam instead of the Pi cam because of another reason: IIRC, ...
by tito-t
Sun Oct 23, 2016 2:39 pm
Forum: C/C++
Topic: The MagPi does C :-)
Replies: 124
Views: 26365

Re: The MagPi does C :-)

here is another topic which shows very clearly, what newbies to C and the Pi really wish to learn: again GPIO control and cam control by C commands https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=163416 And again Python tutorials with functioning applications (also perhaps using 3rd party li...
by tito-t
Sat Oct 22, 2016 9:26 am
Forum: C/C++
Topic: Control raspberry pi camera & gpio by C language
Replies: 8
Views: 4950

Re: Control raspberry pi camera & gpio by C language

well, for the first steps one would like to have an easy and convenient access to cam usage, guided by a tutorial (i.e., not just a link to a github repository !!). e.g., like for GPIO control by using wiringPi libs, about which there are also some nice tutorials. Using C for GPIO control as a begin...
by tito-t
Sat Oct 22, 2016 8:12 am
Forum: C/C++
Topic: Control raspberry pi camera & gpio by C language
Replies: 8
Views: 4950

Re: Control raspberry pi camera & gpio by C language

I also haven't found a really useful cam tutorial in C for beginners yet. The manuals and example files I found (also the ones mentioned above) don't teach anything as they don't guide how to use C commands for cam control step by step, providing good understandable explanations about what they are ...
by tito-t
Fri Oct 21, 2016 5:18 pm
Forum: C/C++
Topic: Control raspberry pi camera & gpio by C language
Replies: 8
Views: 4950

Re: Control raspberry pi camera & gpio by C language

hi,
where are you from / which is your language?
by tito-t
Thu Oct 20, 2016 8:24 pm
Forum: C/C++
Topic: question about printf() in a pthread thread
Replies: 2
Views: 2705

Re: question about printf() in a pthread thread

wonderful, thank you very much! fflush(stdout); worked from the start! 8)

BTW, I meanwhile exchanged also the miilis() thing by sleep(1);
by tito-t
Thu Oct 20, 2016 8:11 pm
Forum: C/C++
Topic: question about printf() in a pthread thread
Replies: 2
Views: 2705

question about printf() in a pthread thread

hello, I encountered an unexpected behaviour in a test program, writing a dot '.' each second in a proprietary pthread thread, just for monitoring that the program is still running: volatile int running = 1; void* thread1Go(void *) { unsigned long ms; ms = millis(); while(running) { if ((millis()-ms...
by tito-t
Thu Oct 20, 2016 10:57 am
Forum: C/C++
Topic: The MagPi does C :-)
Replies: 124
Views: 26365

Re: The MagPi does C :-)

if some one is doing some work for a target group he will be well adviced to ask the target group what would be wishful - and listen very carefully to the replies. Otherwise it might probably happen that a lot of work has been done but no one actually reads it and cares about it. I fully agree. +1 ...
by tito-t
Thu Oct 20, 2016 9:32 am
Forum: C/C++
Topic: The MagPi does C :-)
Replies: 124
Views: 26365

Re: The MagPi does C :-)

The website... (we are on the Raspberrypi.org website ;-) ) Repeat them ... as in repeat the website example (wrt the website I am now typing on), that they already have in place, just do it for C. I believe anyone can edit-ish and such like for the site, it just needs approval/some system for C se...

Go to advanced search