This example consists of two parts:
- The Android application that makes use of the USB API
A simple Android app that let’s you regulate the brightness of an LED on the Arduino using a slider. It also features a button to “enumerate” the USB device. - Firmware for the Arduino that does some serial I/O with the Android app
Very basic firmware for the Arduino. An interrupt is generated when a new byte is received. The received data controls the brightness of the Arduino’s on-board LED.
(implemented via usleep-style software pwm in the main loop).
Comments