Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MiniMatrixRPi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MiniMatrixTeam
MiniMatrixRPi
Commits
cc1021e0
Commit
cc1021e0
authored
4 years ago
by
ftomi
Browse files
Options
Downloads
Patches
Plain Diff
Service added
parent
e5a3b4c0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test_anim/Makefile
+3
-0
3 additions, 0 deletions
test_anim/Makefile
test_anim/minimatrixrpi.cpp
+4
-4
4 additions, 4 deletions
test_anim/minimatrixrpi.cpp
test_anim/minimatrixrpi.service
+12
-0
12 additions, 0 deletions
test_anim/minimatrixrpi.service
with
19 additions
and
4 deletions
test_anim/Makefile
+
3
−
0
View file @
cc1021e0
...
...
@@ -23,3 +23,6 @@ $(PROJECT): $(PROJECT).o $(COMPONENTS_O)
clean
:
rm
-f
$(
PROJECT
)
*
.o
install
:
sudo cp
minimatrixrpi /usr/bin/
sudo cp
minimatrixrpi.service /etc/systemd/system/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test_anim/minimatrixrpi.cpp
+
4
−
4
View file @
cc1021e0
...
...
@@ -25,10 +25,10 @@ int main()
{
spisender
.
updateFrame
(
matrixserver
.
getFrame
());
}
if
(
poll
(
&
mypoll
,
1
,
0
))
{
break
;
}
//
if (poll(&mypoll, 1, 0))
//
{
//
break;
//
}
}
printf
(
"Ending
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
test_anim/minimatrixrpi.service
0 → 100644
+
12
−
0
View file @
cc1021e0
[Unit]
Description
=
MiniMatrix RPi Server
[Service]
User
=
pi
WorkingDirectory
=
/usr/bin
ExecStart
=
/usr/bin/minimatrixrpi
Restart
=
always
RestartSec
=
5
[Install]
WantedBy
=
multi-user.target
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment