Go to advanced search

by tito-t
Fri Nov 04, 2016 4:48 pm
Forum: The MagPi
Topic: MagPi 47 - An Introduction to C - Page 62
Replies: 39
Views: 20564

Re: MagPi 47 - An Introduction to C

To my personal observations many libs (e.g., openVG) use make, and IIRC I also sometimes have seen installation guides which have been using makefile. I can't remember if I have ever seen cmake, but I'm quite sure that make and makefile have been used more often than cmake AFAIK. Anyway, IMO it's no...
by tito-t
Fri Nov 04, 2016 4:42 pm
Forum: Weather station
Topic: Weather Station C/C++ drivers / libs ?
Replies: 4
Views: 1122

Weather Station C/C++ drivers / libs ?

hi,
are there also HAT drivers and libs and example programs available to program and to use the Weather Station in C/C++ ?
by tito-t
Fri Nov 04, 2016 7:58 am
Forum: Teaching and learning resources
Topic: HMC6352 I2C python interface
Replies: 5
Views: 3822

Re: HMC6352 I2C python interface

there are also the very convenient wiringPi libs, feat. wiringPiI2C. https://projects.drogon.net/raspberry-pi/wiringpi/i2c-library/ Arduino Wire is C++, wiringPi is C, but both are similar and quite intuitive by usage though. Gordon Henderson also provides a tutorial for using his libs. Nevertheless...
by tito-t
Thu Nov 03, 2016 10:33 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

first of all the things what people want having a Pi and being new to C, is simply to write programs which do something awesome. No one is supposed to be a nerd who's intention is to become a native C speaker . The application is which comes first, Sh*t on C only to the senseless self-satisfaction. ...
by tito-t
Thu Nov 03, 2016 10:21 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

[MOD EDIT - PROFANITY REMOVED], for Arduino there are tutorials I have learnt from to control the Arduino digital and analog pins. Also libs for hardare access (shields, sensors) are available, But nothing for C to control Pi hardware and/or accessories. But actually I think you do not want to under...
by tito-t
Thu Nov 03, 2016 10:06 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

hell no, what a nonsense. Actually they are the best people to do it. They learn for themselves and then write it up without making the assumptions a guru would make. porting that to education in general, that would mean: no one would need teachers, no primary school, no highschool, no professors, n...
by tito-t
Thu Nov 03, 2016 9:30 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

don't chatter around, you should read my former posts.
I am a beginner, I would NEED tutorials, just like others, and just about those:
C for GPIOs, UART, i2c and SPI (partially availabe by wiringPi)
C for HATs
C for graphics
C for Cams
C for audio
C for game programming
by tito-t
Thu Nov 03, 2016 9:21 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

joan has a few tutorials, well not tutorials but examples, on the pigpio website for GPIO and other things. If somebody who is good at writing tutorials expanded on the examples it might bridge that middle ground gap. yes I know, and you're right, beginners don't need repositories, they need tutori...
by tito-t
Thu Nov 03, 2016 8:43 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

haha, that's an extremely 1-dimensional point of view with a minor radius to the horizon :mrgreen:

(or did you misunderstand, that is not meant to be a schedule, 1 topic based on the former one?
It's simply a list of tutorials needed, by random order.)
by tito-t
Thu Nov 03, 2016 8:13 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

that MagPi book is good, but it's just the start for the bloody C noobs. Having learnt that, you're still unable to program a simple LED blink program. One urgently would need follow-up tutorials for all of this: C for GPIOs, UART, i2c and SPI (partially availabe by wiringPi) C for HATs C for graphi...
by tito-t
Thu Nov 03, 2016 8:03 pm
Forum: OpenVG
Topic: openVG: how to quickly clear an area to Background color?
Replies: 14
Views: 16428

Re: openVG: how to quickly clear an area to Background colo

ok, I assumed it would be C++ ;)

But I don't want to argue, it was just an idea 8-)
by tito-t
Thu Nov 03, 2016 7:49 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

C could be fine for the Pi if there were tutorials for beginners.
The MagPi has started one.
viewtopic.php?f=106&t=153242
Hopefully others will follow.
viewtopic.php?f=33&t=162669
by tito-t
Thu Nov 03, 2016 7:21 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

your nonsense is:
C isn't a language where you are given a ton of libraries
there are tons of libraries,
C is built upon tons of librairies,
but not to Pi hardware providing tutorials to beginners, not to HATs, not to cams.
by tito-t
Thu Nov 03, 2016 7:17 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

what a nonsense. I doubt that you actually are programming in C. C is the language which is BUILT UPON MULTIPLE LIBRARIES as C just has about 20 defined basic keywords/commands! to start with #include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <...
by tito-t
Thu Nov 03, 2016 7:11 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

but the C libs and the tutorials to them are missing, you wise guy. No C access without libraries and tutorials to it! for Arduino it's there, but for the Pi are missing: C for GPIOs,UART, i2c and SPI (partially by wiringPi) C for HATs C for graphics C for the Pi Cam C for audio C for game programmi...
by tito-t
Thu Nov 03, 2016 7:06 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

yes, because of the huge number of Arduino API Libs.
But it's all legal C/C++ code
providing lot of good C/C++ tutorials,
using legal C/C## libs,
and above all:

it's easy to use, and above all, it works out of the box!
by tito-t
Thu Nov 03, 2016 6:49 pm
Forum: OpenVG
Topic: openVG: how to quickly clear an area to Background color?
Replies: 14
Views: 16428

Re: openVG: how to quickly clear an area to Background colo

or make an overloaded function
Background (r,g,b, ...)

:mrgreen:
by tito-t
Thu Nov 03, 2016 6:33 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

Arduino is a much simpler platform. Python will be a much better language to use on the Pi unless you are already proficient in C (which is unlikely if all you have programmed is an Arduino), First, Arduino is != Arduino. There are small 16MHz / 2KB 8bit AVRs (Uno, Nano), then the 8KB Mega, a "bigg...
by tito-t
Thu Nov 03, 2016 2:45 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

Can Arduino only work with C(++)? I actually bought a cheap Arduino starter kit :? ¨ The Arduino IDE is always compiling by a gnu C++ compiler, and most of the libraries are C++ coded (e.g., Serial, Wire, TFTs, and most others too). Nevertheless you may write also standard C code which will be inte...
by tito-t
Thu Nov 03, 2016 2:09 pm
Forum: Beginners
Topic: Learn Python or C?
Replies: 51
Views: 6353

Re: Learn Python or C?

Hello! New to Raspberry and the forum! I wish to make a car with motors and, maybe get camera and lights attached to it. Hope to learn how things work along the way. Some of the tutorials use Python some use C(++) I think. What's the pro and cons, and which one should I focus on in this type of pro...
by tito-t
Wed Nov 02, 2016 6:46 pm
Forum: OpenVG
Topic: openVG: how to quickly clear an area to Background color?
Replies: 14
Views: 16428

Re: openVG: how to quickly clear an area to Background colo

just a minor humble suggestion, stumbling over Background() and BackgroundRGB():
as Background(r,g,b) has 3 parameters , i.e. r,g,b
and
BackgroundRGB(r,g,b,a) has 4 parameters i.e. r,g,b,a :o

wouldn't it be a good idea to rename BackgroundRGB() to BackgroundRGBA() ? :)
by tito-t
Wed Nov 02, 2016 12:07 pm
Forum: OpenVG
Topic: openVG: how to quickly clear an area to Background color?
Replies: 14
Views: 16428

Re: openVG: how to quickly clear an area to Background colo

sorry, my English is not so good to understand the details unequivocally. I usually start with sth like this (taken from your github example, modified) #define GRAY25 64, 64, 64 #define YELLOW 255, 255, 0 #define SKYBLUE 135, 206, 235 //... initWindowSize(20, 20, 600, 360); init(&width, &height); //...
by tito-t
Wed Nov 02, 2016 10:59 am
Forum: OpenVG
Topic: openVG: how to quickly clear an area to Background color?
Replies: 14
Views: 16428

Re: openVG: how to quickly clear an area to Background colo

thank you!
how to set the clear_color? Is it automatically the last background color which has been set?
or is there also a additional vgClear(x, y, w, h, clear_color );

Go to advanced search