Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
A little ardunio help
John P
On Fri, Aug 18, 2017 at 11:49 am, pat griffin wrote:
I am on the road so I can't verify this but I think you actually must have the compiler connected to some version of the arduino for the code to compile.I compile stuff all the time without an Arduino connected. Make sure you're clicking on the compile/verify icon in the IDE (checkmark in the upper left corner). ? -- John - WA2FZW |
Jack Purdum
You can always compile a source file without actually having a board physically attached. You can do a "compile only" (no upload) by clicking on the check mark icon below the File menu option. However, you must always have a board selected even if one's not attached to the system because the compiler needs some compile-time information about the processor. Jack, W8TEE From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 4:54 PM Subject: Re: [BITX20] A little ardunio help On Fri, Aug 18, 2017 at 01:37 pm, Jack Purdum wrote: By God, Jack, I owe you a beer!That worked! Email is a bit odd here. It comes in on the? mac in my office, and the windows machine is in the basement. They are not linked. So, got the file from the mac, put it on a flash drive, headed to the basement and did what you said. the file complied without issue, but I had to tell the IDE that I was using the MEGA. Apparently one can compile a sketch without having the hardware. So the question is, why wasn't the morsecode.h in the file that I downloaded from this site? Mike, WB8VGE |
Jack Purdum
The idea of a "sketch directory" is okay if you're just trying things out, but if you are working on a "serious project", I think it's a good idea to have it off the root directory with a directory name that makes it clear what it is. I had a suggested directory structure in an earlier email today. Anytime I install a new version of the IDE, I make a root diretory with the release number in its name. My latest is? ???? ? ?E:\Arduino1.8.3 Under that directory are all the normal IDE files and subdirectories, but I also add a new one called?Temp. I then go into the File --> Preferences menu option and set the "Sketchbook Location" to E:\Arduino1.8.3\Temp. That way, any experimenting I do is localize to the current version of the IDE. As it stands now, I can go back to Rel 1.05 on this machine and see every sketch I've written since 2013. If I wanted to dust off an old machine, I could go back to pre-1.0. It's all personal preferences, but this helps keep me organized at an age where that's not easy. Jack, W8TEE From: John Backo via Groups.Io <iam74@...> To: [email protected] Sent: Friday, August 18, 2017 8:18 PM Subject: Re: [BITX20] A little ardunio help "Where in God's name does Ardunio hide the sketches?" The compilations (including the hex file) are in C:\[user]\AppData\Local\Temp\ It is usually in a sub-directory with a long list of numbers. That is an encoded version of the date and compilation number and starts with "build". Things have changed a bit with recent versions, but most compilations can still be made with a "sketch" directory put where you want it.? Make a sub-directory named after your sketch and put the .ino file and other .cpp and .h files in there. Also under the sketch directory, include a sub-directory named lib or libraries and put found libraries in there. (You can also include them in the main Arduino library directory using a zip import, but they are wiped out with each new version. Incidentally, running the Arduino IDE in "verbose" mode (see preferences) will give you locations of files in the window under the .ino window, as well as error messages if any. john AD5YE |
Jack Purdum
Because you never downloaded it, I guess. They are two separate files dealing with two related, albeit different, elements of the program. Good coding style dictates that dissimilar objects be kept in different files. Because the second file pertains only to Morse code elements, I made it a separate file. ?I could have put it into a library, but that would be overkill. Jack, W8TEE From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 4:54 PM Subject: Re: [BITX20] A little ardunio help On Fri, Aug 18, 2017 at 01:37 pm, Jack Purdum wrote: By God, Jack, I owe you a beer!That worked! Email is a bit odd here. It comes in on the? mac in my office, and the windows machine is in the basement. They are not linked. So, got the file from the mac, put it on a flash drive, headed to the basement and did what you said. the file complied without issue, but I had to tell the IDE that I was using the MEGA. Apparently one can compile a sketch without having the hardware. So the question is, why wasn't the morsecode.h in the file that I downloaded from this site? Mike, WB8VGE |
"Where in God's name does Ardunio hide the sketches?"
The compilations (including the hex file) are in C:\[user]\AppData\Local\Temp\ It is usually in a sub-directory with a long list of numbers. That is an encoded version of the date and compilation number and starts with "build". Things have changed a bit with recent versions, but most compilations can still be made with a "sketch" directory put where you want it. Make a sub-directory named after your sketch and put the .ino file and other .cpp and .h files in there. Also under the sketch directory, include a sub-directory named lib or libraries and put found libraries in there. (You can also include them in the main Arduino library directory using a zip import, but they are wiped out with each new version. Incidentally, running the Arduino IDE in "verbose" mode (see preferences) will give you locations of files in the window under the .ino window, as well as error messages if any. john AD5YE |
Mike Bryce
On Fri, Aug 18, 2017 at 01:37 pm, Jack Purdum wrote:
By God, Jack, I owe you a beer!That worked! Email is a bit odd here. It comes in on the? mac in my office, and the windows machine is in the basement. They are not linked. So, got the file from the mac, put it on a flash drive, headed to the basement and did what you said. the file complied without issue, but I had to tell the IDE that I was using the MEGA. Apparently one can compile a sketch without having the hardware. So the question is, why wasn't the morsecode.h in the file that I downloaded from this site? Mike, WB8VGE |
Jack Purdum
Really? From: Vince Vielhaber <vev@...> To: [email protected] Sent: Friday, August 18, 2017 4:50 PM Subject: Re: [BITX20] A little ardunio help Breathe Jack, breathe... Vince. On 08/18/2017 04:47 PM, Jack Purdum via Groups.Io wrote: > GEES...I JUST SENT YOU THE DAMN /MORSECODE.H/ FILE. THERE ARE TWO, 2, > DUO, DOS, SOURCE CODE FILES. LOOK AT THE BOTTOM OF THE EMAIL I SENT TO > YOU JUST BEFORE 4PM./MORSECODE.H/ IS ATTACHED AT THE BOTTOM OF THE > EMAIL. I'VE TOLD YOU HOW TO SET UP THE DIRECTORY AND THE FILES. IF YOU > INSIST ON USING A MAC, I CAN'T HELP YOU BECAUSE I DON'T HAVE ONE. > > > ------------------------------------------------------------------------ > *From:* Mike Bryce <prosolar@...> > *To:* [email protected] > *Sent:* Friday, August 18, 2017 4:37 PM > *Subject:* Re: [BITX20] A little ardunio help > > Okay... this is seriously getting under my skin. > > Downloaded the Macintosh version of the Arundino IDE > Downloaded all the needed files > Down loaded B40SoftwareR310106.ino > Tried to compile > No morsecode.h file > > Screen shot from the mac. Notice the B40software folders? I did both 106 > and 105/ > > > > This is the only thing in the folders. No morsecode.h > > > > > > I'll search for the file on the mac > > Mike, WB8VGE > > > -- ? Michigan VHF Corp.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
Vince Vielhaber
Breathe Jack, breathe...
toggle quoted message
Show quoted text
Vince. On 08/18/2017 04:47 PM, Jack Purdum via Groups.Io wrote:
GEES...I JUST SENT YOU THE DAMN /MORSECODE.H/ FILE. THERE ARE TWO, 2, --
Michigan VHF Corp. |
Jack Purdum
GEES...I JUST SENT YOU THE DAMN MORSECODE.H FILE. THERE ARE TWO, 2, DUO, DOS, SOURCE CODE FILES. LOOK AT THE BOTTOM OF THE EMAIL I SENT TO YOU JUST BEFORE 4PM. MORSECODE.H IS ATTACHED AT THE BOTTOM OF THE EMAIL. I'VE TOLD YOU HOW TO SET UP THE DIRECTORY AND THE FILES. IF YOU INSIST ON USING A MAC, I CAN'T HELP YOU BECAUSE I DON'T HAVE ONE.? From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 4:37 PM Subject: Re: [BITX20] A little ardunio help Okay... this is seriously getting under my skin. Downloaded the Macintosh version of the Arundino IDE Downloaded all the needed files Down loaded B40SoftwareR310106.ino Tried to compile No morsecode.h file Screen shot from the mac. Notice the B40software folders? I did both 106 and 105/ This is the only thing in the folders. No morsecode.h I'll search for the file on the mac Mike, WB8VGE |
Jack Purdum
Obviously it's not there because you didn't down load it! ?I just sent you the missing file...are you reading the emails I sent? The last one has the missing file attached. Don't download it into your download folder, download it into the same directory as the *.INO file is in. Do NOT start over using a Mac. That's like saying if your finger hurts, hit yourself in the head with a hammer and you'll forget about the finger. Do this: Create a new root directory on drive C: ? ?C:\B40Software Create a subdirectory named B40SoftwareRel0106: ???C:\B40Software\B40SoftwareRel0106 Copy BOTH source files into that directory: ???C:\B40Software\B40SoftwareRel0106\B40SoftwareRel0106,ino ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? MorseCode.h Now open the IDE, go to the File option and click Open. Navigate to the?C:\B40Software\B40SoftwareRel0106 directory and double-click on B40SoftwareRel0106,ino. The compiler will automatically load BOTH files, placing MorseCode.h on its own tab in the source code window. Now compile it. Jack, W8TEE From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 4:18 PM Subject: Re: [BITX20] A little ardunio help Humm... no bet on the donut. I know it's not there. This is simple and it's driving me nuts. Where in God's name does Ardunio hide the sketches? The B40 I downloaded has nothing but the sketch...not a thing...it's in my download folder. Click on the folder and whoa, there's the B40 sketch but nothing else. when I click on the file from this site, the ardunio IDE starts and then asks about moving the file, creating a folder... and so on. Okay, so where's it at? I'm going to try this whole thing again, using my mac. I'll let everyone know.? Mike |
Mike Bryce
Okay... this is seriously getting under my skin.
Downloaded the Macintosh version of the Arundino IDE Downloaded all the needed files Down loaded B40SoftwareR310106.ino Tried to compile No morsecode.h file Screen shot from the mac. Notice the B40software folders? I did both 106 and 105/ This is the only thing in the folders. No morsecode.h I'll search for the file on the mac Mike, WB8VGE |
Mike Bryce
Humm... no bet on the donut. I know it's not there.
This is simple and it's driving me nuts. Where in God's name does Ardunio hide the sketches? The B40 I downloaded has nothing but the sketch...not a thing...it's in my download folder. Click on the folder and whoa, there's the B40 sketch but nothing else. when I click on the file from this site, the ardunio IDE starts and then asks about moving the file, creating a folder... and so on. Okay, so where's it at? I'm going to try this whole thing again, using my mac. I'll let everyone know.? Mike |
Jack Purdum
I sent this out a few days ago, and multiple times before that: ==========================================================
Message bodyI take it that your disk image looks like this: C:\Users\Don\Documents\Arduino\Jacks_VFO_1_0_6\Jacks_VFO_1_0_6.ino ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??MorseCode.h For some reason it is not finding the MorseCode.h file in the directory above. Usually, this kind of error is caused by: 1) The file truly is not there, or 2) It is spelled differently in the directory. That is Morsecode.h, morseCode.h, morsecode.h, or some derivative of a spelling error since C is case-sensitive. Also, sometimes if you copy a piece of code from a word processor (e.g., Word), it replaces the "vertical" double quote marks with special ASCII characters that are "leaning" double quotes. This seems unlike here, as I think the error message with "funny quotes" is wprded differently. If things all look okay, try moving the two files to a totally new directory, like: C:\Temp\Jacks_VFO_1_0_6 Copy the files to that directory and try again. The reason for doing this is...I don't have a reason, but sometimes magic happens. It's called Divine Debugging. Jack, W8TEE =========================================================== As you can see, the MorseCode.h file should be in the sketch directory and I'll bet a dollar to a donut you didn't download it. Jack, W8TEE From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 3:30 PM Subject: Re: [BITX20] A little ardunio help Hummmm.... well couldn't find the file MorseCode.h so I had the computer look for it. MorseCode.h is not on my computer. NO place! Mike, WB8VGE |
Jack Purdum
Well, I'll bet that's why the compiler can't find it. Did you download it when you downloaded Rel106? You can download it from the users group File thread, or just use the one I've attached here. Jack, W8TEE From: Mike Bryce <prosolar@...> To: [email protected] Sent: Friday, August 18, 2017 3:30 PM Subject: Re: [BITX20] A little ardunio help Hummmm.... well couldn't find the file MorseCode.h so I had the computer look for it. MorseCode.h is not on my computer. NO place! Mike, WB8VGE |
You can always give full path to the files in the #include line. This makes the code custom and a bit less portable but experienced coders can probably handle that.? _._ On Fri, Aug 18, 2017 at 1:20 PM, Mike Bryce <prosolar@...> wrote:
|
to navigate to use esc to dismiss