Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Beeker

  1. Rei, could i ask one more question of you, not relate to the previous, but ill keep it here if thats ok? Im looking at some code that blinks an LED - BlinkWithoutDelay and it contains a line "const int ledPin = GREEN_LED; // the number of the LED pin" Where is the compiler getting the value of GREEN_LED from? I would like to see how this relates to the micro pin and then onto the booster pack pin or expansion port pin. From connecting up its on Pin 85 on the expansion header, but id like to see where this is declared. Thanks
  2. Sorry, im still not getting this! I've attached the pin-outs for the eval board and also the booster pack. The eval board shows PWM assigned to the pins that map to the pins on the boostxl-edumkii RGB LED. To me, this shows that PWM should be available on the pins that map to the RGB LED. If the routine analogWrite(pin,duty) is able to provide PWM to those pins (the micro can) then all should be well.
  3. But those are the LED's that are on the EK-TM4C1294XL board. My query relates to the RGB LED that is on the BOOSTXL-EDUMKII board. The RGB LED is on pins 39,38,37 of the 40 pin stackable connectors. These map to header C1 on the EK-TM4C1294XL pins 2,3,4 which have PWM allocated to them. I'm not convinced the analogWrite(pin,duty) is supported on my board and im also confused as to what i pass in the pin argument - is it 39,38 or 37 or 2,3,4 depending on which pin i want the PWM on? This isn't clear. Thanks for all your help but i think im going to give up on this shortly.
  4. This still isn't working. I've taken my code and added the pinMode() into the setup routine. Still no joy. Your supplied code didn't compile giving me errors that 'BLUE_LED' was not declared in this scope. I re-wrote the code so that i could get it to compile and whilst i'm seeing the serial port information, the RGB LED isn't coming on. As i can't get the PWM to work i have to now point the finger at the underlying code behind analogWrite() for my board EK-TMC1294XL. How would i go about writing my own analogWrite() routine, i.e. writing/reading to the micro registers dire
  5. If i'm understanding the documentation i have correctly, the RGB LED is wired to PWM channels. Plus the software i have is provided not written by myself, so i presume somebody has written and tested it. I must be doing something wrong but i don't see what!
  6. Ive just tried that with no luck:- int ledRed = 39, ledBlue = 37, ledGreen = 38; // LED connected to digital pin 9 void setup() { // Initialize the pseudo-random number generator randomSeed(1); } void loop() { uint8_t number = 254; analogWrite(ledRed, number); // sets the value (range from 0 to 255) for 3 RGB channels: // analogWrite(ledRed, random(255)); // analogWrite(ledBlue, random(255)); // analogWrite(ledGreen, random(255)); // wait for 30 milliseconds before changing the color again // delay(300);
  7. Hi, I have a EK-TM4C1294XL evaluation kit and a BOOSTXL-EDUMKII board connected to it. I cannot get the RGB_LED_RANDOM example to work. The LED's work as if i change the analogWrite(ledRed, random(255)) to analogWrite(ledRed, 255) the LED comes on. Any value other than 255 results in the LED staying OFF. I have jumper J5 in the top position (1-2) which i believe is correct. What do i need to do, to get the PWM running? thanks
  • Create New...