O'Reilly logo

Beginning Android ADK with Arduino by Mario Böhmer

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

C H A P T E R  4

Inputs

In the context of the ADK board, inputs are pins and connectors on the board with which you can receive data or measurements. Although the common USB-type connectors are technically also inputs, this chapter will only concentrate on the inputs with which you can take measurements or detect digital state changes. The inputs in that sense are the pins of the ADK board.

The majority of the pins on an ADK board are capable of being used as input pins. You remember that digital pins can be configured to work as outputs and inputs. Digital pins are configured as input pins by default. You can set them into input mode by using the pinMode method, but you don’t necessarily need to.

Additionally, an ADK board has dedicated analog ...

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