Skip to content

Commit 1342d29

Browse files
committed
examples: Add a simple, but real-life diff
1 parent 2b410b4 commit 1342d29

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

examples/real-life.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
'ingress-table-uno-compat':
2+
_url: https://github.com/c-base/ingress-table/commit/afb96e195cb8428b87f34da3c36f4b80240f463b
3+
from: |
4+
# @runtime microflo
5+
6+
INPORT=ledchain.IN:PIXEL
7+
INPORT=ledchain.SHOW:SHOW
8+
OUTPORT=ledchain.PIXELSET:PIXELSET
9+
OUTPORT=ledchain.READY:READY
10+
OUTPORT=ledchain.SHOWN:SHOWN
11+
12+
#'2' -> PINDATA ledchain(LedChainWS)
13+
#'3' -> PINCLK ledchain
14+
'true' -> HWSPI ledchain(LedChainWS)
15+
'50' -> PIXELS ledchain
16+
#'[37, "0x404040"]' -> IN ledchain
17+
#'true' -> SHOW ledchain
18+
19+
# Workaround to be able to get the outport data
20+
# MicroFlo currently subscribe to packets with no destination...
21+
ledchain SHOWN -> IN dummy(Forward)
22+
ledchain READY -> IN dummyB(Forward)
23+
to: |
24+
# @runtime microflo
25+
26+
INPORT=ledchain.IN:PIXEL
27+
INPORT=ledchain.SHOW:SHOW
28+
OUTPORT=ledchain.READY:READY
29+
OUTPORT=ledchain.SHOWN:SHOWN
30+
31+
'2' -> PINDATA ledchain(LedChainWS)
32+
'3' -> PINCLK ledchain
33+
'50' -> PIXELS ledchain
34+
#'true' -> SHOW ledchain
35+
36+
# Workaround to be able to get the outport data
37+
# MicroFlo currently subscribe to packets with no destination...
38+
ledchain SHOWN -> IN dummy(Forward)
39+
ledchain READY -> IN dummyB(Forward)
40+
diff: |
41+
- "true" -> hwspi ledchain
42+
+ "2" -> pindata ledchain
43+
+ "3" -> pinclk ledchain
44+
- OUTPORT=ledchain.pixelset:pixelset

0 commit comments

Comments
 (0)