Hallo,ich schon wieder
Habe eben die Geschwindigkeit so eingetragen wie
dettel das geschrieben hatte .
Wollte das hochladen,da kam diese Fehlermeldung
Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:103:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
};
^
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:103:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
TapeCounter:60:32: error: expected unqualified-id before numeric constant
#define SPEEDLOW 95,25 // Lowest belt speed A700 3,75" in mm.
^
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:114:27: note: in expansion of macro 'SPEEDLOW'
volatile float speedLow = SPEEDLOW;
^~~~~~~~
TapeCounter:59:33: error: expected unqualified-id before numeric constant
#define SPEEDMIDDLE 190,5 // Middle belt speed A700 7,5" in mm
^
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:115:30: note: in expansion of macro 'SPEEDMIDDLE'
volatile float speedMiddle = SPEEDMIDDLE;
^~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino: In function 'void setup()':
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:218:12: warning: implicit dereference will not access object of type 'volatile long int' in statement
EEPROM.get(EEPROM_COUNTER, counter);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:221:12: warning: implicit dereference will not access object of type 'volatile float' in statement
EEPROM.get(EEPROM_METER, counterMeters);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:224:12: warning: implicit dereference will not access object of type 'volatile float' in statement
EEPROM.get(EEPROM_REALTIME, counterSeconds);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino: In function 'void SaveCounter()':
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:304:12: warning: implicit dereference will not access object of type 'const volatile long int' in statement
EEPROM.put(EEPROM_COUNTER, counter);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:306:12: warning: implicit dereference will not access object of type 'const volatile float' in statement
EEPROM.put(EEPROM_METER, counterMeters);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:308:12: warning: implicit dereference will not access object of type 'const volatile float' in statement
EEPROM.put(EEPROM_REALTIME, counterSeconds);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino: In function 'void WriteOledRealTime(long int)':
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:693:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(secs < 0) ? SecondsToString(buf, secs, "-%01ld*%02ld\"%02ld") : SecondsToString(buf, secs, " %01ld*%02ld\"%02ld");
^
C:\Users\Steffen\Documents\Arduino\TapeCounter\TapeCounter.ino:693:115: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
(secs < 0) ? SecondsToString(buf, secs, "-%01ld*%02ld\"%02ld") : SecondsToString(buf, secs, " %01ld*%02ld\"%02ld");
^
exit status 1
expected unqualified-id before numeric constant
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
Kann damit jemand was anfangen,der mehr Grundkenntnisse vom PC hat,als ich
Habe wieder alles so eingetragen,wie vorher,kommt aber immer dieselbe Fehlermeldung.
Also so einfach scheint das nicht zu gehen,die Geschwindigkeiten auszutauschen
Steffen