Upgrade Nuget
大石头 authored at 2024-09-27 23:48:45
203.00 B
SmartA4
using SmartA4;

var led = new OutputPort { FileName = "/dev/led" };

while (true)
{
    // 灭
    led.Write(false);

    Thread.Sleep(500);

    // 亮
    led.Write(true);

    Thread.Sleep(500);
}