title: How to interact with Amazon's IoT programmable button's LED light
body: <p>I'm using node.js to create a Lambda function in Amazon Web Services that an IoT button invokes when pressed. The IoT button has a small LED that lights up green if the function was executed successfully and red if there was an error. I'm wondering if there's any way to control the LED more than that? I know it flashes white during the configuration process. I've read through quite a bit of documentation and can't find anything on controlling the LED. Does anyone here know much about it or have suggestions on how to tell the button to change the color, brightness or duration of its LED?</p>
  
  <p>I think it's going to be done with an object sent through Lambda's callback function but I have no idea what format the object needs to be in for it to make sense to the IoT button.</p>
  
  <pre><code>callback(Error error, Object success) 
  </code></pre>
  
  <p>I might add that I do have everything up and working - I don't need help setting up my button. I also know what the button sends Lambda when it's pressed:</p>
  
  <pre><code>{ 
    "serialNumber": "0000000000000000",
    "batteryVoltage": "xxmV",
    "clickType": "SINGLE" | "DOUBLE" | "LONG"
  }
  </code></pre>
  
  <p>Edit:</p>
  
  <p>So I found where someone <a href="https://github.com/dekuNukem/Amazon_Dash_Button/blob/master/firmware%20dump/Cottonelle_%20stringified.txt" rel="nofollow noreferrer">dumped the firmware</a> for one of the non-programmable dash buttons and I found this:</p>
  
  <pre><code>Usage: led &lt;r&gt; &lt;g&gt; &lt;b&gt;
  Usage: led &lt;mode&gt; &lt;r&gt; &lt;g&gt; &lt;b&gt;
      Modes: 'b'==blink; 'f'==fade
  Illuminating LED with RGB(%x,%x,%x) color=%8x
  </code></pre>
  
  <p>I don't know what to do with it yet though...</p>