|
Forum Index : Microcontroller and PC projects : Line Length Issue
| Author | Message | ||||
| Askjerry Newbie Joined: 21/09/2025 Location: United StatesPosts: 11 |
My workflow is to use NOTEPAD++ to write the code as it is a really good editor with search and replace etc. I Use TeraTerm to communicate with the PICO, 1us character delay, 10us line delay. I can then save my work in NOTEPAD++ and then from TeraTerm click "File" then "Send File" and select my file... it goes in without my fumble-fingers making errors in EDIT. The issue is that I just wrote a line of code that was 84 characters long... and when I went to save it (transfer it) to the PICO... it stopped transmitting that line at 80 characters. It obviously failed at that point. I tried using the Visual Basic trick of the underscore... Some long formula here that runs off_ the rest of that long formula But that didn't work. I tried setting TeraTerm to 100 characters... but it still dropped data after character 80. Is there a solution or do I need to figure out how to break every line down? This is mostly when I do lines like... text 220,160," "+ FORMAT$(pin(temp)-16,"%.2f")+"C ",CM,2,,&H00FFFF,&H000033 Thoughts? Suggestions? For the above I can break it into multiple strings then do a A$+B$+C$+D$ kind of thing... but I was wondering if it could be avoided? Yeah I know... first day on the forum and 3 posts. :-) Jerry |
||||
| NPHighview Senior Member Joined: 02/09/2020 Location: United StatesPosts: 209 |
Welcome! Here's my workflow using Notepad++: 1. Edit the program in Notepad++ 2. Save it to a local working directory. 3. Copy the full pathname of the working directory onto the clipboard. 4. Open Teraterm, and select "Send File". Specify the working directory, then select the file. Select XModem from the protocols. 5. Quickly return to the session with the Pico. Press F11 to initiate reception, on the Pico, via Xmodem. 6. File transfer will succeed or fail. If fail, return to step 4. Otherwise, attempt to run the file on the Pico using F2. 7. Save the program on the Pico or SD card attached to it. 8. Once you're happy with the program on the Pico, Xmodem it back via your Teraterm session to the local working directory. If you want, upload it to Github. Live in the Future. It's Just Starting Now! |
||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1646 |
Hi Jerry, I'm also using TT (an older version), but I don't have any problems with lines longer than 80 characters. I think the terminal settings (81x40) aren't relevant here. I also don't use underscores at the end of lines, but shouldn't that be enabled as an option beforehand? Regards Michael Did you use Xmodem? Edited 2025-09-22 09:08 by twofingers causality ≠ correlation ≠ coincidence |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6338 |
You need to set OPTION CONTINUATION LINES ON and the continuation characters are <space> followed by underscore. The usual way to transfer the code is In teraterm, "autosave" then paste the code in CRTL Z to finish Covered in the manual under Full Screen Editor Edited 2025-09-22 09:37 by TassyJim VK7JH MMedit |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3437 |
I use a variant of Jim's method -- copy from notepad++; in TeraTerm, F10 (for Autosave); CTRI Z when copy complete. An alternative is to have the text "autosave" as the first line of your program, and CTRL Z at the end. Then all you need to do is copy and then paste into TeraTerm. (This is vegiPete's method.) PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| Askjerry Newbie Joined: 21/09/2025 Location: United StatesPosts: 11 |
Ok... so this is how I am currently doing it... https://www.youtube.com/watch?v=_ZFirdyk1TY Ok... so you said... copy from notepad++; in TeraTerm, F10 (for Autosave); CTRI Z when copy complete. I tried... but it's not working... apparently you actually do additional steps... https://youtu.be/cKJwNoCcYk0 Let me try it differently. Yeah... that works... I got it now. https://www.youtube.com/watch?v=WwtDy9zemKQ Thanks folks! Jerry Edited 2025-09-22 12:02 by Askjerry |
||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1646 |
But you should also be familiar with XMODEM. It's much faster for large files. AUTOSAVE is more suitable for smaller amounts of data. causality ≠ correlation ≠ coincidence |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3437 |
Yes, omitted Ctrl-V to paste before the Ctrl-Z. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| Elijah 2 Newbie Joined: 08/03/2025 Location: United StatesPosts: 8 |
Wow this is NOT in the manual under Full Screen Editor nor anywhere else. Thank you so much for this one!!! |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4100 |
May be only in betas as yet; wouldn't be in the doc if so. John |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6338 |
It is a good idea to read the latest manuals. V6.00.03 Page 20 (The latest version on Geoffs website) VK7JH MMedit |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10533 |
And in the list of options - page 90 |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2787 |
If this is in TeraTerm Alt-V for paste and Alt-C for copy. Ctrl is used for other things. Copy to clipboard from notepad++. In TeraTerm:- F10 (for Autosave), Alt-V, Paste box appears if more than 1 line, <Enter>, Ctrl-Z when paste complete. Or using Xmodem. In TeraTerm:- F11 (XMODEM RECEIVE), Mouse to File -> Transfer -> Xmodem Send, navigate to file and select file, Ok. See manual 6.01R3, Commands, Xmodem - pp167,168 |
||||
| Elijah 2 Newbie Joined: 08/03/2025 Location: United StatesPosts: 8 |
I was in fact using an older manual. Thanks so much to Peter and the community for moving this project forward like this. I know this will make MMBasic that much more comfortable. I really appreciate all the work that goes into this! What a great project!!! Edited 2025-09-23 08:27 by Elijah 2 |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3437 |
Oops. Actually, in practice, I don't use either Ctrl-V (which doesn't work) or Alt-V (which does), but a right mouse click. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |