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
3b33d355
Commit
3b33d355
authored
Aug 20, 2014
by
Matthieu Cattin
Committed by
Projects
Sep 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: use bigger font for clock.
parent
ea3b42ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
Makefile
sw/burtc_test/Makefile
+6
-0
main.c
sw/burtc_test/main.c
+5
-3
No files found.
sw/burtc_test/Makefile
View file @
3b33d355
...
...
@@ -158,8 +158,14 @@ C_SRC += \
../common/gfx/font_helv11.c
\
../common/gfx/font_helv17.c
\
../common/gfx/font_helv17b.c
\
../common/gfx/font_helv22b.c
\
../common/gfx/font_helv29.c
\
../common/gfx/font_helv38b.c
\
../common/gfx/font_luct38.c
\
../common/gfx/font_xm4x5.c
\
../common/gfx/font_xm4x6.c
\
../common/gfx/font_xm5x8.c
\
../common/gfx/font_xm16x25b.c
\
../common/udelay.c
\
../common/delay.c
\
../common/drivers/i2cdrv.c
\
...
...
sw/burtc_test/main.c
View file @
3b33d355
...
...
@@ -166,7 +166,7 @@ int main(void)
err
=
max17047_set_config
(
0x2250
);
//GPIO_PinOutSet(gpioPortE, 11);
//
GPIO_PinOutSet(gpioPortE, 12);
GPIO_PinOutSet
(
gpioPortE
,
12
);
while
(
1
)
{
...
...
@@ -184,8 +184,10 @@ int main(void)
lcd_clear
();
sprintf
(
str
,
"%02d:%02d:%02d.%1d"
,
hours
,
minutes
,
milliseconds
/
1000
,
(
milliseconds
%
1000
)
/
100
);
text
(
&
font_helv17b
,
5
,
20
,
str
);
sprintf
(
str
,
"%02d:%02d"
,
hours
,
minutes
);
text
(
&
font_helv38b
,
5
,
20
,
str
);
sprintf
(
str
,
"%02d.%1d"
,
milliseconds
/
1000
,
(
milliseconds
%
1000
)
/
100
);
text
(
&
font_helv22b
,
89
,
34
,
str
);
sprintf
(
str
,
"light: %3.3f lux"
,
lux
);
...
...
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