On 30/09/2020 13:49, 2qdxy4rzwzuui...@potatochowder.com wrote:
On 2020-09-30 at 13:27:43 +0100,
RobH wrote:
I had to do a reinstall of my linux system due to a faulty ssd, and have a
problem with a install.sh script.The said script is included in with lcd
files. which I downloaded from github
I had to do a reinstall of my linux system due to a faulty ssd, and have
a problem with a install.sh script.The said script is included in with
lcd files. which I downloaded from github.
When I run ./install.sh, it fails at
./install.sh: line 34: syntax error: unexpected end of file.
I don't k
On 08/12/2019 22:06, Greg Ewing wrote:
On 9/12/19 7:47 am, RobH wrote:
I wanted it to work as is, like it did for the author, without
changing anything.
So why should I now start to learn how python works.
There are many, many reasons a piece of code could work in one
environment but not
On 08/12/2019 16:49, Dennis Lee Bieber wrote:
On Sun, 8 Dec 2019 09:44:54 +, RobH declaimed the
following:
def print_time():
current_time = time.strftime("%I:%M")
returns nothing.
So what did you expect it to do?
All that does is define a functio
On 08/12/2019 14:26, Karsten Hilbert wrote:
Like this?
>>>print_time()
Traceback (most recent call last)
File "stdin>", line 1, in
File "stdin>", line 2, in print_time
File "stdin>", line 2, in print_time
File "stdin>", line 2, in print_time
[Previous line repeated 996 more times]
RecursionEr
On 08/12/2019 14:39, Chris Angelico wrote:
On Mon, Dec 9, 2019 at 1:36 AM Python wrote:
RobH wrote:
On 08/12/2019 13:06, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
What happens if you then do
On 08/12/2019 13:06, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
What happens if you then do
print_time()
print_time()
on it's own returns NameError: name 'print_time' is not defined
Notice the "then" above ?
Mo
On 08/12/2019 10:39, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
returns nothing.
That should be correct.
What happens if you then do
print_time()
inside the interpreter ?
Karsten
print_time()
on it's own return
On 08/12/2019 04:37, Dennis Lee Bieber wrote:
On Sat, 7 Dec 2019 20:38:20 +, RobH declaimed the
following:
What program has or is an interactive interpreter, if it's not Thonny
Thonny is an IDE... It might expose access to the Python interpreter
(I've only loaded it
On 08/12/2019 08:18, Karsten Hilbert wrote:
Sorry, I should have said just the line, and it didn't return anything.
OK, a bit strange, but then that might be due to Thonny.
Is Thonny an interpreter then.
It sort of is, or at least it runs one. We'd like to take
that out of the equation. I m
On 07/12/2019 21:22, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 08:38:20PM +, RobH wrote:
I have tried the code in Thonny and ran it
Notice how I said "line", not "code".
If you hope to debug anything you need to be precise.
Karsten
--
GPG 40BE 5B0E C98E 1713
On 07/12/2019 19:15, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 06:56:17PM +, RobH wrote:
What happens if your run this line:
current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
(after you define &
On 07/12/2019 17:54, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 05:48:00PM +, RobH wrote:
What happens if your run this line:
current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
(after you define &
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
After overcoming a few errors, I now have the display working and the
start of the code showing on the display, that being the time.
It doesn't move on to the next part of the code ie, no rectangle drawn
def d
On 07/12/2019 16:58, Michael Torrie wrote:
On 12/7/19 9:48 AM, RobH wrote:
On 07/12/2019 16:00, Dan Sommers wrote:
On 12/7/19 9:43 AM, RobH wrote:
When I run a python project with an oled display on a rasperry pi zero,
it calls for the Minecraftia.ttf font. I have the said file in
home/pi
On 07/12/2019 16:00, Dan Sommers wrote:
On 12/7/19 9:43 AM, RobH wrote:
When I run a python project with an oled display on a rasperry pi zero,
it calls for the Minecraftia.ttf font. I have the said file in
home/pi/.fonts/
Do you mean /home/pi/.fonts (with a leading slash, an absolute path
On 07/12/2019 16:04, Peter Otten wrote:
RobH wrote:
When I run a python project with an oled display on a rasperry pi zero,
it calls for the Minecraftia.ttf font. I have the said file in
home/pi/.fonts/
I get this error:
pi@raspberrypi:~/Downloads $ python interdisplay.py
Traceback (most
When I run a python project with an oled display on a rasperry pi zero,
it calls for the Minecraftia.ttf font. I have the said file in
home/pi/.fonts/
I get this error:
pi@raspberrypi:~/Downloads $ python interdisplay.py
Traceback (most recent call last):
File "interdisplay.py", line 220, in
On 05/12/2019 19:40, Rhodri James wrote:
On 05/12/2019 19:30, Rhodri James wrote:
On 05/12/2019 18:49, RobH wrote:
Update:
I did python3 Internet.py
and now only get this error:
pi@raspberrypi:~/Downloads $ python3 Internet.py
File "Internet.py", line 24
font = ImageFon
On 05/12/2019 10:07, RobH wrote:
On 04/12/2019 23:15, Python wrote:
Le 05/12/2019 à 00:06, RobH a écrit :
On 04/12/2019 22:33, Wildman wrote:
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the
On 04/12/2019 23:15, Python wrote:
Le 05/12/2019 à 00:06, RobH a écrit :
On 04/12/2019 22:33, Wildman wrote:
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder
On 04/12/2019 22:33, Wildman wrote:
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder and when I run it I get
the above error at line 4
Import Adafruit_SSD1306
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder and when I run it I get
the above error at line 4
Import Adafruit_SSD1306
I am using python version 2.7.16, if that makes any difference
I have the same module
On 28/09/2019 15:59, Dennis Lee Bieber wrote:
On Fri, 27 Sep 2019 19:46:58 +0100, RobH declaimed the
following:
Thanks for all that information, but first of all using just import
adafruit blinka did not work as it returned bas: import: command not found.
Were you in the Python3
On 27/09/2019 15:28, Dennis Lee Bieber wrote:
On Fri, 27 Sep 2019 10:48:29 +0100, RobH declaimed the
following:
Ok, the adafruit_character_lcd is in the same directory as yours, and so
is Blinka and Purio. It seems to be a bit of a long path to type to get
to the Adafruit_Charlcd directory
On 27/09/2019 04:51, Dennis Lee Bieber wrote:
On Thu, 26 Sep 2019 23:04:15 +0100, RobH declaimed the
following:
As I said, I have downloaded the circuitpython chalcd files from the
link using pip3 install, but after downloading I can't find any Adafruit
folders on my pi zero. Do
On 26/09/2019 20:21, RobH wrote:
On 26/09/2019 17:51, Dennis Lee Bieber wrote:
On Thu, 26 Sep 2019 11:58:15 +0100, RobH declaimed
the
following:
import Adafruit_CharLCD as LCD
FYI: from Adafruit's download site:
https://github.com/adafruit/Adafruit_Python_CharLCD
"&qu
On 26/09/2019 17:51, Dennis Lee Bieber wrote:
On Thu, 26 Sep 2019 11:58:15 +0100, RobH declaimed the
following:
import Adafruit_CharLCD as LCD
FYI: from Adafruit's download site:
https://github.com/adafruit/Adafruit_Python_CharLCD
"""
DEPRECATED LIBRARY. Ada
On 26/09/2019 15:22, Chris Angelico wrote:
On Thu, Sep 26, 2019 at 9:01 PM RobH wrote:
import Adafruit_CharLCD as LCD
# Raspberry Pi pin configuration:
Ah, it's an RPi with Adafruit. That's the same library that my brother
uses. I don't know much of the details, but in ca
On 26/09/2019 12:55, Rhodri James wrote:
On 26/09/2019 11:58, RobH wrote:
Thanks, but was is Python REPR.
DL was referring to the interactive program you get when you type
"python" at a Linux or Windows command prompt. Here's an example,
copied from my Linux box:
rhodri@s
On 26/09/2019 11:08, DL Neil wrote:
On 26/09/19 9:14 PM, RobH wrote:
I have some sample/demo python code for scrolling and outputting text
onto a 16x2 lcd display.
I would like to put my own message or text outputting to the lcd on 2
lines. I have tried using lcd.message('my message
I have some sample/demo python code for scrolling and outputting text
onto a 16x2 lcd display.
I would like to put my own message or text outputting to the lcd on 2
lines. I have tried using lcd.message('my message',1) and
lcd.message('my message', 2), but the output says:
TypeError: message
32 matches
Mail list logo