I have a simple sketch I found on the net to do 433MHz with a simple transmitter and seperate reciever between 2 Uno boards. When I make any calls that are used in the VirtualWire.h library (as found in the sketches I downloaded), my sketch will not compile, and says VirtualWire.h is to blame. I downloaded VirtualWire.h copies from more than one place and all are identical. Any Ideas? I am new at this so any help is apreciated.
I very much doubt the error message was " VirtualWire.h is to blame". What was the exact message?
Paul
Paul: I did not post the exact message but will here. I am running windows on my desktop.
C:\Users\SAMBROWN\AppData\Local\Temp\cccbWlaU.ltrans0.ltrans.o: In function `A_433MHz_Server':
C:\Arduino\VAR_STUFF/VAR_STUFF.ino:1113: undefined reference to `vw_set_tx_pin'
C:\Arduino\VAR_STUFF/VAR_STUFF.ino:1114: undefined reference to `vw_set_ptt_inverted'
C:\Arduino\VAR_STUFF/VAR_STUFF.ino:1115: undefined reference to `vw_setup'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
I assume it is something with my environment / files locations but I have tried just about everything... no luck
In the Arduino development screen, did you click on "sketch", then click on Import library", then click on "add library"? That will look for your library files and put them in the environment where it can find them when needed.
Paul
That did it! Thank you Paul! Thank you very much! The additional #include crc16.h is needed in additional to VirtualWire.h Now compiles with all calls
Thank you again for being patient with me. I'm pushing mid 50's and just starting to learn this stuff alone at night :-/ (I have zero background in it)
SamBrownADK:
That did it! Thank you Paul! Thank you very much! The additional #include crc16.h is needed in additional to VirtualWire.h Now compiles with all callsThank you again for being patient with me. I'm pushing mid 50's and just starting to learn this stuff alone at night :-/ (I have zero background in it)
I actually had to rediscover the procedure a couple of days ago! I am working on a drying oven control - time and temp- for the plant. I had to find and get the libraries for the Dallas Semi temperature sensor. So, your problem looked very similar to mine!
I wish I was pushing the mid 50's again. No, I don't. Happy where I am , 76. Of course, I started programming computers 1964-65.
Paul
Paul_KD7HB: Well, I am just starting out but better late than never! Thank you again for the help!