INFO: Dieses Forum nutzt Cookies...
Cookies sind für den Betrieb des Forums unverzichtbar. Mit der Nutzung des Forums erklärst Du dich damit einverstanden, dass wir Cookies verwenden.

Es wird in jedem Fall ein Cookie gesetzt um diesen Hinweis nicht mehr zu erhalten. Desweiteren setzen wir Google Adsense und Google Analytics ein.

Antwort schreiben 
 
Themabewertung:
  • 0 Bewertungen - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Attiny45 - Wire.h Error
30.06.2014, 21:43
Beitrag #1
Attiny45 - Wire.h Error
Hallo Leute,
ich habe mir die erweiterungen runtergeladen, damit ich mit der Arduino IDE auch meinen Attiny45 programmieren kann. (https://code.google.com/p/arduino-tiny/)
Ich verwende in meinem Code die Wire.h Library für einen I2C Display.
Und diese Library erzeugt mir diese Fehler:

Zitat:C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_init':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:76: error: 'SDA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:76: error: (Each undeclared identifier is reported only once
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:76: error: for each function it appears in.)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:77: error: 'SCL' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:80: error: 'TWSR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:80: error: 'TWPS0' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:81: error: 'TWPS1' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:82: error: 'TWBR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:90: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:90: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:90: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:90: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_setAddress':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:102: error: 'TWAR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_readFrom':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:154: error: 'TWDR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:155: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:155: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:155: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:155: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:155: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:159: error: 'TWSTA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_writeTo':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:234: error: 'TWDR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:235: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:235: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:235: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:235: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:235: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:239: error: 'TWSTA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_reply':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:321: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:321: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:321: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:321: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:321: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_stop':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:336: error: 'TWSTO' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'twi_releaseBus':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:357: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:357: error: 'TWEN' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:357: error: 'TWIE' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:357: error: 'TWEA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:357: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c: In function 'TWI_vect':
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWSR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWS7' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWS6' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWS5' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWS4' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:365: error: 'TWS3' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:370: error: 'TWDR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:390: error: 'TWCR' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:390: error: 'TWINT' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:390: error: 'TWSTA' undeclared (first use in this function)
C:\Program Files\Arduino\libraries\Wire\utility\twi.c:390: error: 'TWEN' undeclared (first use in this function)

Weis jemand wie ich die loswerden kann? Huh
Oder gibt es vll eine alternative zu Wire.h?
Ich hoffe ihr könnt mir helfen!
Lg,
Tropaion
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
01.07.2014, 20:11
Beitrag #2
RE: Attiny45 - Wire.h Error
Hallo Tropaion,

such mal im Internet nach den TinyWire Libs für Master und Slave.
Versuche mal diese anstatt der wire - lib einzubinden.

Grüße RK

Nüchtern betrachtet...ist besoffen besser Big Grin
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Möglicherweise verwandte Themen...
Thema: Verfasser Antworten: Ansichten: Letzter Beitrag
  Attiny45 Bootloader brennen mit Funduino Mega toto1975 63 2.199 23.10.2016 17:08
Letzter Beitrag: hotsystems
  Mega: Hardware i2c bus speed (Wire.) verändern? HaWe 10 2.928 14.07.2016 20:09
Letzter Beitrag: Mathias
  Inhalt einer Variable mit per Virtual Wire versenden toto1975 17 1.768 26.03.2016 18:57
Letzter Beitrag: hotsystems
  Wire.h und SD.h nicht kompatibel? hulofu 13 1.116 25.11.2015 20:50
Letzter Beitrag: Retian
  [gelöst] was ist falsch bei Wire.onReceive()? HaWe 0 633 26.09.2015 16:58
Letzter Beitrag: HaWe
  Probleme mit Ethernet-Shild und <wire.h> Arne 5 1.006 08.09.2015 21:18
Letzter Beitrag: Arne
  ESP8266 error: espcomm_open failed Stefan570 3 5.690 22.05.2015 13:03
Letzter Beitrag: Stefan570
  Error mit Arduino Mega NicoZ 7 2.991 19.05.2015 21:33
Letzter Beitrag: NicoZ
  Programmierung des MPU6050 nur mit Wire.h ? HaWe 2 652 06.05.2015 15:31
Letzter Beitrag: HaWe
  Probleme beim Senden einer Stringvariablen per Wire.write scritch 8 1.853 05.05.2015 08:40
Letzter Beitrag: Thorsten Pferdekämper

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste