NodeRED Lesson: LED

LED adalah komponen sebagai output untuk mengeluarkan cahaya apabila dibekalkan voltan. Interface LED dengan Python boleh rujuk Raspberry Pi Lesson: LED.

Berikut adalah video demo nya.

Node-RED Flow

[{"id":"4d6065ae.864f8c","type":"inject","z":"4d0c9bad.ef8014","name":"","topic":"","payload":"","payloadType":"date", "repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":220,"wires":[["4e588d52.2991f4"]]},{"id":"ab836ee6.b8134","type":"rpi-gpio out","z":"4d0c9bad.ef8014","name":"","pin":"40","set":"","level":"0","freq":"","out":"out","x":600,"y":220,"wires":[]},{"id":"4e588d52.2991f4","type":"trigger","z":"4d0c9bad.ef8014","op1":"1","op2":"0","op1type":"str","op2type":"str", "duration":"500","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":420,"y":220,"wires":[["ab836ee6.b8134"]]}]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.