def main(args=None):
    main_switch = button(MAIN_SWITCH, GPIO.PUD_DOWN)
    joystick_button = button(JOYSTICK_BUTTON, GPIO.PUD_UP)
    try:
        while True:
            print('.')
            sleep(5)
    except KeyboardInterrupt:
        print('LedLightNode **** 💀 Ctrl-C detected...')
    finally:
        print('LedLightNode **** \U0001faa6 Ending... ')
        print(str(sys.exc_info()[1]))
        GPIO.cleanup()
def main(args=None):
    main_switch = button(MAIN_SWITCH, GPIO.PUD_DOWN)
    joystick_button = button(JOYSTICK_BUTTON, GPIO.PUD_UP)
    try:
        while True:
            print('.')
            sleep(5)
    except KeyboardInterrupt:
        print('LedLightNode **** 💀 Ctrl-C detected...')
    finally:
        print('LedLightNode **** \U0001faa6 Ending... ')
        print(str(sys.exc_info()[1]))
        GPIO.cleanup()