Hi I am new to programming with Energia and have trouble with analogWrite(). I am using TI's LM4F Stellaris board if I write the code like this,
void setup()
{
pinMode(PF_2,OUTPUT);
}
void loop()
{
analogWrite(PF_2,125);
}
As I understand it, the built-in LED should turn on with a moderate brightness, right? but for all the values expect 0 the LED is staying on with a constant brightness(even for 10). Is there something wrong with the code, Should I do some additional setup before I can use the LED or something? Thanks