Arrays and Memory

  • Evans B
N/ACitations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Arrays are an essential part of the Arduino programmer’s toolbox. They are sometimes such a necessity that we have already thrown a few in our sketches and projects here and there. Arrays are essentially lists of variables that can contain multiple elements of the same data type. They can be used to store a list of pin numbers, sensor values, character strings, and even bitmaps for animations. While we could have introduced arrays earlier when we discussed variables and data types, the topic truly requires its own chapter to best understand how to use them. Because arrays can consume a large amount of the available memory on the Arduino microcontroller, we should also look at the types of memory space on the microcontroller chip and methods for how to access them, in addition to discussing how to declare arrays, accessing and using arrays, as well as using character and multidimensional arrays. But before tackling arrays in detail, let’s jump in with our eighth project, Decision Machine, so that when we get to dicussing arrays in more depth you’ll have already seen them in action.

Cite

CITATION STYLE

APA

Evans, B. (2011). Arrays and Memory. In Beginning Arduino Programming (pp. 121–142). Apress. https://doi.org/10.1007/978-1-4302-3778-5_8

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free