Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Am I burnt Digital Port1?
27-11-2011, 10:31 AM,
#1
Am I burnt Digital Port1?
I wrote from example program this:


*/
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by

void setup() {
// declare pin 2 to be an output:
pinMode(2, OUTPUT);
pinMode(1, OUTPUT);
pinMode(0, OUTPUT);
}

void loop() {
// set the brightness of pin 9:
analogWrite(2, brightness);
analogWrite(1, brightness);
analogWrite(0, brightness);

// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;

// reverse the direction of the fading at the ends of the fade:
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}

Led at portd.1 was dimming, fading but now It doesn't lights.. Other leds (D.0 and D.2) lights?

What is wrong? It can be possible only burning one bit?

(27-11-2011, 10:31 AM)Firatdede Wrote: I wrote from example program this:


*/
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by

void setup() {
// declare pin 2 to be an output:
pinMode(2, OUTPUT);
pinMode(1, OUTPUT);
pinMode(0, OUTPUT);
}

void loop() {
// set the brightness of pin 9:
analogWrite(2, brightness);
analogWrite(1, brightness);
analogWrite(0, brightness);

// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;

// reverse the direction of the fading at the ends of the fade:
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}

Led at portd.1 was dimming, fading but now It doesn't lights.. Other leds (D.0 and D.2) lights?

What is wrong? It can be possible only burning one bit?

Reply
27-11-2011, 03:51 PM,
#2
RE: Am I burnt Digital Port1?
Which board / product? Which host OS?
Reply
27-11-2011, 04:46 PM,
#3
RE: Am I burnt Digital Port1?
Pic32-OTG board, At windows 7.Undecided
Reply
26-06-2012, 04:16 PM,
#4
RE: Am I burnt Digital Port1?
Buy another board, that's the fastest way I can think of to check if your board has a problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)