mirror of
https://github.com/cwyark/ameba-sdk-gcc-make.git
synced 2026-07-14 08:25:38 +00:00
first commit and add gitignore, README.md
This commit is contained in:
commit
760756ba2c
1861 changed files with 709236 additions and 0 deletions
14
project/realtek_ameba1_va0_example/example_sources/gpio/readme.txt
Executable file
14
project/realtek_ameba1_va0_example/example_sources/gpio/readme.txt
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
Example Description
|
||||
|
||||
This example describes how to use GPIO read/write by mbed api.
|
||||
|
||||
Requirement Components:
|
||||
a LED
|
||||
a push button
|
||||
|
||||
Pin name PC_4 and PC_5 map to GPIOC_4 and GPIOC_5:
|
||||
- PC_4 as input with internal pull-high, connect a push button to this pin and ground.
|
||||
- PC_5 as output, connect a LED to this pin and ground.
|
||||
|
||||
In this example, the LED is on when the push button is pressed.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue