CHAPTER 10

images

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 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.