Chapter 6

Further Programming Techniques


A number of further programming techniques are introduced in this chapter, which will allow the reader to develop more advanced mbed projects throughout the remainder of the book. In particular, the implementation of functions is discussed, and the advantages of using functions to enhance program flow control, readability, and efficient programming are evaluated. Modular programming techniques are also described, and the advantages and benefits of splitting a project into multiple C source and header files are considered. The program compilation process is also discussed to clarify the purpose of the methods used in modular programming. Bespoke libraries are discussed, and the process for importing ...

Get Fast and Effective Embedded Systems Design, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.