Author Topic: Status of digistump plugins to Arduino 1.5.7? I get errors ...  (Read 2720 times)

mschorer

  • Newbie
  • *
  • Posts: 8
Status of digistump plugins to Arduino 1.5.7? I get errors ...
« on: September 07, 2014, 11:51:26 pm »
is there a thread taking issues related to the new, integrated IDE?

with v0.91 I keep getting an error when compiling (even blink!) for the digispark:
Code: [Select]
Build options changed, rebuilding all
In file included from C:\dev\arduino-1.5.7\hardware\digistump\avr\cores\tiny\WConstants.h:1:0,
                 from C:\dev\arduino-1.5.7\hardware\digistump\avr\cores\tiny\WInterrupts.c:36:
/arduino-1.5.7/hardware/tools/avr/avr/include/math.h:426:15: error: expected identifier or '(' before 'double'
 extern double round (double __x) __ATTR_CONST__;
               ^
C:\dev\arduino-1.5.7\hardware\digistump\avr\cores\tiny\wiring.h:136:22: error: expected ')' before '>=' token
 #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

after commenting out line 136 in wiring.h, i can compile:
Code: [Select]
...
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
//#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define radians(deg) ((deg)*DEG_TO_RAD)
...
« Last Edit: September 08, 2014, 02:25:03 am by mschorer »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Status of digistump plugins to Arduino 1.5.7? I get errors ...
« Reply #1 on: September 08, 2014, 11:36:15 am »
Looks like we had a few more changes to get the original Digispark to work with the new version of AVR GCC - those errors are now fixed: http://sourceforge.net/projects/digistump/files/Digistump1.5Addons-v092.zip/download