Go to advanced search

by 1dot0
Sun Jul 08, 2018 4:47 pm
Forum: C/C++
Topic: Blinking led on raspberry pi in c
Replies: 7
Views: 1698

Re: Blinking led on raspberry pi in c

hi, Does wiringPi work correctly? What happens if you type in the console gpio -v gpio readall ? Did you check if you really had connected to GPIO 0 and not to a different neighbor pin? Is the LED connected correctly? does the LED turn on if you disconnect the wire to GPIO 0 and then connect to +3.3V?
by 1dot0
Wed Jul 04, 2018 7:33 pm
Forum: C/C++
Topic: Looking for good C/C++ resources for PI
Replies: 18
Views: 4104

Re: Looking for good C/C++ resources for PI

emacs...? naaahh...: Geany.
As already once stated, don't just Think! for large scale software, time to Think Different! for noobs and makers :)
by 1dot0
Wed Jul 04, 2018 5:58 pm
Forum: C/C++
Topic: Looking for good C/C++ resources for PI
Replies: 18
Views: 4104

Re: Looking for good C/C++ resources for PI

@ejolson: apart from history, on current OS actually no integrated IDE is really needed anywhere, anymore - it's simply more a matter of user-friendlyness and convenience. e.g., the Arduino IDE is running on Windows, x86 Linux, ARM Linux, and MacOS X (which is also Unix/Linux-based), and either plat...
by 1dot0
Mon Jun 25, 2018 11:36 am
Forum: C/C++
Topic: anyone using code::blocks?
Replies: 11
Views: 1285

Re: anyone using code::blocks?

jahboater wrote:
Mon Jun 25, 2018 11:32 am
If thats all it does, then you need both.
Since I once read about -pthread, I am using just that, no additional -lpthread required. That matches with the qoute above:
-pthread breaks down to:
-D_REENTRANT -lpthread

so it saves you havng to define _REENTRANT when compiling your code.
by 1dot0
Mon Jun 25, 2018 11:30 am
Forum: C/C++
Topic: anyone using code::blocks?
Replies: 11
Views: 1285

Re: anyone using code::blocks?

Interesting. Where did you read that? I'd never even heard of -pthread before. -lpthread has never given me any problems. I'm not quite sure, IIRC -pthread is about including pthread macros as well. Perhaps it's like written here: https://stackoverflow.com/questions/23250863/difference-between-pthr...
by 1dot0
Mon Jun 25, 2018 8:19 am
Forum: C/C++
Topic: anyone using code::blocks?
Replies: 11
Views: 1285

Re: anyone using code::blocks?

Looks like you're missing -lpthread in your compilation line. A quick look at the sample code shows #include <pthread.h> in the Thread.h header file so it As your using Code::Blocks, you should be able to add -lpthead into the compiler options dialog. Cheers. just out of curiousity: I once read tha...
by 1dot0
Tue Jun 12, 2018 1:32 pm
Forum: C/C++
Topic: Looking for good C/C++ resources for PI
Replies: 18
Views: 4104

Re: Looking for good C/C++ resources for PI

IMO nano and vi are really unclear, rough, and annoying.
As an editor I prefer leafpad (already installed in Raspbian), and as an editor feat. a simple but handy IDE: Geany (also already installed in Raspbian), even if a integrated debugger is missing (apart from gdb).
by 1dot0
Sun Jun 10, 2018 2:27 pm
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 7002

Re: Raspberry with C++ program

I am not too good but I am not too bad in c++ programming. I did practice on GCC compiler for basic learning . I have programmed node mcu esp8266 using arduino ide in c++ language. That's why I was looking for the example As a user of Arduino (Mega, Due, esp8266) and the Raspi I daresay that there ...
by 1dot0
Tue May 01, 2018 7:39 pm
Forum: Beginners
Topic: free disk space on noob jessie partition?
Replies: 2
Views: 258

Re: free disk space on noob jessie partition?

excellent, thank you 8-)
by 1dot0
Tue May 01, 2018 3:43 pm
Forum: Beginners
Topic: free disk space on noob jessie partition?
Replies: 2
Views: 258

free disk space on noob jessie partition?

hello,
how will I know the free disk space on my noobs jessie partition?
by 1dot0
Sun Apr 29, 2018 10:02 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

But is it honestly not possible by Linux to create a shortcut link to a directory on a USB disk on the desktop? Looks like you've found a way, but that folder link may do unexpected things if you don't have the drive inserted or it's mounted on a different place. You might get the fun situation of ...
by 1dot0
Fri Apr 27, 2018 9:41 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

to me there is no reason why I should "edit" the shortcut link (??)
I just double click on the desktop icon and I get where I want, and it works like a charme.
by 1dot0
Fri Apr 27, 2018 8:11 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

thank you, but I actually thought there must be a simpler way.... :roll: and heureka! I found it out just in the moment! file manager select the target file /dir edit new shortcut link.... left window: location choose: desktop ok => there the shortcut link appears statically on an arbitrary place on...
by 1dot0
Thu Apr 26, 2018 9:39 pm
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

tbh, it's not about just the shortcut (the LINK!) to the mounted drive, it's actually about a certain directory on the mounted drive (called "programs") . I admit that I simplified my question not to make it over-complicated in the thread-opening post. @scruss, @KLL : yes, thank you, I found that op...
by 1dot0
Thu Apr 26, 2018 12:45 pm
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

no, I have no ssh. What I am searching for is a simple way, like in Windows: select target folder (e.g.: /media/pi/USBDRV (or any different arbitrary one)) right mouse click on this folder context menu: create shortcut (on desktop) But there is not such a context menu to create a short cut - why not...
by 1dot0
Thu Apr 26, 2018 10:46 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

what I got then is an icon called "settings" with tiny submenus and lot of tiny entries, not possible to open just the single drv USBDRV immediately.
I'd like to have a shortcut icon to just this single folder "USBDRV".
by 1dot0
Thu Apr 26, 2018 10:37 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Re: Jessie: how to create a desktop shortcut to a USB storage drv?

@Roken:
I have the Jessie file manager,
and 1st of all I need a shortcut on the Jessie desktop - but how ???

@KLL:
that's even too cumbersome on small TFTs and touchscreens, so I'd like to have a shortcut icon
by 1dot0
Thu Apr 26, 2018 9:41 am
Forum: Beginners
Topic: Jessie: how to create a desktop shortcut to a USB storage drv?
Replies: 17
Views: 1854

Jessie: how to create a desktop shortcut to a USB storage drv?

for Jessie: how to create a desktop shortcut to a USB storage drv? My USB drv is mounted as /media/pi/USBDRV as that is too cumbersome for quick file browsing I want to access the drive via a dektop shortcut, to be opened by the file manager by a double click, like I am used to do it on Windows (7,8...
by 1dot0
Wed Apr 25, 2018 10:24 pm
Forum: General discussion
Topic: passive USB hub - or active needed instead?
Replies: 2
Views: 396

Re: passive USB hub - or active needed instead?

thank you, so if in principle passive hubs can be expected to work for low-current devices then I'll 1st try if that passive hub will work fine for both the WiFi and the HID stick altogether and then 2nd try if it perhaps breaks with one or the other of the additional storage drive simultaneously. I...
by 1dot0
Wed Apr 25, 2018 5:46 pm
Forum: General discussion
Topic: passive USB hub - or active needed instead?
Replies: 2
Views: 396

passive USB hub - or active needed instead?

hello, I need more USB ports to my Pi2 v1, and so I want to use a passive USB hub for WL keyboard/mouse stick, WiFi stick, and perhaps a small 2.5" USB HD or a memory stick. Will e.g. these 2 USB hubs or similar ones assumably work for those devices to my Pi2 USB ports? https://www.ebay.de/sch/i.htm...
by 1dot0
Mon Apr 23, 2018 12:32 pm
Forum: C/C++
Topic: very simple serial port example?
Replies: 5
Views: 2830

Re: very simple serial port example?

hi, as stated before, wiringPi is supposed to be the simplest way. To enable UART: 1. Add the line enable_uart=1 to the '/boot/config.txt' file, this line will set up the Serial Port UART and the necessary clocks on all Pi models. 2. Remove the phrase "console=serial0,115200" from the '/boot/cmdline...
by 1dot0
Sun Feb 11, 2018 6:24 pm
Forum: C/C++
Topic: Wonderfully simple Glade tutorial
Replies: 7
Views: 4473

Re: Wonderfully simple Glade tutorial

as to Delphi (4), it's almost identical to C++ Builder, just a different PL syntax. I know this too (and even a little longer than C++ as I formerly came from Borland Turbo Pascal for a couple of years: Both powerful and extremely handy, and perfectly suited to beginners and hobbyists. I regret that...
by 1dot0
Sun Feb 11, 2018 3:45 pm
Forum: C/C++
Topic: Wonderfully simple Glade tutorial
Replies: 7
Views: 4473

Re: Wonderfully simple Glade tutorial

a pity, like some others I do remember quite well the Borland C++ Buider for Windows: what a powerful and handy programming tool! Feat. a text editor and a canvas für designing windows by just draging windows frame, gadgets and objects together, re-arranging and re-sizing them by simple mouse action...
by 1dot0
Sat Feb 10, 2018 8:17 pm
Forum: C/C++
Topic: Wonderfully simple Glade tutorial
Replies: 7
Views: 4473

Re: Wonderfully simple Glade tutorial

hi, I also found that topic already 9 months ago at prognotes.net . Unfortunately it appeared at that time as if it didn't work in the Geany IDE, to be compiled (F8), build (F9) and run (F5) out of the IDE - is that still true? In case it works now though, what would be the Geany settings for compil...
by 1dot0
Mon Feb 05, 2018 10:54 am
Forum: C/C++
Topic: How can I practice my code for RPI?
Replies: 12
Views: 2091

Re: How can I practice my code for RPI?

just to clarify: the setting in the Geany preferences execute: "sudo ./%e" was just for starting programs out of the IDE (pressing F5), just for convenience reasons, and not for general purposes to start either program. I never had issues by that, not even when wiringI2c once (for a long time) requi...

Go to advanced search