O'Reilly logo

Arduino iOS Blueprints by Fabrizio Boco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Arduino code

The full code of this project can be downloaded from https://www.packtpub.com/books/content/support.

For a better understanding of the explanations in the next paragraphs, open the downloaded code while reading them.

In this project, we are going to use EEPROM to store PINS. In fact, this memory doesn't lose its content when it's not powered.

To store a PIN, we use the first character to indicate whether it is used or not and the last five characters to store the actual PIN (which is exactly five characters long). PINs are stored sequentially in EEPROM, starting from address 0.

Setup code

Please refer to the downloaded code. Since the setup code is quite simple, it doesn't require a detailed explanation.

The setup code is not much different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required