5 posts / 0 new
Last post
herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
LED won't light up

Hi there,

I am trying to run according to this linkhttps://www.hackster.io/nbezembinder1/dialog-da1458x-led-control-2d0b84. I have ran the tutorial up to using the smartphone to trigger the LED light but the problem is that my LED won't light up. I have configured my pins according to the SPI configuration. Hereby, I would like to attach a picture regarding my pins connection. Besides that, I have also run accordingly the codes on Keil MDK to work with the DA14580 development kit.

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

Try to run the ble_app_peripheral example as is and via using a generic BLE central application write a 0x01 to the "LED state" characteristic, check if the LED of the board lights up.

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Hi there,

Hi there,

But I do not know where to write into the LED state. Is there any example. I only saw a long coding open in Keil when I opened the ble_app_peripheral example. Usually, I will just build and run. I do not know where I should configure. I am sorry and your help is kindly appreciated.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

Download a generic application onto your android device and connect to the ble_app_peripheral application. As soon as you are connected you should see 4 services, the one on the end ("Unknown Service") is the generic service of the ble_app_peripheral, tap on the service in order for the characteristics to appear, and the second characteristic from the top is the "LED State" characteristic (you can read the descriptor to verify this). At that characteristic if you write a 0x01 then you should see the led on the board to light up.

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Wow cool! I am able to light

Wow cool! I am able to light up now. Thanks to you, MT_dialog.