summaryrefslogtreecommitdiff
path: root/boards/ek-tm4c1294xl/enet_io/fs/io_http.htm
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2014-03-16 14:31:22 +0200
committerYuval Adam <yuv.adm@gmail.com>2014-03-16 14:31:22 +0200
commitac4fd8e8340886f455add8cf92ee1c8458b8ae19 (patch)
treefdeb96af9d57573855405fb5099468244772cd49 /boards/ek-tm4c1294xl/enet_io/fs/io_http.htm
parent821e3405f23958760f7c27e8934940abfed3d5cb (diff)
Add ek-tm4c1294xl example projects
Diffstat (limited to 'boards/ek-tm4c1294xl/enet_io/fs/io_http.htm')
-rw-r--r--boards/ek-tm4c1294xl/enet_io/fs/io_http.htm63
1 files changed, 63 insertions, 0 deletions
diff --git a/boards/ek-tm4c1294xl/enet_io/fs/io_http.htm b/boards/ek-tm4c1294xl/enet_io/fs/io_http.htm
new file mode 100644
index 0000000..3229198
--- /dev/null
+++ b/boards/ek-tm4c1294xl/enet_io/fs/io_http.htm
@@ -0,0 +1,63 @@
+<!DOCTYPE HTML>
+<!-- Copyright (c) 2013 Texas Instruments Incorporated. All rights reserved. -->
+<html>
+
+ <head>
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
+ <title>I/O Control Demo 1</title>
+ <link rel="stylesheet" type="text/css" href="styles.css" />
+ <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
+ </head>
+
+ <body>
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td align="left" valign="top" width="75%">
+ <center>
+ <h2 align="center">I/O Control Demo 1</h2>
+ </center>
+ <hr size="2" width="100%">
+ <p>This demonstration shows how to perform control and status reporting using HTTP requests embedded within Javascript code on the web page itself. Using this method, it is possible to update sections of text on the current page without the need to refresh the
+ entire page.</p>
+ <p>Toggle USER LED and report the state of the LED</p>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <input id="toggle" value="Toggle LED" onclick="toggle_led();" type="button">
+ </td>
+ <td>USER LED:</td>
+ <td>
+ <div id="ledstate" align="center">-</div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p></p>
+ <p>Set the speed of the animation LED. Speed is expressed as a percentage.</p>
+ <table>
+ <tbody>
+ <tr>
+ <td>Current Speed:</td>
+ <td>
+ <div id="current_speed" align="center">-</div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input id="speed_set" value="Set Speed" onclick="speedSet();" type="button">
+ </td>
+ <td>
+ <input maxlength="3" size="4" id="speed_percent" type="text">%</td>
+ </tr>
+ </tbody>
+ </table>
+ <p></p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+
+</html>