Go Down

Topic: Arduino mit Eclipse (Read 693 times) previous topic - next topic

kucky

Apr 10, 2010, 03:53 pm Last Edit: Apr 11, 2010, 08:51 am by KUCKY Reason: 1
Hallo zusammen,
ich habe nach vielen Stunden Eclipse (Galileo) für Arduino configuriert. Der Testcode lt. Tutorial war auch OK. Habe nun diesen Code versucht, das allseits bekannte "Blink":
Code: [Select]
/*
* main.c
*
*  Created on: 09.04.2010
*      Author: Willi
*/

#include <avr/io.h>
#include <WProgram.h>
int ledPin = 13;

int main(void) {
                pinMode(ledPin, OUTPUT);

      for(;;) {
              digitalWrite(ledPin, HIGH);   // set the LED on
              delay(1000);                  // wait for a second
              digitalWrite(ledPin, LOW);    // set the LED off
              delay(1000);                  // wait for a second
            }
}

Dann werden folgende Meldungen in der Console angezeigt:
Code: [Select]
**** Build of configuration Release for project Tutorial_01 ****

make all
Building file: ../Tone.cpp
Invoking: AVR C++ Compiler
avr-g++ -Wall -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -fno-exceptions -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Tone.d" -MT"Tone.d" -c -o"Tone.o" "../Tone.cpp"
../Tone.cpp:36:20: warning: wiring.h: No such file or directory
../Tone.cpp:37:26: warning: pins_arduino.h: No such file or directory
../Tone.cpp:101: warning: only initialized variables can be placed into program memory area
../Tone.cpp: In function 'int8_t toneBegin(uint8_t)':
../Tone.cpp:141: error: 'bitWrite' was not declared in this scope
../Tone.cpp:143: error: 'digitalPinToPort' was not declared in this scope
../Tone.cpp:143: error: 'portOutputRegister' was not declared in this scope
../Tone.cpp:144: error: 'digitalPinToBitMask' was not declared in this scope
../Tone.cpp: In function 'void tone(uint8_t, unsigned int, long unsigned int)':
../Tone.cpp:218: error: 'OUTPUT' was not declared in this scope
../Tone.cpp:218: error: 'pinMode' was not declared in this scope
../Tone.cpp:314: error: 'bitWrite' was not declared in this scope
../Tone.cpp: In function 'void noTone(uint8_t)':
../Tone.cpp:398: error: 'digitalWrite' was not declared in this scope
make: *** [Tone.o] Error 1
:-[
Kann mir bitte einer helfen. ;)
Gruß aus Leverkusen
Willi

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy