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:54:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dc26ffa9d1aedc6da4ca908ebb70503c4436189
6dc26ffa
1 parent
0c78a744
a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
midterm4.c
midterm4.c
View file @
6dc26ff
...
...
@@ -13,8 +13,10 @@ int state = 2;
int
KeypadRead
(){
int
i
,
keypadnum
=
-
1
;
if
(
!
digitalRead
(
Keypad
[
0
]))
if
(
!
digitalRead
(
Keypad
[
0
]))
{
keypadnum
=
0
;
state
=
0
;
}
return
keypadnum
;
}
void
FndSelect
(
int
position
){
...
...
@@ -82,7 +84,7 @@ int main(){
if
(
wiringPiISR
(
Keypad
[
2
],
INT_EDGE_FALLING
,
&
reset
)
<
0
)
{
return
1
;
}
if
(
!
digitalRead
(
Keypad
[
0
]))
{
if
(
!
digitalRead
(
Keypad
[
0
])
&&
state
==
0
)
{
state
=
0
;
unsigned
long
prevtime
=
millis
();
while
(
1
)
{
...
...
Please
register
or
login
to post a comment