led_setup()


Set the type of a designated LED

Description

void led_setup(int $pin, string $mode)

Parameters

Return Value

None

Example

<?php
include "/lib/sd_101.php";
led_setup(LED_A, "led_net0_link");  // Setting the LED_A to network ACT LED
led_setup(LED_B, "led_net0_rx");    // Setting the LED_B to network receive LED
?>

See also