Skip to content

Commit

Permalink
sample-nativepio: add missing schematics
Browse files Browse the repository at this point in the history
Change-Id: If035315abdc5b7369ae11dbc350f3e3223bbcb51
  • Loading branch information
proppy committed Feb 7, 2017
1 parent bd93d55 commit 4b94737
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=======

Expand Down
Binary file added blink/edison_schematics.fzz
Binary file not shown.
Binary file added blink/edison_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blink/rpi3_schematics.fzz
Binary file not shown.
Binary file added blink/rpi3_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added button/edison_schematics.fzz
Binary file not shown.
Binary file added button/edison_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added button/rpi3_schematics.fzz
Binary file not shown.
Binary file added button/rpi3_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added speaker/edison_schematics.fzz
Binary file not shown.
Binary file added speaker/edison_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added speaker/rpi3_schematics.fzz
Binary file not shown.
Binary file added speaker/rpi3_schematics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b94737

Please sign in to comment.