abecedarian 330 Posted September 23, 2012 Share Posted September 23, 2012 Being that I'm new at these things, I thought I'd try some of the different IDE's out, so downloaded this and set about my way. I loaded the "Blinky" sketch, sent it to the board and it ran fine- nice blinking green LED. Then I loaded the "Fade" sketch and had a pulsing green LED. Went into the code, changed the occurances of "GREEN_LED" to "RED_LED", sent that to the board and the red LED is not pulsing the same as the green was. At low brightness, it's barely visible and flickers then suddenly pops up to full on, then back to very low brightness and flickering. FYI, it's a -G2553 chip on a 1.5 board just received from 43oh. The pre-loaded demo worked fine fading the red and greed led's in and out with temp. Quote Link to post Share on other sites
energia 485 Posted September 23, 2012 Share Posted September 23, 2012 Energia uses Timer output to generate PWM signal with varying duty cycle. P1.0 aka RED_LED is not on a timer output and hence analogWrite to that pin will not work. What it does instead is either set the pin high or low depending on the value written to it. See the hardware pin mapping guide for what pins can be used for what functionality: https://github.com/energia/Energia/wiki/Hardware abecedarian 1 Quote Link to post Share on other sites
abecedarian 330 Posted September 23, 2012 Author Share Posted September 23, 2012 Okay, makes sense. Thank you. Quote Link to post Share on other sites
energia 485 Posted September 23, 2012 Share Posted September 23, 2012 Let us know if you come across any other issues that are either not clear or you think is a bug. This will help us a lot with improving the code or documentation. Robert abecedarian 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.