Search the Community

Showing results for tags 'fade'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Found 3 results

  1. I know that Stellaris is dead already. The only reason I still own an Stellaris EK because my friend gave it to me......for free and brand new! I just want to fade an LED, that's all ! And btw, are there any good tutorials for Stellaris MCUs? Thanks alot, to anybody that is willing to help me.
  2. I am uploading the fade example of energia to the tiva t4mc1294 connected launchpad but the LED is not fading. It is just blinking. I have also connected the pwm output to motor drivers but the speed of the motors are not changing. When I check the voltage of the pin with my multimeter, I get 0.66v. I have tried the fade example on different pins like PF2, PF3(pins marked for analogWrite in launchpad reference) but the results are same. Here is the code for the fade example, given as reference. int brightness = 0; // how bright the LED is int fadeAmount = 5; // how many points to fade the LED by void setup() { // declare pin 14 to be an output: //analogFrequency(FREQ); pinMode(PF_3, OUTPUT); pinMode(PF_2,OUTPUT); Serial.begin(9600); } void loop() { digitalWrite(PF_2,HIGH); // set the brightness of pin 9: analogWrite(PF_3, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeAmount; Serial.print(brightness); // 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); }
  3. Hello, I've just started learning the basics of launchpad programming thru the samples in energia. As an exercise, I'm trying to control the green LED intensity from the PC keyboard using code from the PhysicalPixel and Fade samples. I'm sending keyboard input via the Serial Monitor window of energia. The code successfully uploads to the msp430g2231 but I'm not getting the result I'm expecting. That is press 'H' and 'L' to increase and decrease the LED intensity. Here's the code: int brightness = 128; int incomingByte; // a variable to read incoming serial data into void setup() { Serial.begin(4800); // initialize serial communication: pinMode(GREEN_LED, OUTPUT); // initialize the LED pin as an output: } void loop() { if (Serial.available() > 0) { // see if there's incoming serial data: incomingByte = Serial.read(); // read the oldest byte in the serial buffer: if (incomingByte == 'H') { brightness = brightness + 5; if (brightness >= 255) { brightness = 255; } analogWrite(GREEN_LED, brightness); } if (incomingByte == 'L') { brightness = brightness - 5; if (brightness <= 0) { brightness = 0; } analogWrite(GREEN_LED, brightness); } } } The Communication>Dimmer sample also does not work for me. I'm under the impression that the cause of the problem is similar.