microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
477 stars 206 forks source link

Unplugging microbitv2 causes screen to be upside down #6468

Open smfox10 opened 1 month ago

smfox10 commented 1 month ago

Plugging in the MicrobitV2 when the NewbitArcadeShield is powered on may cause the screen to go upside down. I recorded a video here to illustrate this: 1, V2 (makecode) inserted vertically, screen normal 2, V2 (makecode) inserted diagonally, the screen upside down 3, V2 (arcade) either inserted vertically or diagonally, the screen is normal.

https://github.com/microsoft/microcode/assets/3880290/d18ef6aa-a459-439d-8a0c-b6a5923a9b7a

Guess the reason: Pin-ButtonOUT, when inserted diagonally, and the left and right pins are shorted, causing it to detect a low level (Pin-ButtonOUT detects a low level and the screen goes upside down). image

Solution: The screen initialization of microcode should be delayed? Ensure that the detection signal of Pin-ButtonOUT is stable.

tballmsft commented 1 month ago

This is really an issue for https://github.com/microsoft/pxt-arcade/issues