Right now there is only one let buttonState declared globally which keeps track of the button state, so effectively only one button will work. There should be a workarround regarding variable scope or an array of states or such. Any way of solving this works.
Right now there is only one
let buttonState
declared globally which keeps track of the button state, so effectively only one button will work. There should be a workarround regarding variable scope or an array of states or such. Any way of solving this works.