{"action":"created","issue":{"url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/662","labels_url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/662/comments","events_url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/662/events","html_url":"https://github.com/Smoothieware/Smoothieware/pull/662","id":72459224,"number":662,"title":"Switch momentary output","user":{"login":"691175002","id":11525074,"avatar_url":"https://avatars.githubusercontent.com/u/11525074?v=3","gravatar_id":"","url":"https://api.github.com/users/691175002","html_url":"https://github.com/691175002","followers_url":"https://api.github.com/users/691175002/followers","following_url":"https://api.github.com/users/691175002/following{/other_user}","gists_url":"https://api.github.com/users/691175002/gists{/gist_id}","starred_url":"https://api.github.com/users/691175002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/691175002/subscriptions","organizations_url":"https://api.github.com/users/691175002/orgs","repos_url":"https://api.github.com/users/691175002/repos","events_url":"https://api.github.com/users/691175002/events{/privacy}","received_events_url":"https://api.github.com/users/691175002/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-01T15:43:58Z","updated_at":"2015-08-25T03:15:21Z","closed_at":"2015-08-25T03:15:21Z","pull_request":{"url":"https://api.github.com/repos/Smoothieware/Smoothieware/pulls/662","html_url":"https://github.com/Smoothieware/Smoothieware/pull/662","diff_url":"https://github.com/Smoothieware/Smoothieware/pull/662.diff","patch_url":"https://github.com/Smoothieware/Smoothieware/pull/662.patch"},"body":"This is a small addition to the switch module.\r\n\r\nA new configuration parameter has been added: output_pin_behavior, which is analogous to input_pin_behavior.\r\n\r\nSetting \"output_pin_behavior = toggle\" preserves existing behavior, and is the default value.\r\nSetting \"output_pin_behavior = momentary\" will instead output a pulse when the \"on\" g-code is received.\r\n\r\nThe pulse duration is configurable using the \"output_pulse_duration\" parameter and by default is 0.2 seconds.  This feature is useful for performing all sorts of miscellaneous tasks as the pulse duration can be configured to last minutes or even hours.\r\n\r\nI have also implemented a change to how Switch.cpp was reading the configuration.  Details here:\r\nhttps://groups.google.com/d/msg/smoothie-dev/hbjUP5UwMeM/L2SlhbxYPGIJ\r\n\r\nI have tested the momentary output feature and fixed configuration, but have not tested the input modes.\r\n\r\nThis is my first time contributing to an open source project so I have no idea what I'm doing."},"comment":{"url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/comments/134462079","html_url":"https://github.com/Smoothieware/Smoothieware/pull/662#issuecomment-134462079","issue_url":"https://api.github.com/repos/Smoothieware/Smoothieware/issues/662","id":134462079,"user":{"login":"wolfmanjm","id":22263,"avatar_url":"https://avatars.githubusercontent.com/u/22263?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfmanjm","html_url":"https://github.com/wolfmanjm","followers_url":"https://api.github.com/users/wolfmanjm/followers","following_url":"https://api.github.com/users/wolfmanjm/following{/other_user}","gists_url":"https://api.github.com/users/wolfmanjm/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfmanjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfmanjm/subscriptions","organizations_url":"https://api.github.com/users/wolfmanjm/orgs","repos_url":"https://api.github.com/users/wolfmanjm/repos","events_url":"https://api.github.com/users/wolfmanjm/events{/privacy}","received_events_url":"https://api.github.com/users/wolfmanjm/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T03:15:21Z","updated_at":"2015-08-25T03:15:21Z","body":"cannot be merged as it has conflicts. Reopen when fixed"}}