It is possible to compile a few units, who access the GPIO port. Using the commandline.

Like hwwiringPi.Pas and the RPI_HAL.PAS

ALso working on a few i2c and PWM examples, written in Freepascal. And the LNet example lserver.pp to wireless over TCP/IP control the GPIO pin on my Rasberry model B.

I use the compile command: sudo fpc ./hwiringpi.pas
But: i do not use any extra command line parameters. Is this a way to solve this problem?

Greets, Wouter van Wegen
-->woutervanwegen@mijnplinq.nl

pi@raspberrypi ~ $ sudo fpc hwiringpi.pas
Free Pascal Compiler version 2.6.0-9+rpi1+wsf1 [2015/04/28] for arm
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling hwiringpi.pas
Assembling hwiringpi
92 lines compiled, 0.4 sec
pi@raspberrypi ~ $

pi@raspberrypi ~ $ sudo fpc raspberry.pas
Free Pascal Compiler version 2.6.0-9+rpi1+wsf1 [2015/04/28] for arm
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling raspberry.pas
Assembling raspberry
raspberry.pas(19,34) Error: Can't open resource file "/home/pi/raspberry.res"
raspberry.pas(19,34) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not specify a source file to be compiled)
pi@raspberrypi ~ $

Or do i have to take the .RES error litterally and create one of those? Please help

https://github.com/AkselMeola/Pascal-projects-on-Raspberry/blob/master…

LETOP:
dubbel gepost op
http://forum.lazarus.freepascal.org

Moeten we nu in het Frans antwoorden ?

Het lijkt er op dat je geen schrijfrechten hebt in de map \home\pi

Hij probeert een file raspberry.res aan te maken maar kan dat niet.

Hij schijnt wat dingen in een .res-file weg te willen schrijven begreep ik op de website van lazarus...

(Je mag hier gewoon nederlands schrijven, dat wordt beter gewaardeerd...)

Hartlijk bedankt. Volgens mij doet hij het. F***

Had mijn TCPIP to I2C converter hat al maanden gedaan.

na wat vinkjes te klooten in Midnight Commander.

Nu ga ik weer verder coden met het serieuse werk.

Groet, Een zeer blije WvW!

Shit. Valt uit.

Weet iemand, besides chmod optie in MC. De command line setting hiervan dat het goed komt? Als een tree?

Greets

En wat is nu precies de echte directory waar ik mijn .pas bestanden in moet zetten? Ik gebruik /Home/Pi en /Opt. Wat is de officele directory

[Bericht gewijzigd door pascalbythree op (35%)]

Maar weer een slotje, misschien dat de TS dan weer weet hoe hij moet posten (in het Nederlands, en zonder topickicks).

En het onderwerp ligt wel heel erg ver van elektronica af.

[Bericht gewijzigd door Henry S. op (27%)]