Micro:bit IoT In C

Автор: literator от 5-06-2019, 20:56, Коментариев: 0

Категория: КНИГИ » АППАРАТУРА

Название: Micro:bit IoT In C
Автор: Harry Fairhead
Издательство: I/O Press
Год: 2016
Страниц: 194
Язык: английский
Формат: pdf (true), djvu
Размер: 10.1 MB

BBC micro: bit может выполнять самые разные функции, в том числе роль мощного устройства IoT. Однако, чтобы получить полный доступ к его функциям и внешним устройствам, вам нужно использовать C, который обеспечивает скорость, необходимую для программ, которые взаимодействуют с внешним миром. Написанная для энтузиастов электроники, книга "micro:bit IoT на C" начинается с первой программы на C «Hello Blinky» с онлайн-компилятором mbed. Далее мы переходим к настольному компьютеру и используем автономный подход с использованием среды разработки yotta и NetBeans, чтобы сделать вещи еще проще.

The BBC micro:bit is capable of taking on a variety of roles including that of a powerful IoT device. In order to gain full access to its features and to external devices, however, you need to use C which delivers the speed crucial to programs that communicate with the outside world.
Written for the electronics enthusiast, micro:bit IoT In C starts with a first “Hello Blinky” C program with the mbed online compiler, we move to the desktop to using an offline approach using the yotta development environment plus NetBeans to make things even easier. Now we are ready to discover how to control the micro:bit’s I/O lines, exploring the basis of using the GPIO. For speed, however, we need to work directly with the raw hardware and also master memory mapping, pulse width modulation and other more sophisticated bus types.

From here we can start connecting sensors using first the I2C bus, then by implementing a custom protocol for a one-wire bus, and eventually adding eight channels of 12-bit AtoD with the SPI bus, which involves overcoming some subtle difficulties. We then look at serial connections, one of the oldest ways of connecting devices but still very useful. The micro: bit lacks WiFi connectivity but using a low-cost device we enable a connection to the Internet via its serial port which allows it to become a server.
To conclude we look at the micro:bit’s LED display. This may only be 5x5, but it is very versatile, especially when you use pulse width modulation to vary the brightness level, something we demonstrate in a classic game, written of course in C.

Скачать Micro:bit IoT In C








Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.