SliceKit GPIO Example Applications
break ;
case CLEAR_LED_3 :
>
// Read port
>
Value and
>
Set LED 3
>
OFF
p_led :>
>
data
>
;
p_led <:
>
data
>
&0 x4
>
;
break ;
case SET_LED_4 :
>
// Read port
>
Value and
>
Set LED 4 ON
p_led :>
>
data
>
;
p_led <:
>
data
>
| 0
>
x7;
break ;
case CLEAR_LED_4 :
>
// Read port
>
Value and
>
Set LED 4
>
OFF
p_led :>
>
data
>
;
p_led <:
>
data
>
&0 x8
>
;
break ;
case CLEAR_ALL :
>
// sets all
>
four LEDs
>
OFF
p_led <:0
>
xF;
break ;
case SET_ALL : //
>
sets all
>
four LEDs ON
p_led <:0
>
x0;
break ;
case
>
BUTTON_PRESSED
REV A