web interactions

This commit is contained in:
2019-02-24 03:12:06 +00:00
parent cbcf60a3ed
commit 67f267d7ab
4 changed files with 104 additions and 13 deletions

24
views/index.erb Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LED Manager</title>
</head>
<body>
<h1>LED Manager</h1>
<ul>
<li><a href="/cycle">Cycle 3 Times</a></li>
<li><a href="/led/blue">Blue</a></li>
<li><a href="/led/white">White</a></li>
<li><a href="/led/red">Red</a></li>
<li><a href="/led/green">Green</a></li>
<li><a href="/led/yellow">Yellow</a></li>
</ul>
<pre>
<%= led_status %>
</pre>
</body>
</html>