Pages: 1 [2]   Go Down
Author Topic: Hilfe Bekomme die real time clock nicht ans laufen.  (Read 1396 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Doch uwe aber die haben alle den gleichen fehler

Das von mde110 geht leider auch nicht da kommt


Quote
sketch_jan14a:1: error: function definition does not declare parameters
In file included from sketch_jan14a.ino:4:
C:\Users\Dominic\Documents\Arduino\arduino-1.0.3\libraries\Wire/Wire.h:76: error: 'TwoWire' does not name a type
sketch_jan14a:6: error: 'DS1307new' does not name a type
sketch_jan14a:8: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:9: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:10: error: expected constructor, destructor, or type conversion before '(' token
sketch_jan14a:11: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:12: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:13: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:14: error: expected constructor, destructor, or type conversion before '(' token
sketch_jan14a:15: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:16: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:17: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:18: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:19: error: expected constructor, destructor, or type conversion before '.' token
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So der scanner hat was gefunden
« Last Edit: January 14, 2013, 01:16:58 pm by schilli84 » Logged

Meran/BZ/IT
Offline Offline
Full Member
***
Karma: 0
Posts: 184
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Schau mal hier nach:
https://github.com/watterott/mSD-Shield/downloads

Im Packet ist eine DS1307-Library und ein Beispiel.
Eventuell mußt Du noch die Baud-Rate (für serial) anpassen.

Mit dem weißt Du mal, obs an der Hard- oder an der Software liegt...

Gruß
Reinhard

PS.: Zum Testen einfach alle gelieferten Libraries reinhauen
« Last Edit: January 14, 2013, 01:37:07 pm by spaceball » Logged

Germany, BW
Offline Offline
Sr. Member
****
Karma: 3
Posts: 294
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So der scanner hat was gefunden

Welche Adressen?
Logged

Arduino 1.0.3|MEGA|UNO|MICRO|PRO MINI3.3
SSD1289 TFT Touch|DS18B20|DS1307
ADNS2610|RFM12|OOK|SSD1303|DHT22
SSD1306 Crius CO-16 OLED|UGUI|SD
SSD1352|

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok das geht dan kommt:

Quote
Init Display...
Init RTC...

Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85
Date: 165.165.2165
Time: 165:165:85


im serial monitor
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I2C Scanner
Scanning...
I2C device found at address 0x68 !
done
Logged

Germany, BW
Offline Offline
Sr. Member
****
Karma: 3
Posts: 294
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Doch uwe aber die haben alle den gleichen fehler

Das von mde110 geht leider auch nicht da kommt


Quote
sketch_jan14a:1: error: function definition does not declare parameters
In file included from sketch_jan14a.ino:4:
C:\Users\Dominic\Documents\Arduino\arduino-1.0.3\libraries\Wire/Wire.h:76: error: 'TwoWire' does not name a type
sketch_jan14a:6: error: 'DS1307new' does not name a type
sketch_jan14a:8: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:9: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:10: error: expected constructor, destructor, or type conversion before '(' token
sketch_jan14a:11: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:12: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:13: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:14: error: expected constructor, destructor, or type conversion before '(' token
sketch_jan14a:15: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:16: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:17: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:18: error: expected constructor, destructor, or type conversion before '.' token
sketch_jan14a:19: error: expected constructor, destructor, or type conversion before '.' token

So, habe mir jetzt extra die Arbeit gemacht und 1.0.3 neu entpackt und die Zip aus meinem Link in den Library Ordner entpackt.
Die Examples gehen. Ich vermute mal du hast an den Libs rumgespielt...

Also mach das bitte auch. Arduino 1.0.3 in ein neues Verzeichnis frisch entpacken.
Die DS1307new runterladen und in den Lib Ordner entpacken. Also da rein: arduino-1.0.3\libraries\DS1307new, sodass nacher auf jeden Fall diese Dateien vorhanden sind:
arduino-1.0.3\libraries\DS1307new\DS1307new.cpp
arduino-1.0.3\libraries\DS1307new\DS1307new.h

Dann kompiliere bitte das Example!
Logged

Arduino 1.0.3|MEGA|UNO|MICRO|PRO MINI3.3
SSD1289 TFT Touch|DS18B20|DS1307
ADNS2610|RFM12|OOK|SSD1303|DHT22
SSD1306 Crius CO-16 OLED|UGUI|SD
SSD1352|

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey super leute sie geht jetzt.
nur wie kann ich sie einstellen??
Logged

Germany, BW
Offline Offline
Sr. Member
****
Karma: 3
Posts: 294
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Probiere doch mal ein bisschen rum anstatt gleich zu Fragen. So lernt man nichts...
Logged

Arduino 1.0.3|MEGA|UNO|MICRO|PRO MINI3.3
SSD1289 TFT Touch|DS18B20|DS1307
ADNS2610|RFM12|OOK|SSD1303|DHT22
SSD1306 Crius CO-16 OLED|UGUI|SD
SSD1352|

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So danke leute es hat geklappt uhr ist auch eingestelt.

morgen versuche ich mal die temperatur mit ins lcd zu bekommen.
und eine led zu bestimten zeiten ein und aus zu schalten.

mfg
Logged

Pages: 1 [2]   Go Up
Jump to: