As i want to control that variable with an analog input voltage [from a pot], i gather i could just replace command_data with 'val' and set that as the value i want.
That code certainly uploads onto the ATTing85 alright, just going to have a tinker with it. Thanks again ![]()