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
daeun
2021-04-23 14:39:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce45d3bccfbe55bb803cd0a53884589c965dcb23
ce45d3bc
1 parent
25336684
mid
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
midterm4.c
midterm4.c
View file @
ce45d3b
...
...
@@ -79,16 +79,15 @@ void init() {
}
for
(
i
=
0
;
i
<
3
;
i
++
)
pinMode
(
Keypad
[
i
],
INPUT
);
}
int
main
(){
init
();
if
(
wiringPiISR
(
Keypad
[
1
],
INT_EDGE_FALLING
,
&
stop
)
<
0
)
{
return
1
;
}
if
(
wiringPiISR
(
Keypad
[
2
],
INT_EDGE_FALLING
,
&
reset
)
<
0
)
{
return
1
;
}
}
int
main
(){
init
();
if
(
KeypadRead
()
==
0
)
{
state
=
0
;
unsigned
long
prevtime
=
millis
();
...
...
Please
register
or
login
to post a comment