Skip to content

Commit bec5980

Browse files
simplify the digital input section
- set all the content in a sigle file
1 parent d47c2f8 commit bec5980

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

www/en/modules/ROOT/nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
* xref:analog-inputs-nav.adoc[Analog Input Examples]
66
* xref:analog-outputs-nav.adoc[Analog Output Examples]
7-
* xref:digital-inputs-nav.adoc[Digital Input Examples]
7+
* xref:digital-inputs.adoc[Digital Input Examples]
88
* xref:digital-outputs-nav.adoc[Digital Output Examples]
99
1010
* xref:gadgets-nav.adoc[Misc Gadgets Examples]

www/en/modules/ROOT/pages/digital-inputs-nav.adoc

Lines changed: 0 additions & 10 deletions
This file was deleted.

www/en/modules/ROOT/pages/grove-digital-inputs.adoc renamed to www/en/modules/ROOT/pages/digital-inputs.adoc

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
= Grove Digital Inputs
2-
:page-toclevels: 1
2+
:page-toclevels: 2
33

44
== Overview
55

6+
A digital input can be thought of as the reading from a button, a switch or a digital sensor. These examples use the GPIO Pins [D16,D17],[D18,D19],[D20,D21] that correspond to connectors D16,D18 and D20 on the grove hat.
7+
8+
image::GroveDigitalConnectionsPico.png[]
9+
10+
== Example
11+
12+
=== Overview
13+
614
This example uses the grove button module but the source code is also applicable for other similar Grove Modules.
715

816
The GPIO Pins used are [D16,D17],[D18,D19],[D20,D21]
917

1018
image::GroveDigitalConnectionsPico.png[]
1119

1220

13-
== Hardware Details
21+
=== Hardware Details
1422

1523
https://wiki.seeedstudio.com/Grove-Dual-Button/#features[Grove Dual Button]
1624

1725

18-
== Demo Video
26+
=== Demo Video
1927

2028

2129
Here is a video that shows the set-up and running of the Dual Button Digital Inputs
2230

2331
video::ViA9pmmxI2Q[youtube]
2432

2533

26-
== Example Code
34+
=== Example Code
2735

2836
Navigate to menu:Scratchpad[Grove > Digital Inputs > Grove Digital In.vi]
2937

@@ -39,4 +47,4 @@ image::GroveDigitalInFP.png[]
3947

4048
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.
4149

42-
image::GroveDigitalInBD.png[]
50+
image::GroveDigitalInBD.png[]

0 commit comments

Comments
 (0)