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

Pico display can't run examples with display code #1268

Open
taktran opened this issue Dec 13, 2023 · 2 comments
Open

Pico display can't run examples with display code #1268

taktran opened this issue Dec 13, 2023 · 2 comments

Comments

@taktran
Copy link

taktran commented Dec 13, 2023

Build environment: macOS (Apple M1 Max)
Moddable SDK version: 4.3.4
Target device: pico/pico_display

Description

I'm trying to run the examples on the pico display, and the rgb led (using pins/pwm in pins/tricolor-led example) and the buttons (using pins/digital in pins/button example) work, but when I try any of the commodetto or piu examples, it builds, but doesn't show on the pico display. It does work on the simulator/pico_display though.

Steps to Reproduce

  1. Go to one of the display examples eg, cd $MODDABLE/examples/piu/balls (same for piu/images, piu/backlight, piu/list, piu/qrcode, and commodetto/text)

  2. Build and install the app using this build command: mcconfig -d -m -p pico/pico_display
    No error displays in the build
    It loads something on the pico:

    # Setting programming mode
    Waiting for /Volumes/RPI-RP2...
    # Programming: /Users/.../moddable/build/bin/pico/pico_display/debug/text/xs_pico.uf2 /Volumes/RPI-RP2
    Connect to xsbug @ 2e8a:000a.
    

Expected behavior

Display is shown on the pico display

Images

After building, nothing is shown on the screen:
pico-display

The RGB LED does show some light (even though the example doesn't tell it to), but nothing on the display (not even a back light)

Works on the simulator

Screenshot 2023-12-13 at 10 42 28 pm

Other information

I've tested the pico display using the standard micropython examples and it works as expected, but I'm hoping I can use moddable instead since I'm much more familiar with JavaScript 🤞🏼

Also, I couldn't get arm-none-eabi-gcc compiling on my M1 machine, so had to follow the following steps to install:

brew uninstall arm-none-eabi-gcc
brew autoremove
brew install --cask gcc-arm-embedded

From raspberrypi/pico-feedback#355 (comment). Since the RGB and buttons work, I'm assuming the build tools are ok.

@mkellner
Copy link
Collaborator

I can reproduce the problem.

It is strange.

If I build for a pico/lilygo_t_display it runs correctly. That board has the same display.

The pico/pico_display_2 is a larger display, but also displays correctly.

I took the RPi Pico board off of the pico display and was able to program it and see that it connects to xsbug and draws regularly:

image

I then took the programmed board and reconnected it to the pico display and the screen animated as expected.

image

I was thereafter able to program other graphics apps to the pico display.

Can you please try to program the board when it is removed from the pico display and see if it connects to xsbug (like I did above)?

If it does connect, can you reassemble the pico display board and see if it displays correctly?

@taktran
Copy link
Author

taktran commented Mar 14, 2024

I tried it with the commodetto/fireworks example, and as suggested ran it without the pico display first, then put the pico display on. The onboard led, buttons and log inside xsbug seems to work but the screen still does not.

Photo March

Any other ideas?

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

2 participants