#๐Ÿ”’ Problem with prototype

60 messages ยท Page 1 of 1 (latest)

split shell
zealous breachBOT
#

@split shell

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

zealous breachBOT
split shell
#

Hello

#

Please help ๐Ÿ™

green goblet
#

Try printing what comes in the ser

#
line = ser.readline().decode('utf-8', errors='ignore').strip()
print(line)
split shell
#

I will try

#

Nothing happened

green goblet
# split shell

move those code at line 56 and 57 to before line 55. Make sure its indented the same as the if condition

split shell
#

Is that correct?

green goblet
#

you messed up

split shell
#

Yeah i know๐Ÿ˜

green goblet
#

Replace your while True loop with this:

            while True:
                line = ser.readline().decode('utf-8').strip()
                print(line)
                if ser.in_waiting > 0:
                    if line.startswith("LAUNCH:"):
                        handle_launch(line.split(":")[1])
                    elif line.startswith("VOLUME:"):
                        value = int(line.split(":")[1])
                        volume = int((value / 65535) * 100)
                        print(f"Volume: {volume}%")
split shell
green goblet
# split shell

it looks like there's nothing coming through on the serial port

#

Is your computer Windows?

split shell
#

Yeah

green goblet
#

Do you have Putty installed?

split shell
zealous breachBOT
green goblet
#

idk about the pico file. All of that machine library is foreign to me.

split shell
green goblet
split shell
green goblet
green goblet
# split shell

Try opening Putty and connect on Serial COM Port 6 with speed band 9600

#

If putty also shows no data, then its very likely the pico file is problematic

split shell
#

I think pico code is problem

green goblet
#

yea

split shell
#

So you can't fix Pico's code, right?

green goblet
#

Then test run and check your putty

split shell
#

Replace or add?

green goblet
split shell
green goblet
#

Seems like print works, than uart.write()

#

interesting

split shell
#

When I press the button, the Apps turn on but the volume up and down buttons don't work.

green goblet
#

How do you access the files stored on Pico? ssh?

#

Can you run commands on your Pico?

split shell
split shell
green goblet
split shell
green goblet
# split shell

I see. That's very interesting. Well you can see that there are files on the left.

#

But yeah still no clue about the audio output out of the pico board

split shell
split shell
green goblet
#

Sorry I googled and have no idea. Where'd you learn how to do this?

split shell
#

i have raspbi pi 5 and i dont know what to do with that

#

i will ask someone else

#

thank you for help

zealous breachBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.