Skip to content

Commit 2583ad6

Browse files
2 parents 94caaa8 + b3d2038 commit 2583ad6

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

tutorial-2-basic-io/06-Homework.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,21 @@ And you should print `Input Detected` when the switch is pressed and print nothi
3333
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`
3434

3535

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-
![](./image/Mainboard_pin.jpg)
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+
> ![](./image/remove_pin_1.png)
42+
> 2. After you remove the current functionality, the pins should go grey like this:\
43+
> ![](./image/remove_pin_2.png)
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`
48+
> ![](./image/PC6%20Config.png)
49+
>- Correct Pin Naming Picture:
50+
> ![](./image/Mainboard_pin.jpg)
4051
---
4152

4253
## Q2: Tutorial 2 Homework
10.4 KB
Loading
13.2 KB
Loading
1.5 KB
Loading

0 commit comments

Comments
 (0)