I thought I would start simple. Silly me.
I have the CC2540 Development Kit and have modified the simpleBLEPeripheral sample program to allow me to write the byte I send to UUID: 0xFFF1 to P1.
My objective was to connect 2 LEDs, one to P1_0 and one to P1_1 (the two 20mA GPIOs) and them turn them on off by sending (00:both off,01=LED1 0n,02=LED2 on,03=Both On) to UUID: 0xFFF1.
Looking at the circuit diagram found in swru301a (Bluetooth low-energy, CC2540 Development kit,CC2541 Evaluation Kit,User's Guide) Page 33 it appears that P1.0 goes to pin 6 and P1.1 goes to pin 13.
Imagine my surprise when the LED attached to pin 6 turned on when I sent an 02. And pin 13 seems to have a low amperage on all the time regardless of the settings of P1.
I can think of two places I've may have gone wrong.
1: I have misunderstood the meaning of the circuit diagram. (I think the most likely)
2: programming the variable P1 does not do what I think it does.
While I'm fairly confident that I have found all the easily findable documentation, any pointer to more complete documentation of this development kit would be greatly appreciated.
Any other suggestions for what I may be doing wrong would also be great appreciated.
- - -
OK I just discovered that the Circuit diagram swru301a Page 33 mentioned above belongs to the daughter card the CC2540 sits on.
So the real question was where do I find a description of the pinouts of the Smart RF05 evaluation Board Rev 1.8.1.
After some poking around I found this post:
This seams to have to info I am looking for.