EasyManuals Logo

Arduino uno User Manual

Arduino uno
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 #281 background imageLoading...
Page #281 background image
Creating a Minimal Chrome App
Chrome apps are zip files that contain all the assets youd usually expect in
a web application. They contain HTML files, JavaScript files, images, videos,
and so on. In addition, each zip archive contains two special files:
manifest.json
and
background.js
.
manifest.json
describes the Chrome apps metadata and typically looks like this:
ChromeApps/SimpleApp/manifest.json
{
"manifest_version": 2,
"name": "My First Chrome App",
"version": "1",
"permissions": ["serial"],
"app": {
"background": {
"scripts": ["background.js"]
}
}
}
It uses JavaScript Object Notation (JSON)
4
and supports a lot of different
options.
5
Only
name
and
version
are mandatory. They specify the apps name and version.
These attributes will appear in the Chrome Web Store, if you decide to make
your application available to the public. So choose them carefully if youre
going to release your application.
manifest_version
contains the version of the manifest files specification. Currently,
you must set it to 2 for Chrome apps.
With the
permissions
option, your Chrome app can request permissions that
applications do not have by default. We set it to
serial
so the Chrome app is
allowed to access the computers serial port. Users who install a Chrome app
have to agree to all permissions it requests.
Eventually,
manifest.json
sets the Chrome apps background page to a file named
background.js
. Which brings us to the second mandatory file in each Chrome
app:
background.js
.
Not only does every Chrome app need a starting point, but every app also
needs some kind of lifecycle management. Like operating systems control a
4.
http://json.org/
5.
https://developer.chrome.com/apps/manifest
report erratum discuss
Creating a Minimal Chrome App 269
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

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

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals