<?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>Programming-Archiv - flohs blog</title>
	<atom:link href="https://blog.florianehrle.de/en/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.florianehrle.de/en/category/programming/</link>
	<description>reboot tut gut</description>
	<lastBuildDate>Fri, 30 Jan 2026 01:34:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.florianehrle.de/wp-content/uploads/2025/10/cropped-icon-32x32.png</url>
	<title>Programming-Archiv - flohs blog</title>
	<link>https://blog.florianehrle.de/en/category/programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Lazarus with hardware access on the Raspberry Pi &#8211; rpi_hal</title>
		<link>https://blog.florianehrle.de/en/2025/03/04/lazarus-with-hardware-access-on-the-raspberry-pi-rpi_hal/</link>
					<comments>https://blog.florianehrle.de/en/2025/03/04/lazarus-with-hardware-access-on-the-raspberry-pi-rpi_hal/#respond</comments>
		
		<dc:creator><![CDATA[Florian Ehrle]]></dc:creator>
		<pubDate>Tue, 04 Mar 2025 07:04:00 +0000</pubDate>
				<category><![CDATA[Object Pascal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://blog.florianehrle.de/?p=7933</guid>

					<description><![CDATA[<p>A blessing for anyone who writes programs in Object Pascal on and for the Raspberry Pi. The strongest argument for using a single-board computer is direct access to [&#8230;]</p>
<p>Der Beitrag <a href="https://blog.florianehrle.de/en/2025/03/04/lazarus-with-hardware-access-on-the-raspberry-pi-rpi_hal/" data-wpel-link="internal">Lazarus with hardware access on the Raspberry Pi &#8211; rpi_hal</a> erschien zuerst auf <a href="https://blog.florianehrle.de/en" data-wpel-link="internal">flohs blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div style="height:18px" aria-hidden="true" class="wp-block-spacer"></div>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>



<div style="height:18px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph">A blessing for anyone who writes programs in Object Pascal on and for the Raspberry Pi. The strongest argument for using a single-board computer is direct access to hardware, which is no longer easily possible with x86-based computers.</p>



<p class="wp-block-paragraph">To greatly simplify this access when programming with Lazarus, there is a <strong><a href="https://github.com/rudiratlos/rpi-hal" data-wpel-link="external" target="_blank" rel="external noopener noreferrer">great hardware abstraction layer</a></strong> from <a href="https://github.com/rudiratlos" data-wpel-link="external" target="_blank" rel="external noopener noreferrer">rudiratlos </a>on GitHub:</p>



<h4 class="wp-block-heading"><strong>rpi_hal</strong></h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph">As usual, integration is done via uses. To do this, <em>rpi_hal.pas</em> and optionally <em>pfio.pas</em> must be located in the project folder:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#e1e4e8;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>uses
  RPi_HAL, PFIO;</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki github-dark" style="background-color: #24292e" tabindex="0"><code><span class="line"><span style="color: #F97583">uses</span></span>
<span class="line"><span style="color: #E1E4E8">  RPi_HAL, PFIO;</span></span></code></pre></div>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Among other things, I have successfully used this HAL in the Macintosh SE digital picture frame project. There is no easier way to use the GPIOs with Pascal!</p>



<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>
<p>Der Beitrag <a href="https://blog.florianehrle.de/en/2025/03/04/lazarus-with-hardware-access-on-the-raspberry-pi-rpi_hal/" data-wpel-link="internal">Lazarus with hardware access on the Raspberry Pi &#8211; rpi_hal</a> erschien zuerst auf <a href="https://blog.florianehrle.de/en" data-wpel-link="internal">flohs blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.florianehrle.de/en/2025/03/04/lazarus-with-hardware-access-on-the-raspberry-pi-rpi_hal/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
