Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
22cbef9a
Commit
22cbef9a
authored
Aug 26, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playing around with the LCD
parent
df87d4e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
main.c
sw/gps/main.c
+4
-6
No files found.
sw/gps/main.c
View file @
22cbef9a
...
...
@@ -72,16 +72,14 @@ int main()
lcd_update
();
for
(;;)
{
GPIO_PinInGet
(
gpioPortA
,
1
)
?
GPIO_PinOutSet
(
gpioPortE
,
11
)
:
GPIO_PinOutClear
(
gpioPortE
,
11
);
i
++
;
lcd_clear
();
gps_get_utc
(
&
yr
,
&
mon
,
&
day
,
&
hr
,
&
min
,
&
sec
);
sprintf
(
tmp
,
"
%d-%d-%d %d:%d:%d
\r\n
"
,
yr
,
mon
,
day
,
hr
,
min
,
sec
);
text
(
&
font_helv11
,
5
,
30
+
i
%
60
,
tmp
);
sprintf
(
tmp
,
"
(%d:%d) %d-%d-%d %d:%d:%d
\r\n
"
,
i
,
gps_fixed
()
,
yr
,
mon
,
day
,
hr
,
min
,
sec
);
text
(
&
font_helv11
,
5
,
30
,
tmp
);
lcd_update
();
i
+=
15
;
for
(
j
=
0
;
j
<
100000
;
j
++
)
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment