{"action":"closed","issue":{"url":"https://api.github.com/repos/neu-rah/ArduinoMenu/issues/58","repository_url":"https://api.github.com/repos/neu-rah/ArduinoMenu","labels_url":"https://api.github.com/repos/neu-rah/ArduinoMenu/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/neu-rah/ArduinoMenu/issues/58/comments","events_url":"https://api.github.com/repos/neu-rah/ArduinoMenu/issues/58/events","html_url":"https://github.com/neu-rah/ArduinoMenu/issues/58","id":185723949,"number":58,"title":"Define for 2-keys keyboard for loop FIELD value","user":{"login":"dontsovcmc","id":6192152,"avatar_url":"https://avatars.githubusercontent.com/u/6192152?v=3","gravatar_id":"","url":"https://api.github.com/users/dontsovcmc","html_url":"https://github.com/dontsovcmc","followers_url":"https://api.github.com/users/dontsovcmc/followers","following_url":"https://api.github.com/users/dontsovcmc/following{/other_user}","gists_url":"https://api.github.com/users/dontsovcmc/gists{/gist_id}","starred_url":"https://api.github.com/users/dontsovcmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontsovcmc/subscriptions","organizations_url":"https://api.github.com/users/dontsovcmc/orgs","repos_url":"https://api.github.com/users/dontsovcmc/repos","events_url":"https://api.github.com/users/dontsovcmc/events{/privacy}","received_events_url":"https://api.github.com/users/dontsovcmc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-27T16:51:10Z","updated_at":"2016-10-27T17:46:50Z","closed_at":"2016-10-27T17:46:50Z","body":"I you have only 2 keys in your device you can't change values in FIELDs cause you can't go down after maximum value. So, we can change clamp() function with ONLY_UP_KEY definition.\r\n\r\n```\r\nvoid clamp() {\r\n      if (value<low) value=low;\r\n#ifdef ONLY_UP_KEY\r\n      else if (value>high) value=low;\r\n#else\r\n      else if (value>high) value=high;\r\n#endif\r\n}\r\n```"}}
{"actor":{"display_login":"neu-rah"}}