買這商品的人也買了...
-
$320$288 -
$194遊戲開發入門:數學和物理
-
$454Arduino 編程 : 實現夢想的工具和技術 (Arduino Sketches: Tools and Techniques for Programming Wizardry)
-
$650$507 -
$360$324 -
$266Arduino 編程從入門到進階實戰
-
$1,320Cognitive Virtual Assistants Using Google Dialogflow: Develop Complex Cognitive Bots Using the Google Dialogflow Platform
-
$458C# 精彩編程 200例
-
$352Arduino 項目案例:遊戲開發
-
$180Rhino 5.0 產品造型設計立體化實例教程 (附微課視頻)
-
$750$675 -
$500$390 -
$400$340 -
$880$695 -
$534$507 -
$250Rhino 7 犀利建模
-
$280$252 -
$354$336 -
$690$545 -
$699$594 -
$534$507 -
$662中文版Rhino 7完全自學教程
-
$480$360 -
$348$331 -
$1,510$1,435
相關主題
商品描述
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.