EasyManuals Logo

Arduino Pro Mini User Manual

Arduino Pro Mini
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #231 background imageLoading...
Page #231 background image
modify the HTML page. Add a new button element and set its ID attribute to
the name of the Arduino command that emits the corresponding remote
control code.
To align the buttons of our virtual remote control and to make the Chrome
app look nice, we use the following stylesheet:
RemoteControl/TvRemoteUI/css/style.css
#main {
width: 18em;
margin-left: auto;
margin-right: auto;
}
button {
width: 6em;
}
The stylesheet mainly ensures that all buttons have the same width. Run the
Chrome app, and youll see something like the following figure:
Upload the sketch from Cloning a Remote, on page 207, to your Arduino and
start the Chrome app. Click any button to perform the corresponding action.
Thats an interface even your grandma could use, isnt it?
You still need to connect the Arduino to your computers serial port to control
it with a web browser. In the next section, youll learn how to overcome this
and control an Arduino without a serial connection.
report erratum discuss
Controlling Infrared Devices Remotely with Your Browser 215
www.it-ebooks.info

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino Pro Mini and is the answer not in the manual?

Arduino Pro Mini Specifications

General IconGeneral
BrandArduino
ModelPro Mini
CategoryMotherboard
LanguageEnglish

Related product manuals