You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial-2-basic-io/06-Homework.md
+15-4
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,21 @@ And you should print `Input Detected` when the switch is pressed and print nothi
33
33
You may refer to the last notes about how to set up GPIO Pins, keep in mind that the example there is setting up `GPIO Output` while here you are doing `GPIO_Input`
34
34
35
35
36
-
Notes for Setting up Pins:
37
-
- Please plug the limit switch to those pins on the right hand side instead of left hand side.
38
-
- Correct Pin Naming Picture:
39
-

36
+
>Notes for Setting up Pins:
37
+
>- Please plug the limit switch to those pins on the right hand side instead of left hand side.
38
+
>- Although you may see `PC6`, `PC7`, `PC8`, `PC9` are occiuped by CAM, but as we don't have embed camera this year, you can use them for other purpose, e.g. ~~finish homework~~\
39
+
> To remove a pins, you can do by simpily do like this
40
+
> 1. Click the pins you want to remove, click the current functionality the pins is using:\
41
+
> 
42
+
> 2. After you remove the current functionality, the pins should go grey like this:\
43
+
> 
44
+
> 3. You can choose the functionality of this pins now:
45
+
> 4. Follow the pins setup manual!
46
+
>- For the input mode, you should set it as "PULL-UP" instead of the "No Pull Up No Pull Down", you can change it in the panel where you name your pin in the CubeMX and also your are using `GPIO Input` instead of `GPIO Output`\
47
+
If you want to know more what is PULL UP, you can take a look to the further readong in `05-Setting-UP-GPIO.md`
0 commit comments