Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이다은
/
raspberry
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
daeunlee
2021-04-22 13:04:41 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3049f5dbf0a87c03d7e350e0663652f3e1652b2
f3049f5d
1 parent
bd2662de
modify
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
assignment/lab2-3-2_new
assignment/lab2-3-2_new.c
assignment/lab2-3-2_new
0 → 100755
View file @
f3049f5
No preview for this file type
assignment/lab2-3-2_new.c
View file @
f3049f5
...
...
@@ -6,7 +6,7 @@ int state = 0;
int
KeypadRead
()
{
int
i
,
keypadnum
=
-
1
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
5
;
i
++
)
{
if
(
!
digitalRead
(
Keypad
[
i
]))
{
state
=
1
;
keypadnum
=
i
;
break
;
...
...
@@ -37,7 +37,7 @@ int main(void)
pinMode
(
LedRed
[
i
],
OUTPUT
);
digitalWrite
(
LedRed
[
i
],
LOW
);
}
for
(
i
=
0
;
i
<
2
;
i
++
)
for
(
i
=
0
;
i
<
5
;
i
++
)
pinMode
(
Keypad
[
i
],
INPUT
);
if
(
wiringPiISR
(
Keypad
[
2
],
INT_EDGE_FALLING
,
&
stop
)
<
0
)
{
return
1
;
...
...
Please
register
or
login
to post a comment