LusoRobótica - Robótica em Português
Robótica => Discussão geral sobre robótica => Tópico iniciado por: Wolfz em 04 de Julho de 2012, 22:06
-
Boas...
Alguem me pode arranjar a libraria para o arduino, e já agora dizer se é necessário fazer alguma coisa para alem de copiar a pasta para a pasta libraries?
Com os melhores cumprimentos,
Wolfz
-
Vê em http://www.ladyada.net/learn/arduino/ethfiles.html (http://www.ladyada.net/learn/arduino/ethfiles.html)
-
Muito obrigado =)
Já tenho a libraria a "funcionar" só que ainda tenho alguns erros, se por acaso me poderem ajudar agradecia =D
In file included from C:\Users\João\Documents\arduino-1.0\libraries\Ethernet/EthernetServer.h:4,
from C:\Users\João\Documents\arduino-1.0\libraries\Ethernet/Ethernet.h:8,
from Website_Ethernet_shield.cpp:4:
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Server.h:10:24: error: netinet/in.h: No such file or directory
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Server.h:11:23: error: sys/types.h: No such file or directory
In file included from C:\Users\João\Documents\arduino-1.0\libraries\Ethernet/Ethernet.h:8,
from Website_Ethernet_shield.cpp:4:
C:\Users\João\Documents\arduino-1.0\libraries\Ethernet/EthernetServer.h:9: error: expected class-name before '{' token
C:\Users\João\Documents\arduino-1.0\libraries\Ethernet/EthernetServer.h:19: error: type 'Print' is not a base type for type 'EthernetServer'
Website_Ethernet_shield:9: error: 'Server' does not name a type
Website_Ethernet_shield.cpp: In function 'void setup()':
Website_Ethernet_shield:68: error: 'server' was not declared in this scope
Website_Ethernet_shield.cpp: In function 'void loop()':
Website_Ethernet_shield:82: error: 'server' was not declared in this scope
Website_Ethernet_shield:82: error: cannot declare variable 'client' to be of abstract type 'Client'
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:7: note: because the following virtual functions are pure within 'Client':
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:12: note: virtual size_t Client::write(uint8_t)
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:13: note: virtual size_t Client::write(const uint8_t*, size_t)
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:14: note: virtual int Client::available()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:15: note: virtual int Client::read()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:17: note: virtual int Client::peek()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:18: note: virtual void Client::flush()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:10: note: virtual int Client::connect(IPAddress, uint16_t)
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:11: note: virtual int Client::connect(const char*, uint16_t)
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:16: note: virtual int Client::read(uint8_t*, size_t)
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:19: note: virtual void Client::stop()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:20: note: virtual uint8_t Client::connected()
C:\Users\João\Documents\arduino-1.0\hardware\arduino\cores\arduino/Client.h:21: note: virtual Client::operator bool()
-
isso deve de ter a ver com o IDE 1.0, essa biblioteca possivelmente não é compativel com esse IDE, tenta fazer download de um IDE mais antigo e tenta novamente.
-
Off topic: Mudei o titulo da thread para Biblioteca SdFat. Livraria é onde se vendem livros ;)
-
xD tens razão e só agora é que me apercebi que livraria estava mal escrito xD
Obrigado Tr3s
-
Ok, já estou a dar em maluco... não arranjo maneira de por isto a funcionar. Alguém que já tenha feito um webserver com o ethernet shield do arduino que me possa enviar o software (IDE)?
O que eu pretendo para já é quando acedo ao ao "URL" do arduino, por exemplo, 192.168.0.123 abra uma pagina HTML que esta armazenada no SD.
Alguém que me ajude por favor que eu já estou a dar em maluco xS
-
a insanidade faz parte do desenvolvimento de qq projecto.
O IDE (Integrated Development Environment) é a versão da aplicação de processing que usas para programar e compilar o codigo. Pelo erro que enviaste estas a usar a versão 1.
Precisas de testar com a versão 0.23 http://arduino.googlecode.com/files/arduino-0023.zip (http://arduino.googlecode.com/files/arduino-0023.zip)
-
Obrigado Marvin, já está. Eu já tinha testado com o 23, 22 e 18. Mas antes de testar copiava logo uns ficheiros para arduino-0023\hardware\arduino\cores\arduino e devia ser isso que estava a estragar tudo.
Muito obrigado ;)