diff --git a/README.md b/README.md index 0a4cc07..2261b8e 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,39 @@ Blink ```bash ./gradlew blink:installDebug - adb shell am start com.example.androidthings.simplepio/.BlinkActivity + adb shell am start com.example.androidthings.nativepio/android.app.NativeActivity ``` Blinks an LED connected to a GPIO pin. +Button +------ + +![Schematics for Intel Edison](button/edison_schematics.png) +![Schematics for Raspberry Pi 3](button/rpi3_schematics.png) + +```bash + ./gradlew button:installDebug + adb shell am start com.example.androidthings.nativepio/android.app.NativeActivity +``` + +Logs to logcat when a button connected to a GPIO pin is pressed. Make sure you +use a pull-down or pull-up resistor to avoid fluctuation. + +Speaker +------- + +![Schematics for Intel Edison](speaker/edison_schematics.png) +![Schematics for Raspberry Pi 3](speaker/rpi3_schematics.png) + +```bash + ./gradlew speaker:installDebug + adb shell am start com.example.androidthings.nativepio/android.app.NativeActivity +``` + +Plays an annoying alarm sound on the PWM speaker. Stop it by turning off the +Raspberry Pi. + License ======= diff --git a/blink/edison_schematics.fzz b/blink/edison_schematics.fzz new file mode 100644 index 0000000..9d40987 Binary files /dev/null and b/blink/edison_schematics.fzz differ diff --git a/blink/edison_schematics.png b/blink/edison_schematics.png new file mode 100644 index 0000000..5c076eb Binary files /dev/null and b/blink/edison_schematics.png differ diff --git a/blink/rpi3_schematics.fzz b/blink/rpi3_schematics.fzz new file mode 100644 index 0000000..c901e84 Binary files /dev/null and b/blink/rpi3_schematics.fzz differ diff --git a/blink/rpi3_schematics.png b/blink/rpi3_schematics.png new file mode 100644 index 0000000..f41456b Binary files /dev/null and b/blink/rpi3_schematics.png differ diff --git a/button/edison_schematics.fzz b/button/edison_schematics.fzz new file mode 100644 index 0000000..4a8be1e Binary files /dev/null and b/button/edison_schematics.fzz differ diff --git a/button/edison_schematics.png b/button/edison_schematics.png new file mode 100644 index 0000000..e3f2b3a Binary files /dev/null and b/button/edison_schematics.png differ diff --git a/button/rpi3_schematics.fzz b/button/rpi3_schematics.fzz new file mode 100644 index 0000000..8f98426 Binary files /dev/null and b/button/rpi3_schematics.fzz differ diff --git a/button/rpi3_schematics.png b/button/rpi3_schematics.png new file mode 100644 index 0000000..8a0ea5c Binary files /dev/null and b/button/rpi3_schematics.png differ diff --git a/speaker/edison_schematics.fzz b/speaker/edison_schematics.fzz new file mode 100644 index 0000000..f5fec2c Binary files /dev/null and b/speaker/edison_schematics.fzz differ diff --git a/speaker/edison_schematics.png b/speaker/edison_schematics.png new file mode 100644 index 0000000..ca805dc Binary files /dev/null and b/speaker/edison_schematics.png differ diff --git a/speaker/rpi3_schematics.fzz b/speaker/rpi3_schematics.fzz new file mode 100644 index 0000000..9301b52 Binary files /dev/null and b/speaker/rpi3_schematics.fzz differ diff --git a/speaker/rpi3_schematics.png b/speaker/rpi3_schematics.png new file mode 100644 index 0000000..35b07db Binary files /dev/null and b/speaker/rpi3_schematics.png differ