SliceKit GPIO Example Applications
data = data
>
| 0
>
xE;
p_led <:
>
data
>
;
break ;
case CLEAR_LED_1
>
:// Read port
>
Value and
>
Set LED 1
>
OFF
p_led :>
>
data
>
;
p_led <:
>
data
>
&0 x1
>
;
break ;
case SET_LED_2 :
>
// Read port
>
Value and
>
Set LED 2 ON
p_led :>
>
data
>
;
p_led <:
>
data
>
| 0
>
xD;
break ;
case CLEAR_LED_2 :
>
// Read port
>
Value and
>
Set LED 2
>
OFF
p_led :>
>
data
>
;
p_led <:
>
data
>
&0 x2
>
;
break ;
case SET_LED_3 :
>
// Read port
>
Value and
>
Set LED 3 ON
p_led :>
>
data
>
;
p_led <:
>
data
>
| 0
>
xB;
REV A