From 46d6914bbb5be8443e5ffd7b4d7c0b4b1bdb2504 Mon Sep 17 00:00:00 2001 From: Foster Irwin Date: Wed, 11 May 2022 16:29:45 -0600 Subject: [PATCH] codeblocks used for diagrams --- docs/software/modules/canned-message.mdx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/software/modules/canned-message.mdx b/docs/software/modules/canned-message.mdx index 9b386368..f2ba46dd 100644 --- a/docs/software/modules/canned-message.mdx +++ b/docs/software/modules/canned-message.mdx @@ -29,17 +29,21 @@ You will need a generic rotary encoder. The types listed below has five legs whe Connect your rotary encoder as follows. The rotary encoder has two rows of legs. One of the rows contains two legs, the other contains three legs. Bottom side view: - B o --- o PRESS - GND o | | - A o --- o GND +``` + B o --- o PRESS +GND o | | + A o --- o GND +``` The two legs is to sense the press action (or push). Connect one of the two to GROUND and the other to a GPIO pin. (No matter which one goes where.) Let's call this connected ports 'PRESS'. The three legs is to sense the rotation action. Connect the middle leg to GROUND and the ones on the side to GPIO pins. Let's call these ports 'A' and 'B', according to the scheme below. - A --|| - GND --||]======== - B --|| +``` +A --|| +GND --||]======== +B --|| +``` Recommended GPIO pins for connecting a rotary encoder.