Tool/software: Code Composer Studio
Hi,
I m using CC2650MODA and finally i achieved to broadcast with it using Simple_peripheral example in ble-sdk plugin. I can send any value through bluetooth but when I try to send pin state information (high or low), I could not send it. I don't know the reason.
PIN_Config radCtrlCfg[] =
{
IOID_13 | PIN_INPUT_EN | PIN_PULLUP, /* Pin Configuration
or
PIN_ID(13) | PIN_INPUT_EN | PIN_PULLUP, /* Pin Configuration
}
I tried both of below to get input value but it does not work.
value = value + PIN_getInputValue(PIN_ID(13);
value = value + PIN_getInputValue(IOID_13);
I also try to read register and expressions in CCS, but there is no expression as PIN_getInputValue but there is an expression PINCC26XX_getInputValue which is the expression in PIN_getInputValue function. But when i try to call PINCC26XX_getInputValue function, program could not be built.
What i want to do is to read input state H/L and send it through bluetooth. I try if function
if (PIN_getInputValue(PIN_ID(2)))
send 11;
else
send 22;
it does not work also.
Could you help me how can i read the input state and send it through bluetooth?
Best regards,
Murat Kayhan