Virtualwire lib problem

Hi,

I hope i post this on the right group.

I having problems with Arduino 1.0 and even r22 and the virtualwire library. I can't get it working!

I use the simple example from the lib. When i verify the code i get errorcodes like this:

In file included from transmitter.cpp:11:
C:\Users\prive\Documents\Arduino\libraries\VirtualWire/VirtualWire.h:14:20: error: wiring.h: No such file or directory
In file included from transmitter.cpp:11:
VirtualWire.h:53: error: variable or field 'vw_set_tx_pin' declared void
VirtualWire.h:53: error: 'uint8_t' was not declared in this scope
VirtualWire.h:57: error: variable or field 'vw_set_rx_pin' declared void
VirtualWire.h:57: error: 'uint8_t' was not declared in this scope
VirtualWire.h:61: error: variable or field 'vw_set_ptt_pin' declared void
VirtualWire.h:61: error: 'uint8_t' was not declared in this scope
VirtualWire.h:65: error: variable or field 'vw_set_ptt_inverted' declared void
VirtualWire.h:65: error: 'uint8_t' was not declared in this scope
VirtualWire.h:70: error: variable or field 'vw_setup' declared void
VirtualWire.h:70: error: 'uint16_t' was not declared in this scope
VirtualWire.h:89: error: 'uint8_t' does not name a type
VirtualWire.h:95: error: 'uint8_t' does not name a type
VirtualWire.h:98: error: 'uint8_t' does not name a type
VirtualWire.h:103: error: 'uint8_t' does not name a type
transmitter.cpp: In function 'void setup()':
transmitter.pde:-1: error: 'vw_set_ptt_inverted' was not declared in this scope
transmitter.pde:-1: error: 'vw_setup' was not declared in this scope
transmitter.cpp: In function 'void loop()':
transmitter.pde:-1: error: 'vw_send' was not declared in this scope

What am i doing wrong??

Gr.

Marcel

When i verify the code i get errorcodes like this

Is that from 0022 or 1.0?

If it is from 1.0, edit the VirtualWire.h file, and change wiring.h to Arduino.h.

Paul,

Thanks, i did it right away. But it left me with the next error codes.....

transmitter.cpp: In function 'void setup()':
transmitter.pde:-1: error: 'vw_set_ptt_inverted' was not declared in this scope
transmitter.pde:-1: error: 'vw_setup' was not declared in this scope
transmitter.cpp: In function 'void loop()':
transmitter.pde:-1: error: 'vw_send' was not declared in this scope
transmitter.pde:-1: error: 'vw_wait_tx' was not declared in this scope

It looks like the arduino software doesn't read the lib good.

Gr,

Marcel

Modifying the library to make it 1.0 compatible, with a pde file, doesn't make sense. The code should have compiled before.

You need to post your code.