Chapter 6

Further Programming Techniques

Chapter Outline

6.1 The Benefits of Considered Program Design and Structure

6.2 Functions

6.3 Program design

6.3.1 Using Flowcharts to Define Code Structure

6.3.2 Pseudocode

6.4 Working with Functions on the mbed

6.4.1 Implementing a Seven-Segment Display Counter

6.4.2 Function Reuse

6.4.3 A More Complex Program using Functions

6.5 Using Multiple Files in C/C++

6.5.1 Overview of the C/C++ Program Compilation Process

6.5.2 The C/C++ Preprocessor and Preprocessor Directives

6.5.3 The #ifndef Directive

6.5.4 Using mbed Objects Globally

6.6 Modular Program Example

Chapter Review

Quiz

6.1 The Benefits of Considered Program Design and Structure

There are numerous challenges when tackling an embedded system ...

Get Fast and Effective Embedded Systems Design 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.