Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
897c8cd1
Commit
897c8cd1
authored
Apr 24, 2015
by
devsaurus
Browse files
further reduce memory for u8g graphics test
parent
4cd2b554
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/u8glib/u8g_graphics_test.lua
View file @
897c8cd1
...
@@ -91,17 +91,6 @@ function ascii_1()
...
@@ -91,17 +91,6 @@ function ascii_1()
end
end
end
end
function
ascii_2
()
local
x
,
y
,
s
disp
:
drawStr
(
0
,
0
,
"ASCII page 2"
)
for
y
=
0
,
5
,
1
do
for
x
=
0
,
15
,
1
do
s
=
y
*
16
+
x
+
160
disp
:
drawStr
(
x
*
7
,
y
*
10
+
10
,
string.char
(
s
))
end
end
end
function
extra_page
(
a
)
function
extra_page
(
a
)
disp
:
drawStr
(
0
,
12
,
"setScale2x2"
)
disp
:
drawStr
(
0
,
12
,
"setScale2x2"
)
disp
:
setScale2x2
()
disp
:
setScale2x2
()
...
@@ -131,8 +120,6 @@ function draw(draw_state)
...
@@ -131,8 +120,6 @@ function draw(draw_state)
elseif
(
component
==
6
)
then
elseif
(
component
==
6
)
then
ascii_1
()
ascii_1
()
elseif
(
component
==
7
)
then
elseif
(
component
==
7
)
then
ascii_2
()
elseif
(
component
==
8
)
then
extra_page
(
bit
.
band
(
draw_state
,
7
))
extra_page
(
bit
.
band
(
draw_state
,
7
))
end
end
end
end
...
...
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