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

Monocle keep reset\rebooting #283

Open
moragab1993 opened this issue Feb 25, 2024 · 1 comment
Open

Monocle keep reset\rebooting #283

moragab1993 opened this issue Feb 25, 2024 · 1 comment

Comments

@moragab1993
Copy link

moragab1993 commented Feb 25, 2024

Hello, I have an issue with my Monocle.

After I uploaded the code, the monocle keep reset itself, and I could not connect to it

The code I wrote is just simple code. that change the position between polyline and polygon

import display
import time

poly = display.Polyline([101, 0, 126, 25, 101, 50, 76, 25, 101, 0], display.WHITE)
poly2 = display.Polyline([101, 100, 126, 125, 101, 150, 76, 125, 101, 100], display.WHITE,thickness=1)
poly3 = display.Polyline([101, 200, 126, 225, 101, 250, 76, 225, 101, 200], display.WHITE,thickness=1)
poly4 = display.Polygon([101, 300, 126, 325, 101, 350, 76, 325, 101, 300], display.WHITE,thickness=1)

g=[poly4,poly3,poly2,poly]
display.show(g)
time.sleep(0.5)

poly4.move(0,-100)
poly3.move(0,100)
display.show(g)
time.sleep(0.5)
@moragab1993 moragab1993 changed the title Monocle keep resetrebooting Monocle keep reset\rebooting Feb 25, 2024
@josuah
Copy link
Member

josuah commented Apr 2, 2024

Apologies for the long wait!
Assuming this was saved as main.py, what I suggest would be to try to hit Ctrl+\ (backslash) on the REPL.
This would reboot the Monocle and skip main.py, which would allow you to eventually remove main.py.

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