How do you want ot use the LED? Active high/low? gpio_setPinOutput is the right way to drive it high or low (none of the GPIOs can output an analog signal). If you are using the pwm_tones sample app, it configures P26 as a PWM channel. Did you remove all such code from the sample app? If you toggle the GPIO by setting output to 0 and 1 alternatively, say every 1s, can you see the GPIO toggling on an oscilloscope?
I don't own an oscilloscope, and I haven't got to delay timing yet. I'll look into it tonight. Do you know what timing I should be using to wait/delay every 1000ms? just for the sake of testing this really quick, if not, i'll look at some more examples to figure it out.
I generated code using the new wiced device configurator. Im just referencing pwm_tones to figure out how they used buttons and pwm. thanks
1 of 1 people found this helpful
You don't want to wait for 1s. Use timers instead. The pwm_tones sample app already registers for a 1s timer callback. Just implement your toggle logic in tones_timeout()
will do. thanks
Here is how i have setup my gpio, according to the picture above, which I made from the docs. At this point im starting to this I made it incorrectly. As my code is not working.
the function I am trying to get to work is on line: turq 372 of the gist. Does anyone have any experience with turning on an LED with the dev kit? I would really appreciate it, if you can show me some code, as I am not having any luck.
Sorry for the late response, but I just noticed you had another question here.
The TAG003 LED was de-populated by default at our factory.
If you can solder one to the pins you should be able to use it.