Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newbie problem #14

Open
DL9HDA opened this issue Feb 13, 2025 · 0 comments
Open

Newbie problem #14

DL9HDA opened this issue Feb 13, 2025 · 0 comments

Comments

@DL9HDA
Copy link

DL9HDA commented Feb 13, 2025

Hi,

tried this code:

`import PicoOled13

display=PicoOled13.get()
display.clear()

while True:
if display.is_pressed(display.KEY0):
loc = display.text("Key0 pressed",0,0,0xffff):
if display.is_pressed(display.KEY1):
loc = display.text("Key1 pressed too",0,loc[1],0xffff):
display.show()`

I get this error:
`>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "", line 8
SyntaxError: invalid syntax

`

Is it due to the number of values to be transferred? Here there are four, in def text(self,s,x0,y0,col=0xffff,wrap=1,just=0): in PicoOled13.py I guess seven is expected?

Greetings Holger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant