| Electronic Components Datasheet Search |
|
DEV-12887 Datasheet(PDF) 29 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-12887 Datasheet(HTML) 29 Page - SparkFun Electronics |
|
29 / 40 page ![]() <html> <head> </head> <body onLoad=updateURL()> <h4>What is your agent's url?</h4> <form name="url"> https://agent.electricimp.com/<input type="text" name="agentUr l" placeholder="qJx35x_LTITP" onChange=updateURL()> </form> <h4>Imp Inputs:</h4> <form name="leds" id="ledSend" method="get"> Lonely Red LED: <input type="radio" name="led" value="0" check ed>Off <input type="radio" name="led" value="1">On<br > Set the RGB LED: <input type="color" name="rgb"> (Chrome/Oper a use color input, other browsers format as "#XXXXXX", where X is 09, af, or AF.) <br> How long should the LEDs stay on? <input type="text" name="tim er" value="10">seconds<br> Your name? So we know who to blame! <input type="text" name="u ser" placeholder="Your name here"><br> <br> <input type="submit" value="Update!"> </form> </body> <script language="javascript"> function updateURL() { ledForm = document.leds; urlForm = document.url; ledForm.action = "https://agent.electricimp.com/" + urlFor m.agentUrl.value; } </script> </html> Then save and open the file with your browser of choice. A simple web page like this should show up: Make sure you type in the correct, unique code for your agent URL. Then play with the rest of the form inputs. The On/Off radio buttons turn the lonely red LED on or off. The RGB color selector sets the color of the RGB LED. The duration text box will turn all LEDs off after a set number of seconds. And the name textbox will print your name in your imp’s console. Try it out! Page 29 of 40 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |