Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/hobgoblin-helloworld-touch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions tutorials/hobgoblin-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ The [Harp Hobgoblin](https://github.com/harp-tech/device.hobgoblin) is a simple

## Testing the device

![Hobgoblin Touch](../images/hobgoblin-helloworld-touch.png){width=400}
*<small>Hobgoblin wiring diagram for touch sensor</small>*

:::workflow
![Hobgoblin Hello World](~/workflows/hobgoblin-helloworld.bonsai)
:::

- Connect a push button to analog input channel `0` (`GP26`) on the `Hobgoblin`.
- Connect a touch sensor to analog input channel `0` (`GP26`) on the `Hobgoblin`.
- Set the `PortName` property of the [`Hobgoblin`](xref:Harp.Hobgoblin.Device) operator to the communications port of the `Hobgoblin` (e.g. COM7).
- Run the workflow and double-click the output of `AnalogInput0`. The value should change when the push button is pressed.
- Run the workflow and double-click the output of `AnalogInput0`. The value should change when the touch sensor is pressed.

## Installing harp-python

Expand Down