Python Modify Global Variable In Function In Arduino