Arduino 1.0.2 bringt da eine Störung:
| 1 | #include <TimerOne.h> | 
| 2 | |
| 3 | void setup() | 
| 4 | {
 | 
| 5 | pinMode(13, OUTPUT); | 
| 6 | |
| 7 | Timer1.initialize(100000); //Diese Zeile meine ich | 
| 8 | Timer1.attachInterrupt( timerIsr ); | 
| 9 | }
 | 
| 10 | |
| 11 | void loop() | 
| 12 | {
 | 
| 13 | |
| 14 | }
 | 
| 15 | |
| 16 | |
| 17 | void timerIsr() | 
| 18 | {
 | 
| 19 | |
| 20 | digitalWrite( 13, digitalRead( 13 ) ^ 1 ); | 
| 21 | }
 | 
Da steht da: "Timer1" was not declared in this scope In funtion "void setup": 7: error: "Timer1" was not declared in this scope Was tu'n? Wie deklarieren?!
 Thread beobachten
 Thread beobachten Seitenaufteilung abschalten
 Seitenaufteilung abschalten