Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void button_2_on_click(int clicks,void* state) {
- if(clicks==4) {
- do_request(speaker_index,vol_down_url);
- } else if(clicks==3) {
- do_request(speaker_index,vol_up_url);
- } else if(clicks==2) {
- do_request(speaker_index,prev_track_url);
- } else if(clicks==1) {
- do_request(speaker_index,play_pause_url)
- }
- // reset the dimmer
- dimmer.wake();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement