Textbook:IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK
Author(s): Peter Hoddie
Description:
this coursebook is organized:
• Chapter 1 takes you through gathering all the hardware
and software required for this book and running your
first JavaScript application on a microcontroller. Along
the way, it shows how to use the helpful features of
xsbug, the JavaScript source-level debugger.
• Chapter 2 is a fast-paced, practical introduction to JavaScript for developers who are already familiar with
C or C++. The JavaScript language introduced here is
the same language that’s used on the web, but since
this book focuses on embedded systems, the chapter
addresses some aspects of JavaScript that are seldom
used by web developers.
• Chapter 3 is all about your IoT device’s connection
to the network, including different ways to connect,
how to communicate using various network protocols,
how to make secure connections, and the advanced
topics of how to turn your device into a private Wi-Fi
base station and how to use JavaScript promises with
networking APIs.
• Chapter 4 focuses on Bluetooth Low Energy (BLE),
a wireless communication widely used between two
devices in close proximity to each other. Products
choose to use BLE instead of Wi-Fi if minimizing energy use is particularly important and when direct communication with another device, such as a mobile phone, is an acceptable alternative to internet access.
• Chapter 5 explains how to work with stored data on
embedded systems, given their code size limitations,
constrained RAM, and performance constraints. It
explains the three primary ways to store data—files, preferences, and resources—and introduces direct
access to flash memory, an advanced technique that
offers the greatest flexibility.
• Chapter 6 gets you started on writing your own JavaScript code to interact with hardware. It includes
examples that require just a few widely available,
inexpensive sensors and actuators and shows you how to communicate with them directly using different hardware protocols.
• Chapter 7 explains how to play sounds using an
inexpensive speaker that’s easy to attach directly
to an ESP32 or ESP8266. You’ll also learn how you
can achieve higher-quality audio playback using an
external I2S audio driver and how to choose the optimal audio format for your project.
• Chapter 8 covers first the benefits and cost-
effectiveness of adding a display to your IoT
product and then the fundamentals of graphics
on microcontrollers, including background on
optimizations and constraints, information about how to add graphics assets to projects, and an introduction to various drawing methods. The next two chapters
provide more details.
• Chapter 9 discusses the Poco renderer through
examples showing how to deliver high-quality, high-
performance graphics on inexpensive microcontrollers. Poco is part of the Commodetto graphics library, which adds features including offscreen graphics buffers,
bitmaps, and instantiation of graphics assets from
resources, as demonstrated in some of the examples.
• Chapter 10 elaborates on Piu, the object-oriented
user interface framework that uses the Poco renderer
to draw and simplifies the process of creating
sophisticated user interfaces. The chapter provides
an overview of how Piu works and introduces its key
capabilities through a series of examples.
• Chapter 11 presents the advanced topic of XS in C, the
low-level C API provided by the XS JavaScript engine
so that you can integrate C code into your JavaScript projects (or JavaScript code into your C projects). Using
XS in C enables you to optimize memory use, improve
performance, reuse existing C and C++ code libraries,
and access unique hardware capabilities.
IoT Development for ESP32 and ESP8266 with JavaScript.pdf
(9.05 MB, 需要: RMB 19 元)
下面的附件有误!!
IoT Development for ESP32 and ESP8266 with JavaScript.pdf
(8.93 MB, 需要: RMB 999 元)


雷达卡


京公网安备 11010802022788号







