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:48:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e253f9c8eeb86cad72e87bb9b016072b007e41c6
e253f9c8
1 parent
5ebed37d
a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
midterm4.c
midterm4.c
View file @
e253f9c
...
...
@@ -11,14 +11,9 @@ int time = 0;
int
data
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
int
state
=
2
;
int
KeypadRead
()
{
int
KeypadRead
(){
int
i
,
keypadnum
=
-
1
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
if
(
!
digitalRead
(
Keypad
[
i
]))
{
state
=
1
;
keypadnum
=
i
;
break
;
}
if
(
!
digitalRead
(
Keypad
[
0
]))
{
}
return
keypadnum
;
}
...
...
@@ -56,7 +51,6 @@ void timer() {
}
}
void
stop
()
{
timer
();
state
=
1
;
}
void
reset
()
{
...
...
@@ -106,7 +100,7 @@ int main(){
timer
();
}
}
else
if
(
state
>
0
)
{
else
{
while
(
1
)
{
timer
();
}
...
...
Please
register
or
login
to post a comment