Go to advanced search

by lawsie
Wed Oct 25, 2017 6:20 pm
Forum: Beginners
Topic: Robot controller. Need help!
Replies: 2
Views: 238

Re: Robot controller. Need help!

Here's a resource in which you make a robot buggy and then control it remotely with a guizero interface. The robot uses an Explorer HAT but you could just as easily use gpiozero.

https://projects.raspberrypi.org/en/pro ... -hat-buggy
by lawsie
Wed Sep 27, 2017 7:21 am
Forum: Python
Topic: guizero - refresh text display
Replies: 14
Views: 3272

Re: guizero - refresh text display

Yes, sorry, I haven't had time to do any updates on guizero for a little while now.
by lawsie
Mon Aug 21, 2017 9:40 am
Forum: Troubleshooting
Topic: what does "*** GUIZERO WARNING ***" mean?
Replies: 1
Views: 403

Re: *** GUIZERO WARNING ***

I predict that this is happening the first time you run the program that displays the GUI? At this stage, you won't have a 'latest.gif' file so the warning is telling you that it's trying to display a file that doesn't exist. Once you've taken a photo, you will have a latest.gif so you shouldn't see...
by lawsie
Tue Jun 27, 2017 4:29 pm
Forum: Python
Topic: Print Large Numbers
Replies: 13
Views: 1436

Re: Print Large Numbers

So, in short, A will be a string because everything you read in from input is a string.

Try this, assuming the person types in an integer. (If they didn't type an integer, this will cause an error).

Code: Select all

T = int(A) + 500
by lawsie
Wed Jun 21, 2017 9:35 am
Forum: Python
Topic: Print Large Numbers
Replies: 13
Views: 1436

Re: Print Large Numbers

B. Goode is right. You can't use a gui inside an infinite loop like this because this isn't how the GUI works - it enters an infinite event loop where it waits for events to happen and then processes them as they do happen. Your code doesn't contain app.display() so you have never started the GUI ev...
by lawsie
Mon Jun 19, 2017 8:23 am
Forum: Python
Topic: Temperature read out into a seperate GUI BOX
Replies: 7
Views: 881

Re: Temperature read out into a seperate GUI BOX

You can do this with guizero, an example (with a simulated sensor reading) is here:

https://github.com/lawsie/guizero/blob/ ... example.py
by lawsie
Mon Jun 19, 2017 7:57 am
Forum: Python
Topic: guizero - refresh text display
Replies: 14
Views: 3272

Re: guizero - refresh text display

The entire documentation resides in the exact same github repo at https://github.com/lawsie/guizero/tree/master/docs. You're very welcome to create a pull request to docs-src (https://github.com/lawsie/guizero/tree/master/docs-src ) if you think something needs updating, and I will merge it and rege...
by lawsie
Mon Aug 11, 2014 4:03 pm
Forum: Picademy
Topic: Resistors and LEDs
Replies: 14
Views: 11634

Re: Resistors and LEDs

Many thanks for the kind help on this topic everybody - this is a fantastic forum :)
by lawsie
Mon Aug 11, 2014 3:08 pm
Forum: Picademy
Topic: Resistors and LEDs
Replies: 14
Views: 11634

Re: Resistors and LEDs

by lawsie
Mon Aug 11, 2014 2:26 pm
Forum: Picademy
Topic: Resistors and LEDs
Replies: 14
Views: 11634

Re: Resistors and LEDs

Thanks - no we were not using any breakout board or indeed any breadboard at all, just wires and the LEDs. The LEDs I am currently using are some dodgy cheap ones from Amazon. The specs say: Forward Voltage : 2.0 - 2.2V Max Continuous Forward Current : 20mA http://www.amazon.co.uk/gp/product/B0087ZT...
by lawsie
Mon Aug 11, 2014 2:02 pm
Forum: Picademy
Topic: Resistors and LEDs
Replies: 14
Views: 11634

Resistors and LEDs

Hello, I have been playing around with LEDs just as we did in Picademy. We didn't use any resistors, but I have read other tutorials and sites which suggest you should definitely do this to prevent damage to your Pi/blowing up the LEDs. I am using a breadboard to connect LEDs to the GPIO pins on the...
by lawsie
Mon Aug 04, 2014 1:21 pm
Forum: Picademy
Topic: Keyboard & Mouse sharing / Splitters?
Replies: 8
Views: 3154

Re: Keyboard & Mouse sharing / Splitters?

I've just set up my Pi to use synergy - exactly what I wanted, and totally free!! Thank you to everyone for your help :)
by lawsie
Mon Jul 21, 2014 9:01 am
Forum: Picademy
Topic: Keyboard & Mouse sharing / Splitters?
Replies: 8
Views: 3154

Re: Keyboard & Mouse sharing / Splitters?

Thank you! :)
by lawsie
Thu Jul 17, 2014 6:05 pm
Forum: Picademy
Topic: Keyboard & Mouse sharing / Splitters?
Replies: 8
Views: 3154

Keyboard & Mouse sharing / Splitters?

Hello! Just wondering whether it is possible (or even advisable) to get some kind of usb keyboard / mouse splitter so that I can use the same kb and mouse with my PC as well as my Pi (maybe you press something to switch between the two?) without having to crawl down the back of my desk and switch th...

Go to advanced search