conejoninja / gopherbadge

22 stars 8 forks source link

Screen does not display when power is restarted #6

Open sago35 opened 1 year ago

sago35 commented 1 year ago

After tinygo flash, the screen always displays. However, once I turn the power back on, the screen is not displayed. In this state, the screen will be displayed if the reset button is repeated several times.

It was the same for both of the following source codes. Maybe I should write an issue to tinygo-org/drivers, but I am thinking that gopher-badge might be the cause.

https://github.com/conejoninja/gopherbadge/blob/main/tutorial/basics/step5/main.go https://github.com/tinygo-org/drivers/blob/release/examples/st7735/main.go

I tried ST7735 externally, but that does not reproduce the problem.

image

conejoninja commented 1 year ago

I don't fully understand the issue, is it happening with USB-C connected?

There's this issue when powering from battery :

Not powering up with battery connected

If your battery is connected and switching your badge to ON doesn’t power it up, disconnect your battery, switch to ON and connect your battery again. Another option is to switch to ON, and connect briefly a powered USB-C cable to the connector, it will bootup and then you are free to disconnect the USB-C. If it doesn’t power up, then check the battery charge.