<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">It's possible but I've done it many
      years ago, I don't remember all the details .</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">In think you'll have to use H2PAS ( <a
        moz-do-not-send="true"
href="https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries">https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries</a>
      ).</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">From what I see from main.c, I think
      you'll have to convert the following headers:</div>
    <div class="moz-cite-prefix">
      <pre>#include "clk.h"
#include "gpio.h"
#include "dma.h"
#include "pwm.h"
#include "version.h"
#include "ws2811.h"
</pre>
    </div>
    <div class="moz-cite-prefix">And I guess you'll have to add
      something like {$linklib libws2811.a}  (after looking at <a
        moz-do-not-send="true"
href="https://github.com/rpi-ws281x/rpi-ws281x-python/blob/master/library/Makefile">https://github.com/rpi-ws281x/rpi-ws281x-python/blob/master/library/Makefile</a>
      )</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">May be too if you have object files *.o
      you can link them with something like {$L ws2811.o}</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">A tutorial showing how to use
      object-code and libraries created in C (I found it from
      <a class="moz-txt-link-freetext" href="https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries">https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries</a>
      )<br>
    </div>
    <div class="moz-cite-prefix"><a moz-do-not-send="true"
href="https://github.com/williamhunter/pascal-bindings-for-c/blob/master/docs/Creating%20Pascal%20bindings%20for%20C%20(v1.0).pdf">https://github.com/williamhunter/pascal-bindings-for-c/blob/master/docs/Creating%20Pascal%20bindings%20for%20C%20(v1.0).pdf</a><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Le 31/10/2019 à 20:32, James Richters a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:098801d59021$ffdece10$ff9c6a30$@productionautomation.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">I got my Raspberry pi working with the user
          space library written in C: at  <a
            href="https://github.com/jgarff/rpi_ws281x"
            moz-do-not-send="true">https://github.com/jgarff/rpi_ws281x</a>
          with python and got my LED strip to light up with the
          examples.  I also have FPC 3.0.4 installed on the pi.   I
          would really like to be able to use the C library with FPC. 
           I have some other C libraries that I’ve managed to use with
          FPC, but those were .dlls, but this doesn’t have .dlls.  Would
          accessing this from FPC even be possible?  And if so does
          anyone have an example of some C library that doesn’t have
          .dlls being accessed from FPC? <o:p></o:p><o:p> <br>
          </o:p></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>