Trying to import an adruino project into Atmel Studio 7 but the "fastled" code won't compile.

Go To Last Post
64 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Captured the screen using the snipping tool and save it to the attached file for those who are having trouble viewing the code.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also changed the tabs to spaces below:

\

extern "C" {
#  if defined(CORE_TEENSY) || defined(TEENSYDUINO)
extern volatile unsigned long timer0_millis_count;
#    define MS_COUNTER timer0_millis_count
#  elif defined(ATTINY_CORE)
extern volatile unsigned long millis_timer_millis;
#    define MS_COUNTER millis_timer_millis
#  else
extern volatile unsigned long timer0_millis;
#    define MS_COUNTER timer0_millis
#  endif
};

// special defs for the tiny environments
//#if defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__) || defined(__AVR_AT90USB162__) || defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny167__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtinyX41__) || defined(__AVR_ATtiny841__) || defined(__AVR_ATtiny441__)
//#define LIB8_ATTINY 1
//#define FASTLED_NEEDS_YIELD
//#endif

//#if defined(ARDUINO) && (ARDUINO > 150) && !defined(IS_BEAN) && !defined (ARDUINO_AVR_DIGISPARK) && !defined (LIB8_TINY) && !defined (ARDUINO_AVR_LARDU_328E)
// don't need YIELD defined by the library 
//#else 
#define FASTLED_NEEDS_YIELD
extern "C" void yield();
//#endif
#endif
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There should be no reason to edit anything. Which CPU were you building for? I assumed Arduino Uno and hence 328p?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sure if it compiled ok but it doesn't and yes I am using the Uno and it is the 328p. Believe me I would be happy to have this work without all this trouble.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But it compiled OK for me? Did you download the AS7 project i created? Did that build OK or not? If you "diff" it against yours what is different?

Last Edited: Sun. Jul 5, 2020 - 03:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Where is this project you created to download?

Also what version of windows and Atmel studio are you using?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

paulsnop wrote:
Where is this project you created to download?
See #43.

David

Last Edited: Sun. Jul 5, 2020 - 05:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, don't post code as a screenshot!

 

Again,  instructions for doing it properly are in my signature - Tip #1.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Paul which version of Arduino are you using? It seems that 1.8.12 is broken (I downloaded it at the end of June) and at least 2 of us have proven that.

 

Arduino 1.8.13 FIXES things in Window 10. See https://www.avrfreaks.net/commen... and the next 2 posts.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Paul which version of Arduino are you using?

 

@ paulsnop - if you did as suggested in #44 (and as clawson illustrated in #36):

in #44, I wrote:
capture & post screen shots of the process - so we can all see exactly what was done

Then it wouldn't have been necessary for js  to ask that question.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Mon. Jul 6, 2020 - 09:18 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using 1.18.13
I did download dawson’s Project and it did compile ok.
Mine doesn’t but it is not the blinky example

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also did a diff on the fastled code and there are none

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

paulsnop wrote:
Mine doesn’t but it is not the blinky example
So which one was it? I could try importing that one and see if it works for me.

Pages