SliceKit GPIO Example Applications
>
c_uartTX
>
, '\
>
r ');
uart_tx_send_byte
>
(
>
c_uartTX
>
, '\
>
n ');
break ;
case READ_ADC : //
>
Displays
>
temperature
>
value on the
>
Uart
adc_value
>
=
>
read_adc_value
>
();
data_arr
>
[0]=(
>
linear_interpolation
>
(
>
adc_value
>
));
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[12])
>
;
uart_tx_send_byte
>
(
>
c_uartTX
>
, (
>
data_arr
>
[0]/10)
>
+ '0 ')
>
;
uart_tx_send_byte
>
(
>
c_uartTX
>
, (
>
data_arr
>
[0]%10)
>
+ '0 ')
>
;
uart_tx_send_byte
>
(
>
c_uartTX
>
,
>
32) ;
uart_tx_send_byte
>
(
>
c_uartTX
>
, 'C
>
');
break ;
case INVALID : //
>
Displays
>
command
REV A