{"action":"created","issue":{"url":"https://api.github.com/repos/tessel/t2-firmware/issues/15","labels_url":"https://api.github.com/repos/tessel/t2-firmware/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/tessel/t2-firmware/issues/15/comments","events_url":"https://api.github.com/repos/tessel/t2-firmware/issues/15/events","html_url":"https://github.com/tessel/t2-firmware/issues/15","id":67695986,"number":15,"title":"Node support for sysfs LEDs","user":{"login":"kevinmehall","id":119951,"avatar_url":"https://avatars.githubusercontent.com/u/119951?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinmehall","html_url":"https://github.com/kevinmehall","followers_url":"https://api.github.com/users/kevinmehall/followers","following_url":"https://api.github.com/users/kevinmehall/following{/other_user}","gists_url":"https://api.github.com/users/kevinmehall/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinmehall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinmehall/subscriptions","organizations_url":"https://api.github.com/users/kevinmehall/orgs","repos_url":"https://api.github.com/users/kevinmehall/repos","events_url":"https://api.github.com/users/kevinmehall/events{/privacy}","received_events_url":"https://api.github.com/users/kevinmehall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tessel/t2-firmware/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tessel/t2-firmware/labels/JS","name":"JS","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-10T22:27:55Z","updated_at":"2015-05-06T23:41:49Z","closed_at":null,"body":"The `require('tessel').led` API should use the LEDs attached to the MT7620n by writing to `/sys/class/leds/*/brightness`.\r\n\r\nIn addition to direct control, we could consider APIs for setting triggers."},"comment":{"url":"https://api.github.com/repos/tessel/t2-firmware/issues/comments/99646031","html_url":"https://github.com/tessel/t2-firmware/issues/15#issuecomment-99646031","issue_url":"https://api.github.com/repos/tessel/t2-firmware/issues/15","id":99646031,"user":{"login":"kevinmehall","id":119951,"avatar_url":"https://avatars.githubusercontent.com/u/119951?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinmehall","html_url":"https://github.com/kevinmehall","followers_url":"https://api.github.com/users/kevinmehall/followers","following_url":"https://api.github.com/users/kevinmehall/following{/other_user}","gists_url":"https://api.github.com/users/kevinmehall/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinmehall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinmehall/subscriptions","organizations_url":"https://api.github.com/users/kevinmehall/orgs","repos_url":"https://api.github.com/users/kevinmehall/repos","events_url":"https://api.github.com/users/kevinmehall/events{/privacy}","received_events_url":"https://api.github.com/users/kevinmehall/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T23:41:49Z","updated_at":"2015-05-06T23:41:49Z","body":"```\r\ntessel.led.blue.trigger('timer', { delay_on: 400, delay_off: 200 })\r\ntessel.led.amber.trigger('netdev', { dev: 'wlan0' })\r\n```\r\nhttp://wiki.openwrt.org/doc/uci/system#leds\r\nSince we set up the amber LED for wlan0 trigger by default, this may not be necessary. However, there are other triggers for USB activity, flash read/write, system load, etc."}}