Go to advanced search

by PeterO
Tue Oct 17, 2017 8:25 am
Forum: C/C++
Topic: Anyone using distcc ?
Replies: 1
Views: 55

Anyone using distcc ?

In https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=195422#p1223611 jahboater said "Make, or something with similar ability, is what enables large projects on the Pi to be developed." Back in the day I used to use distcc https://github.com/distcc/distcc to compile large projects across a numb...
by PeterO
Sun Oct 15, 2017 7:50 am
Forum: C/C++
Topic: makefile error
Replies: 3
Views: 114

Re: makefile error

Put in code tags to see layout : all: raspberrycar raspberrycar: main.o server.o control.o g++ main.o server.o control.o -o raspberrycar -std=c++0x -pthread -lbcm2835 main.o: main.cpp g++ -std=c++0x -c main.cpp server.o: server.cpp g++ -std=c++0x -c server.cpp control.o: control.cpp g++ -std=c++0x -...
by PeterO
Thu Oct 12, 2017 3:29 pm
Forum: General discussion
Topic: Why do new forum members not come back?
Replies: 30
Views: 1464

Re: Why do new forum members not come back?

It seems that many of them are impatient, if there hasn't been a reply in a few minutes/hours they assume there never will be a reply.

PeterO
by PeterO
Fri Oct 06, 2017 9:40 pm
Forum: Python
Topic: guizero - Any problem with anonymous widgets
Replies: 3
Views: 230

Re: guizero - Any problem with anonymous widgets

scotty101 wrote:
Fri Oct 06, 2017 9:38 pm
It's fine unless you want to do any with the widgets like change their properties or contents.
Which is exactly what the OP said he didn't want/need to do :
I have developed the style of not naming widgets that have no references in the program,
PeterO
by PeterO
Fri Oct 06, 2017 9:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: gpiozero and HC-SR04 range sensor does not work
Replies: 2
Views: 246

Re: gpiozero and HC-SR04 range sensor does not work

@PeterO will have checked this already and will not welcome my input, so I invite him to ignore it. Ah, sarcasm, but you are wrong. I found the problem yesterday while running a STEM club at a local school. Of course their IT setup won't let me use their WiFi so I was unable to check there and then...
by PeterO
Fri Oct 06, 2017 8:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: gpiozero and HC-SR04 range sensor does not work
Replies: 2
Views: 246

gpiozero and HC-SR04 range sensor does not work

I've now tried two HC-SR04s on two PIs (a Zero and a 3B), and I can't get them to work using the example code given in the gpiozero documentation. All I get is "100.0" and the range, even when the sensor is disconnected. However, if I use the (much longer) code given in the CamJam Edukit 3 worksheet...
by PeterO
Fri Oct 06, 2017 3:41 am
Forum: Beginners
Topic: How can i disable the "Removable medium is inserted" popup
Replies: 4
Views: 408

Re: How can i disable the "Removable medium is inserted" popup

This is particularly useful when using a PI for MicroBit work where the pop-up annoyingly pops-up after each and every download to the MicroBit.

PeterO
by PeterO
Thu Oct 05, 2017 11:25 am
Forum: Beginners
Topic: 3W 850nm leds working voltage?
Replies: 29
Views: 878

Re: 3W 850nm leds working voltage?

could you check the mA / LED i buy one multimeter. https://image.prntscr.com/image/i1oWm7_CQgK9FkeE80Z-qg.jpeg It looks like 1.4 amps. But i'm not sure I made the right measurements. what do you think? I think you need to learn how to use a multimeter before you damage something. It looks like you ...
by PeterO
Tue Oct 03, 2017 4:57 pm
Forum: General discussion
Topic: TS Licensing Server Does Not Issue License for Raspberry Pi Device
Replies: 9
Views: 612

Re: TS Licensing Server Does Not Issue License for Raspberry Pi Device

rossetto wrote:
Tue Oct 03, 2017 4:51 pm
Yes, TS. Terminal Service Using the Windows Server Remote Desktop Licensing Manager!
Surely that should be TSUWSRDLM :lol:

PeterO
by PeterO
Tue Oct 03, 2017 10:51 am
Forum: C/C++
Topic: spi
Replies: 5
Views: 1534

Re: spi

Did we even have device tree support five years ago (that's how old this thread is!).
PeterO
by PeterO
Mon Oct 02, 2017 11:05 am
Forum: General discussion
Topic: If you built a fully loaded Raspbian
Replies: 18
Views: 807

Re: If you built a fully loaded Raspbian

jamesh wrote:
Mon Oct 02, 2017 11:01 am
Be interesting to see MS trying to extinguish Linux...
Where have you been for the last 15 or so years ?

PeterO
by PeterO
Sat Sep 30, 2017 10:17 am
Forum: Beginners
Topic: 3W 850nm leds working voltage?
Replies: 29
Views: 878

Re: 3W 850nm leds working voltage?

My point was that a 3V, 1A (3W) LED can't be driven from a 16mA GPIO, it can be switched with a GPIO. Dougie, why don't you read what OP wrote rather than jumping to the wrong answer ! However, the 3v3 supply from the GPIO pins is not designed to provide the level of current your LEDs require. They...
by PeterO
Fri Sep 29, 2017 7:52 pm
Forum: Advanced users
Topic: how can I turn off the usb autosuspend?
Replies: 13
Views: 506

Re: how can I turn off the usb autosuspend?

DougieLawson wrote:
Fri Sep 29, 2017 7:39 pm
The OP has also completely failed to tell us what USB device he/she is using.
It would seem that Dougie has completely failed to follow the link the OP posted !

PeterO
by PeterO
Thu Sep 28, 2017 1:05 pm
Forum: Automation, sensing and robotics
Topic: Blue tooth robot control
Replies: 1
Views: 161

Blue tooth robot control

There seem to be several Android apps for controlling robots via blue tooth.

I have a Hudl II which I would like to use to experiment with, but which would be a good android app for doing this ?
What are the important features to look for ?

PeterO
by PeterO
Thu Sep 28, 2017 9:22 am
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 1273

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

You need to add one of the suggested options to the compile command configured in geany,

In the menu.. Build -> Set Build Commands add "-std=c99" after "gcc" in Compile and Build boxes.

(I'm looking on a MINT PC but I expect the version on PI is the same).
PeterO
by PeterO
Wed Sep 27, 2017 5:43 pm
Forum: General discussion
Topic: Power for an external HDD
Replies: 60
Views: 52166

Re: Power for an external HDD

Can I connect RP3 To 5Volt 20A PSU ??? If it is a decent power supply (e.g. a computer PSU) with good stability there are no problems. If you are in doubt about the quality and stability, you can for good measures put a 3A voltage regulator (e.g. LM1085-5.0) in between. No you can't. That regulator...
by PeterO
Tue Sep 26, 2017 1:29 pm
Forum: C/C++
Topic: Serial Port RAW mode
Replies: 5
Views: 479

Re: Serial Port RAW mode

Have you tried using "cfmakeraw" ? That's what I use and it seems to work OK.

PeterO
by PeterO
Mon Sep 25, 2017 3:34 pm
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

...and it run! So thank you SOOO much! I have been struggling with this on and off for three weeks b4 trying the RPi forum! Best 73 and c u on 80? You are more likely to catch me on 30m when I'm out /Portable PS whatever is PI2 XENON DEATH FLASH!???? DS It was my 5 minutes of global fame ! https://...
by PeterO
Mon Sep 25, 2017 2:50 pm
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

source_id = GObject.timeout_add ( 5000, Handler.Fillcallback()) The above code calls Handler.Fillcallback which has a boolean return value. You need to pass the method to timeout_add so don't call the function (i.e. don't put "()" after the name.... source_id = GObject.timeout_add ( 5000, Handler.F...
by PeterO
Mon Sep 25, 2017 12:15 pm
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

Understanding Python error messages takes a bit of practice :-)
de G0DZB (but I think you've googled me :lol: )
by PeterO
Mon Sep 25, 2017 9:24 am
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

Here is an example which uses a periodic timer callback:

https://gist.github.com/jampola/473e963cff3d4ae96707

PeterO
by PeterO
Mon Sep 25, 2017 8:22 am
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

No, I think you've understood what an EntryBox is correctly. The problem is that you are trying to set the value in an EntryBox that does not exist in your glade layout ! Try changing pFriggeInneVarning = builder.get_object("FriggeInneVarning") #pFriggeInneVarning.entry_set_text ( "50" ) to pFriggeI...
by PeterO
Mon Sep 25, 2017 8:15 am
Forum: C/C++
Topic: This python code in C
Replies: 11
Views: 811

Re: This python code in C

I agree that a beginner programmer might like something a bit easier to use of the bat. A library like wiringPi for example. one should always presuppose that users asking programming questions in this forum section are actually beginners. Especially, if they ask how to port Python code of a serial...
by PeterO
Mon Sep 25, 2017 8:03 am
Forum: Python
Topic: PyGtk and Glade, cannot connect to the GUI!
Replies: 13
Views: 398

Re: PyGtk and Glade, cannot connect to the GUI!

Your glade file doesn't contain a widget called "FriggeInneVarning", that's your problem ! You should test the value (*) being returned by "builder.get_object("FriggeInneVarning")" . Hint : It is "None" ;) Also... the method you need is "pFriggeInneVarning.set_text ( "50" )" See https://python-gtk-3...
by PeterO
Thu Sep 21, 2017 9:23 pm
Forum: Beginners
Topic: Maintance of Raspbian
Replies: 4
Views: 247

Re: Maintance of Raspbian

s/hopping/hogging/
PeterO

Go to advanced search