Hardware Reference
In-Depth Information
Figure 14-2:
Arduino server wired to RGB LED and speaker
Open up your favorite text editor (I recommend Notepad++ for Windows
because it highlights and color codes your HTML when you save as an HTML
file) and create a new file with a
.html
extension. It doesn't matter what you
name the file;
test.html
will work fine. This will be a very bare-bones website,
so do not worry about making this a fully “compliant” HTML website; it will
be missing some tags that are normally used, such as
<body>
and
<head>
. These
missing tags will not affect how the page is rendered in the browser. In your
new HTML file, enter the markup from Listing 14-1.
Listing 14-1:
HTML Form Page—server_form.html
<form action='' method='get'>
<input type='hidden' name='L' value='7' />
<input type='submit' value='Toggle Red' />
</form>
<form action='' method='get'>
<input type='hidden' name='L' value='6' />
<input type='submit' value='Toggle Green' />
</form>
<form action='' method='get'>
Search WWH ::
Custom Search