Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
60c104ef
Commit
60c104ef
authored
Feb 10, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
parents
2bd841fa
acf4e5ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
68 deletions
+48
-68
marlinkimbra_v0_6_2.HMI
MK/Nextion FW/marlinkimbra_v0_6_2.HMI
+0
-0
marlinkimbra_v0_6_3.tft
MK/Nextion FW/marlinkimbra_v0_6_3.tft
+0
-0
Nextion_lcd.cpp
MK/module/nextion/Nextion_lcd.cpp
+48
-68
No files found.
MK/Nextion FW/marlinkimbra_v0_6_2.HMI
deleted
100644 → 0
View file @
2bd841fa
File deleted
MK/Nextion FW/marlinkimbra_v0_6_
2
.tft
→
MK/Nextion FW/marlinkimbra_v0_6_
3
.tft
View file @
60c104ef
No preview for this file type
MK/module/nextion/Nextion_lcd.cpp
View file @
60c104ef
...
...
@@ -27,33 +27,51 @@
NexPage
Psetup
=
NexPage
(
5
,
0
,
"setup"
);
NexPage
Pmove
=
NexPage
(
6
,
0
,
"move"
);
// Text
// Page 0 Start
NexTimer
startimer
=
NexTimer
(
0
,
1
,
"tm0"
);
// Page 1 Info
NexText
Hotend0
=
NexText
(
1
,
2
,
"t0"
);
NexText
Hotend1
=
NexText
(
1
,
4
,
"t1"
);
NexText
Hotend21
=
NexText
(
1
,
5
,
"h2"
);
NexText
Hotend2
=
NexText
(
1
,
6
,
"t2"
);
NexText
LedStatus
=
NexText
(
1
,
7
,
"t4"
);
NexText
LedCoord
=
NexText
(
1
,
8
,
"t5"
);
NexText
set0
=
NexText
(
2
,
2
,
"set0"
);
NexText
sdrow0
=
NexText
(
4
,
3
,
"t0"
);
NexText
sdrow1
=
NexText
(
4
,
4
,
"t1"
);
NexText
sdrow2
=
NexText
(
4
,
5
,
"t2"
);
NexText
sdrow3
=
NexText
(
4
,
6
,
"t3"
);
NexText
sdrow4
=
NexText
(
4
,
7
,
"t4"
);
NexText
sdrow5
=
NexText
(
4
,
8
,
"t5"
);
NexText
sdfolder
=
NexText
(
4
,
23
,
"sdfolder"
);
// Picture
NexPicture
Menu
=
NexPicture
(
1
,
9
,
"p0"
);
NexPicture
MSD
=
NexPicture
(
1
,
10
,
"p1"
);
NexPicture
MSetup
=
NexPicture
(
1
,
11
,
"p2"
);
NexPicture
Hend0
=
NexPicture
(
1
,
12
,
"p3"
);
NexHotspot
hot0
=
NexHotspot
(
1
,
13
,
"hot0"
);
NexPicture
Hend1
=
NexPicture
(
1
,
14
,
"p4"
);
NexHotspot
hot1
=
NexHotspot
(
1
,
15
,
"hot1"
);
NexPicture
Hend2
=
NexPicture
(
1
,
16
,
"p5"
);
NexHotspot
hot2
=
NexHotspot
(
1
,
17
,
"hot2"
);
NexPicture
Fanpic
=
NexPicture
(
1
,
18
,
"p6"
);
NexVar
Hotend
=
NexVar
(
1
,
19
,
"he"
);
NexVar
Bed
=
NexVar
(
1
,
20
,
"bed"
);
NexTimer
fantimer
=
NexTimer
(
1
,
22
,
"tm0"
);
NexProgressBar
sdbar
=
NexProgressBar
(
1
,
23
,
"j0"
);
NexPicture
NPlay
=
NexPicture
(
1
,
24
,
"p7"
);
NexPicture
NStop
=
NexPicture
(
1
,
25
,
"p8"
);
// Page 2 Temp
NexText
set0
=
NexText
(
2
,
2
,
"set0"
);
NexHotspot
m11
=
NexHotspot
(
2
,
14
,
"m11"
);
NexHotspot
tup
=
NexHotspot
(
2
,
15
,
"tup"
);
NexHotspot
tdown
=
NexHotspot
(
2
,
16
,
"tdown"
);
NexVar
set1
=
NexVar
(
2
,
17
,
"set1"
);
// Page 3 Menu
NexPicture
Exit1
=
NexPicture
(
3
,
4
,
"p3"
);
// Page 4 SDCard
NexSlider
sdlist
=
NexSlider
(
4
,
1
,
"h0"
);
NexText
sdrow0
=
NexText
(
4
,
3
,
"t0"
);
NexText
sdrow1
=
NexText
(
4
,
4
,
"t1"
);
NexText
sdrow2
=
NexText
(
4
,
5
,
"t2"
);
NexText
sdrow3
=
NexText
(
4
,
6
,
"t3"
);
NexText
sdrow4
=
NexText
(
4
,
7
,
"t4"
);
NexText
sdrow5
=
NexText
(
4
,
8
,
"t5"
);
NexPicture
Folder0
=
NexPicture
(
4
,
9
,
"p0"
);
NexPicture
Folder1
=
NexPicture
(
4
,
10
,
"p1"
);
NexPicture
Folder2
=
NexPicture
(
4
,
11
,
"p2"
);
...
...
@@ -62,7 +80,14 @@
NexPicture
Folder5
=
NexPicture
(
4
,
14
,
"p5"
);
NexPicture
Folderup
=
NexPicture
(
4
,
15
,
"p6"
);
NexPicture
Exit2
=
NexPicture
(
4
,
16
,
"p7"
);
NexText
sdfolder
=
NexText
(
4
,
17
,
"sdfolder"
);
NexHotspot
ScrollUp
=
NexHotspot
(
4
,
21
,
"m0"
);
NexHotspot
ScrollDown
=
NexHotspot
(
4
,
22
,
"m1"
);
// Page 5 Setup
NexPicture
Exit3
=
NexPicture
(
5
,
4
,
"p3"
);
// Page 6 Move
NexPicture
XYHome
=
NexPicture
(
6
,
5
,
"p4"
);
NexPicture
XYUp
=
NexPicture
(
6
,
6
,
"p5"
);
NexPicture
XYRight
=
NexPicture
(
6
,
7
,
"p6"
);
...
...
@@ -71,39 +96,6 @@
NexPicture
ZHome
=
NexPicture
(
6
,
10
,
"p9"
);
NexPicture
ZUp
=
NexPicture
(
6
,
11
,
"p10"
);
NexPicture
ZDown
=
NexPicture
(
6
,
12
,
"p11"
);
// Progress Bar
NexProgressBar
sdbar
=
NexProgressBar
(
1
,
23
,
"j0"
);
// Slider
NexSlider
sdlist
=
NexSlider
(
4
,
1
,
"h0"
);
// Wafeform
// Touch area
NexHotspot
hot0
=
NexHotspot
(
1
,
13
,
"hot0"
);
NexHotspot
hot1
=
NexHotspot
(
1
,
15
,
"hot1"
);
NexHotspot
hot2
=
NexHotspot
(
1
,
17
,
"hot2"
);
NexHotspot
m11
=
NexHotspot
(
2
,
14
,
"m11"
);
NexHotspot
tup
=
NexHotspot
(
2
,
16
,
"tup"
);
NexHotspot
tdown
=
NexHotspot
(
2
,
17
,
"tdown"
);
NexHotspot
ScrollUp
=
NexHotspot
(
4
,
27
,
"m0"
);
NexHotspot
ScrollDown
=
NexHotspot
(
4
,
28
,
"m1"
);
// Timer
NexTimer
startimer
=
NexTimer
(
0
,
1
,
"tm0"
);
NexTimer
fantimer
=
NexTimer
(
1
,
22
,
"tm0"
);
// Variable
NexVar
Hotend
=
NexVar
(
1
,
19
,
"he"
);
NexVar
Bed
=
NexVar
(
1
,
20
,
"bed"
);
NexVar
set1
=
NexVar
(
2
,
17
,
"set1"
);
NexVar
filename0
=
NexVar
(
4
,
19
,
"va0"
);
NexVar
filename1
=
NexVar
(
4
,
20
,
"va1"
);
NexVar
filename2
=
NexVar
(
4
,
21
,
"va2"
);
NexVar
filename3
=
NexVar
(
4
,
22
,
"va3"
);
NexVar
filename4
=
NexVar
(
4
,
23
,
"va4"
);
NexVar
filename5
=
NexVar
(
4
,
24
,
"va5"
);
NexVar
movecmd
=
NexVar
(
6
,
18
,
"vacmd"
);
NexTouch
*
nex_listen_list
[]
=
...
...
@@ -175,17 +167,6 @@
NULL
};
NexVar
*
filename_list
[]
=
{
&
filename0
,
&
filename1
,
&
filename2
,
&
filename3
,
&
filename4
,
&
filename5
,
NULL
};
void
setpageInfo
()
{
Pinfo
.
show
();
...
...
@@ -225,7 +206,6 @@
row_list
[
row
]
->
attachPop
(
sdfilePopCallback
,
row_list
[
row
]);
}
row_list
[
row
]
->
setText
(
filename
);
filename_list
[
row
]
->
setText
(
filename
);
}
static
void
setrowsdcard
(
uint32_t
number
=
0
)
{
...
...
@@ -302,17 +282,17 @@
memset
(
buffer
,
0
,
sizeof
(
buffer
));
if
(
ptr
==
&
sdrow0
)
filename
0
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
0
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow1
)
filename
1
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
1
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow2
)
filename
2
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
2
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow3
)
filename
3
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
3
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow4
)
filename
4
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
4
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow5
)
filename
5
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
5
.
getText
(
buffer
,
sizeof
(
buffer
));
menu_action_sdfile
(
buffer
);
}
...
...
@@ -321,17 +301,17 @@
memset
(
buffer
,
0
,
sizeof
(
buffer
));
if
(
ptr
==
&
sdrow0
)
filename
0
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
0
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow1
)
filename
1
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
1
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow2
)
filename
2
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
2
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow3
)
filename
3
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
3
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow4
)
filename
4
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
4
.
getText
(
buffer
,
sizeof
(
buffer
));
else
if
(
ptr
==
&
sdrow5
)
filename
5
.
getText
(
buffer
,
sizeof
(
buffer
));
sdrow
5
.
getText
(
buffer
,
sizeof
(
buffer
));
menu_action_sddirectory
(
buffer
);
}
...
...
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