Add "set_level" function to GPIO trait