Skip to content

Commit 622a842

Browse files
committed
Filled out Digital Inputs as an example
Needs a video to finish
1 parent 778ba89 commit 622a842

File tree

6 files changed

+49
-2
lines changed

6 files changed

+49
-2
lines changed
270 KB
Loading
20.3 KB
Loading
197 KB
Loading
28.2 KB
Loading
Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
11
= Grove Digital Inputs
2-
:page-toclevels: 1
2+
:page-toclevels: 1
3+
4+
.Overview
5+
:page-toclevels: 2
6+
****
7+
This example uses the grove button module but the source code is also applicable for other similar Grove Modules.
8+
9+
The GPIO Pins used are [D16,D17],[D18,D19],[D20,D21]
10+
11+
image::general\GroveDigitalConnectionsPico.png[]
12+
13+
14+
****
15+
16+
.Hardware Details
17+
:page-toclevels: 2
18+
****
19+
https://wiki.seeedstudio.com/Grove-Dual-Button/#features[Grove Dual Button]
20+
****
21+
22+
.Demo Video
23+
:page-toclevels: 2
24+
****
25+
Here is a video that shows the set-up and running of the Dual Button Digital Inputs
26+
27+
video::0-suR8HejsY[youtube]
28+
29+
****
30+
31+
.Example Code
32+
:page-toclevels: 2
33+
****
34+
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital In.vi
35+
36+
image::images\grove-digital-inputs\GroveDigitalInProject.png[]
37+
38+
This particular VI uses the dual buttons. Select the port for the connected Pico and the Grove connector that the board is plugged into. Press the run arrow.
39+
40+
You should now see the button indicators light up when the corresponding button is pressed. The Indicators use a transparent fill for the off state and a brighter Red or Green for the on state.
41+
42+
Links to various other similar boards are also on the Front Panel.
43+
44+
image::images\grove-digital-inputs\GroveDigitalInFP.png[]
45+
46+
On the block diagram you can see that the selected Grove connector dictates the GPIO Pin and we then set the pin to [In]. Next we loop round and event structure and use the timeout to poll the digital inputs. Pressing Stop will fire the Stop event and exit the loop.
47+
48+
image::images\grove-digital-inputs\GroveDigitalInBD.png[]
49+
****

www/en/modules/ROOT/pages/template.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ video::0-suR8HejsY[youtube]
2929
****
3030
Navigate to >>Scratchpad>>Grove>>blah blah
3131

32-
image::ROOT\images\Template\Template-1.png[]
32+
image::Template\Template-1.png[]
3333
****

0 commit comments

Comments
 (0)