• 0 Votes
    2 Posts
    205 Views
    P
    @kjm This is indeed a major issue in debugging when using deepsleep. As soon as the system goes to sleep the USB connection and WiFi connection are gone. You then have to reconnect manuually first. As you describe, Atom is then also a major issue as the butons disappear and it thinks it is not fully connected while it is. This makes checking the functionality of a program using sleep very difficult. The only solution I found is using blinking LEDs of several colors to communicate with me the debugger. I am also busy with a logger which writes the state of the program to a file for later inspection. def blink(color, counts, intensity=0x1f, speed=0.5): colors = { "red": 0xFF0000, "green": 0x00FF00, "blue": 0x0000FF, "yellow": 0xFFFF00 } pycom.rgbled(0x000000) for i in range(counts): col = colors.get(color, 0xFFFFFF) col = int(col * intensity / 255.0) pycom.rgbled(col) time.sleep(speed) pycom.rgbled(0) # off time.sleep(speed) def blink_long(color): pycom.rgbled(color) time.sleep(4) pycom.rgbled(0)
  • wifi via Atom

    Support & Troubleshooting atom wifi non usb develop
    3
    0 Votes
    3 Posts
    453 Views
    T
    @kjm I have used Atom over wifi. Had 8 pumps with GPY installed in a large workshop that the pycoms needed upgrading. So rather than have someone take a laptop to each device (I was on the other side of the country) they set the laptop up on ethernet, I team viewered in and connecting to each GPY over wifi from Atom. Worked fine.