Structures, Unions, and Data Storage

This chapter takes a little deeper look at some of your options for storing data and in serial input/output (I/O) operations. You will also learn some new data structures that are available to you and how they can be used to your advantage in your programs. More specifically, in this chapter you learn about:

  • The struct keyword
  • The union keyword
  • How to use EEPROM memory in your programs
  • Other data storage options

As you saw in Table 1-1, µc boards have limited amounts of memory available to you. We have talked about flash and SRAM memory in previous chapters, but we haven’t had too much to say ...

Get Beginning C for Arduino: Learn C Programming for the Arduino and Compatible Microcontrollers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.