LED
 
Component LED
Driver for a LED
Component Level: Low
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • On - This turns the LED on.

      ANSIC prototype: void On(void)

  • Off - This turns the LED off.

      ANSIC prototype: void Off(void)

  • Neg - This negates/toggles the LED

      ANSIC prototype: void Neg(void)

  • Get - This returns logical 1 in case the LED is on, 0 otherwise.

      ANSIC prototype: byte Get(void)
    • Return value:byte - Status of the LED (on or off)

  • Put - Turns the LED on or off.

      ANSIC prototype: void Put(byte val)
    • val:byte - value to define if the LED has to be on or off.


Note: Some methods can be implemented as macros.