Hi All,
Is any one have worked on the PWM using X8 and Mid carrier board using Arduino IDE.
I am trying to do some PWM control. can anyone help me to do it.
Below is the code that I am trying to do control the brightness of the LED.
const int ledPin = PWM_1; // Use a pin that supports PWM
int brightness = 0;
void setup() {
Serial1.begin(115200);
pinMode(ledPin, OUTPUT); // Configure the pin as OUTPUT
}
void loop()
{
for (brightness = 255; brightness >= 0; brightness--) {
analogWrite(ledPin, brightness);
Serial1.print("Brightess Value:");
Serial1.println(brightness);
delay(1000);
}
}
I am not able to recevive any voltage output on PWM Pins.
Can anyone help on this.
Br,
Rakesh