Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spicy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duaa Alaali
spicy
Commits
ba1ebfb3
Commit
ba1ebfb3
authored
5 years ago
by
Neil Gershenfeld
Browse files
Options
Downloads
Patches
Plain Diff
test node decode
parent
aa4c1576
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Urumbu/python/serialblink.D11C.ino
+2
-2
2 additions, 2 deletions
Urumbu/python/serialblink.D11C.ino
Urumbu/python/serialtimetest.py
+2
-2
2 additions, 2 deletions
Urumbu/python/serialtimetest.py
with
4 additions
and
4 deletions
Urumbu/python/serialblink.D11C.ino
+
2
−
2
View file @
ba1ebfb3
...
...
@@ -20,11 +20,11 @@ void loop() {
c
=
Serial
.
read
();
if
(
c
==
0
)
{
REG_PORT_OUT0
|=
LED
;
// turn on LED
delay
(
1
);
// delay
REG_PORT_OUT0
&=
~
LED
;
// turn off LED
delay
(
1
);
// delay
}
else
if
(
c
==
255
)
{
REG_PORT_OUT0
|=
LED
;
// turn on LED
REG_PORT_OUT0
&=
~
LED
;
// turn off LED
REG_PORT_OUT0
|=
LED
;
// turn on LED
REG_PORT_OUT0
&=
~
LED
;
// turn off LED
}
...
...
This diff is collapsed.
Click to expand it.
Urumbu/python/serialtimetest.py
+
2
−
2
View file @
ba1ebfb3
...
...
@@ -25,8 +25,8 @@ def handler(signum,stack):
flag
=
0
signal
.
signal
(
signal
.
SIGALRM
,
handler
)
#signal.setitimer(signal.ITIMER_REAL,0.00025,0.00025)
#
signal.setitimer(signal.ITIMER_REAL,0.0002,0.0002)
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0.01
,
0.01
)
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0.0002
,
0.0002
)
#
signal.setitimer(signal.ITIMER_REAL,0.01,0.01)
#signal.setitimer(signal.ITIMER_REAL,1,1)
while
(
1
):
0
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