Fix for the button example sketch, as suggested by kgreidanus