Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
0ec133cf
Commit
0ec133cf
authored
Jun 16, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable LED blink
parent
c3909d75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
+5
-0
milkv/overlay/mnt/system/blink.sh
milkv/overlay/mnt/system/blink.sh
+19
-0
No files found.
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
View file @
0ec133cf
...
@@ -15,9 +15,14 @@ case "$1" in
...
@@ -15,9 +15,14 @@ case "$1" in
echo
"Starting app..."
echo
"Starting app..."
if
[
-f
$SYSTEMPATH
/blink.sh
]
;
then
.
$SYSTEMPATH
/blink.sh &
fi
if
[
-f
$SYSTEMPATH
/rndis.sh
]
;
then
if
[
-f
$SYSTEMPATH
/rndis.sh
]
;
then
.
$SYSTEMPATH
/rndis.sh &
.
$SYSTEMPATH
/rndis.sh &
fi
fi
if
[
-f
$USERDATAPATH
/auto.sh
]
;
then
if
[
-f
$USERDATAPATH
/auto.sh
]
;
then
usleep 30000
usleep 30000
.
$USERDATAPATH
/auto.sh &
.
$USERDATAPATH
/auto.sh &
...
...
milkv/overlay/mnt/system/blink.sh
0 → 100755
View file @
0ec133cf
#!/bin/sh
LED_GPIO
=
/sys/class/gpio/gpio440
if
test
-d
$LED_GPIO
;
then
echo
"GPIO440 already exported"
else
echo
440
>
/sys/class/gpio/export
fi
echo
out
>
$LED_GPIO
/direction
while
true
;
do
echo
0
>
$LED_GPIO
/value
sleep
0.5
echo
1
>
$LED_GPIO
/value
sleep
0.5
done
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