<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WinSCP | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/winscp/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Sun, 07 Jun 2020 08:33:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>WinSCP | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>My raspberry Pi touchscreen arrived but it wasn&#8217;t smooth going</title>
		<link>https://learncgames.com/my-raspberry-pi-touchscreen-arrived-but-it-wasnt-smooth-going/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-raspberry-pi-touchscreen-arrived-but-it-wasnt-smooth-going</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 12 Jun 2020 23:00:50 +0000</pubDate>
				<category><![CDATA[touchscreen]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[WinSCP]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=791</guid>

					<description><![CDATA[<p>I bought the Longruner (no, not a typo!) 7&#8243; touch screen and it turned up after a few days. It&#8217;s nicely made and similar to this, though it looks slightly different. That hand must be a dolls hand! It doesn&#8217;t have any documentation but there was a DVD with three MS Word documents which I [&#8230;]</p>
The post <a href="https://learncgames.com/my-raspberry-pi-touchscreen-arrived-but-it-wasnt-smooth-going/">My raspberry Pi touchscreen arrived but it wasn’t smooth going</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:671,&quot;href&quot;:&quot;http:\/\/longrunerpro.com\/a\/Products\/Products\/20190819\/135.html&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:672,&quot;href&quot;:&quot;https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205132646\/https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:24:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-13 06:07:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 06:57:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 11:27:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 13:35:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 08:46:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 08:48:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 15:14:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 07:25:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 01:56:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-13 05:47:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-19 11:52:55&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-19 11:52:55&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft size-full wp-image-794" src="https://learncgames.com/wp-content/uploads/2020/06/longruner.png" alt="" width="500" height="375" srcset="https://learncgames.com/wp-content/uploads/2020/06/longruner.png 500w, https://learncgames.com/wp-content/uploads/2020/06/longruner-300x225.png 300w" sizes="(max-width: 500px) 100vw, 500px" />I bought the Longruner (<em>no, not a typo!</em>) 7&#8243; touch screen and it turned up after a few days. It&#8217;s nicely made and similar to this, though it <a title="Link to Longruner" href="http://longrunerpro.com/a/Products/Products/20190819/135.html" target="_blank" rel="nofollow noopener noreferrer">looks slightly</a> different. That hand must be a dolls hand!</p>
<p>It doesn&#8217;t have any documentation but there was a DVD with three MS Word documents which I opened on my Windows PC (<em>It comes in useful sometimes!</em>). One of them the &#8220;7inch HDMI Display user Manual(En).docx&#8221; has a photo of the three ports.</p>
<p>There&#8217;s a full size HDMI socket and a USB to Android (<em>Micro USB-B I believe</em>) cable is included that plugs into a USB port and either of the Android type ports. You can either have power and touch screen with the port nearest the HDMI as I did or just power alone, if you want to use it as a monitor. The two green squares show the USB and touch/power cables.</p>
<p>When I switched it on, it just sat there saying no HDMI signal. That MS Word document included instructions to edit the config.txt in \boot. Of course I had no display but the Pi was plugged into the network and I ran WinSCP which logged in and let me view files. I don&#8217;t think you can edit files as root with WinSCP, and that config.txt file needs root access to edit it.</p>
<p>However I am a long time user of <a title="Link to putty official website" href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html" target="_blank" rel="noopener noreferrer">Putty</a>. (You can also get putty from putty.org but I don&#8217;t know if that is also an official one). After that I could ssh into the pi, do a <em>sudo -s</em> command to switch in root and then <em>nano /boot/config.txt </em>to edit config.txt.</p>
<p><img decoding="async" class="alignleft size-full wp-image-796" src="https://learncgames.com/wp-content/uploads/2020/06/longruner.jpg" alt="longruner touchscreen being touched" width="540" height="405" srcset="https://learncgames.com/wp-content/uploads/2020/06/longruner.jpg 540w, https://learncgames.com/wp-content/uploads/2020/06/longruner-300x225.jpg 300w" sizes="(max-width: 540px) 100vw, 540px" />Here&#8217;s a photo of my fat finger moving the cursor round the screen. It works surprisingly well, and the display is lovely though my photos probably do not do it justice.</p>
<p>These are the lines you paste into the end of the config.txt, save it out and reboot.</p>
<pre>max_usb_curren=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
display_rotate=0
hdmi_cvt 1024 600 60 6 0 0 0</pre>
<p>Now I just have to figure out how to use it in my games. The display is 1024 x 600 btw.</p>
<p>Plugging in a second monitor worked fine as this photo shows. The blacks are darker on the touchscreen but that&#8217;s just because the gammas don&#8217;t match and I was too lazy to change them!</p>
<p><img decoding="async" class="alignleft size-medium wp-image-805" src="https://learncgames.com/wp-content/uploads/2020/06/touchscreen-monitor-300x225.jpg" alt="Touchscreen and 2nd monitor on Raspberry Pi" width="300" height="225" srcset="https://learncgames.com/wp-content/uploads/2020/06/touchscreen-monitor-300x225.jpg 300w, https://learncgames.com/wp-content/uploads/2020/06/touchscreen-monitor.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /></p>The post <a href="https://learncgames.com/my-raspberry-pi-touchscreen-arrived-but-it-wasnt-smooth-going/">My raspberry Pi touchscreen arrived but it wasn’t smooth going</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">791</post-id>	</item>
		<item>
		<title>Developing for Raspberry Pi without one</title>
		<link>https://learncgames.com/developing-for-raspberry-pi-without-one/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=developing-for-raspberry-pi-without-one</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 09 May 2020 23:00:09 +0000</pubDate>
				<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[WinSCP]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=553</guid>

					<description><![CDATA[<p>Yes it is possible, as the screenshot shows. You can download a copy of Raspbian from Raspberry-pi. You can either download the .iso directly or save them a bit of bandwidth and do it via a file Torrent. It then takes about 15 minutes or so to install it. When you first run it, it [&#8230;]</p>
The post <a href="https://learncgames.com/developing-for-raspberry-pi-without-one/">Developing for Raspberry Pi without one</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:695,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201107231551\/https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 00:52:01&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 23:04:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-24 11:22:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 23:21:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 01:21:58&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 10:17:28&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 20:24:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 06:59:56&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 20:46:41&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:733,&quot;href&quot;:&quot;https:\/\/winscp.net\/eng\/index.php&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206023418\/https:\/\/winscp.net\/eng\/index.php&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 18:05:03&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-11 00:52:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 14:11:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 16:20:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 11:22:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 16:30:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 10:13:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 10:22:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-22 12:23:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-26 11:03:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-02 19:15:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 00:14:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 13:35:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 16:12:23&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:23&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:734,&quot;href&quot;:&quot;https:\/\/code.headmelted.com&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201201232800\/http:\/\/code.headmelted.com\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 18:05:05&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-24 11:22:34&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-28 07:04:08&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-09 06:32:09&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-17 10:22:41&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-08 00:14:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-14 20:46:39&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 20:46:39&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-554" src="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code.png" alt="Hyper-V RaspberryPi running VS Code" width="600" height="484" srcset="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code.png 600w, https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code-300x242.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" />Yes it is possible, as the screenshot shows. You can download a copy of Raspbian from <a title="Link to the desktop iso download link" href="https://www.raspberrypi.org/downloads/raspberry-pi-desktop/" target="_blank" rel="noopener noreferrer">Raspberry-pi</a>. You can either download the .iso directly or save them a bit of bandwidth and do it via a file Torrent. It then takes about 15 minutes or so to install it. When you first run it, it will do an update.</p>
<p>It looks exactly like Raspbian on a PI but there are one or two little things to bear in mind. It&#8217;s 32-bit, the clipboard doesn&#8217;t seem to work and SSH by default is disabled. It&#8217;s real easy to enable it, just find <em>Raspberry Pi Configuration</em>. Click the Raspberry in a circle menu button at the top, then click <em>Preferences</em> and there it is on the menu that pops up. In the Interfaces tab, tick the Enabled checkbox for SSH.</p>
<p>I use the excellent <a title="Link to official WinSCP website" href="https://winscp.net/eng/index.php" target="_blank" rel="noopener noreferrer">WinSCP</a> to connect to it. Conveniently the Pi will show you its ip address (or from a terminal run <em>ifconfig</em> and it will show you the ip address of eth0) and just put that in with username pi and your pi&#8217;s password which you should have changed when you set up Raspbian.</p>
<p>Finally you have to install Visual Studio Code and as usual, it&#8217;s not quite so easy. Most Linux distros these days are 64-bit and the official VS Code is only available for Debian in 64-bit and Raspbian is of course 32-bit. But there are <a title="Link to Headmelted.com" href="https://code.headmelted.com/" target="_blank" rel="noopener noreferrer">community builds</a> and it&#8217;s the same place that I got the ARM version from.</p>
<p>And here&#8217;s the result. A slightly sluggish (well it is under Hyper-V). I had to comment out the code that initialises the audio. Line 580 ish.</p>
<pre><code class="language-c" data-line="">/*	int success=Mix_OpenAudio(22050, AUDIO_S16LSB, 2, 8192);
	if (success==-1 ) {
		LogError(&quot;InitSetup failed to init audio&quot;);
	}
	LoadSoundFiles();
*/
</code></pre>
<p>And here&#8217;s the results.<br />
<img loading="lazy" decoding="async" class="alignleft size-full wp-image-555" src="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids.png" alt="Asteroids running on Hyper-V Raspbian" width="650" height="513" srcset="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids.png 650w, https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids-300x237.png 300w" sizes="auto, (max-width: 650px) 100vw, 650px" /></p>The post <a href="https://learncgames.com/developing-for-raspberry-pi-without-one/">Developing for Raspberry Pi without one</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">553</post-id>	</item>
	</channel>
</rss>
