SPIN code for Adafruit BTLE UART Friend ref JonnyMac
macrobeak
Posts: 354
in Propeller 1
JonnyMac,
I had a look at the Adafruit BTLE UART Friend page and it certainly seems to be a useful and powerful device.
I can visualize many applications, especially for short range data transfer.
I wonder if you would mind sharing your SPIN code with us.
Many thanks for the heads-up on this device.
I had a look at the Adafruit BTLE UART Friend page and it certainly seems to be a useful and powerful device.
I can visualize many applications, especially for short range data transfer.
I wonder if you would mind sharing your SPIN code with us.
Many thanks for the heads-up on this device.
Comments
Might need to add a transistor on RTS (DTR?) like the prop plug, so it doesn't hold in reset
Just a note: My program buffers the command to the BTLE module so that you can edit with backspace (in PST) before sending. Again, this is a tool to play with, so being able to fix a typo in a command keeps things moving along.
The third transaction displayed is with the module in UART mode; this is a packet from the color picker panel in the app. In my little program the response from the BTLE device will also be displayed in hex bytes if there is nothing in the command buffer; this allows from the clean display of values from the color picker and other panels.
Note: the pin #s may seem odd -- I am running this on an EFX-TEK HC-8+ controller.
Thank you once again for your generous sharing of your development and code.
Your "ble connect" archive covering both modes will enable many of us to get a good start with this module.