Recent

Author Topic: Raspberry Freepascal/Lazarus components  (Read 11589 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Raspberry Freepascal/Lazarus components
« on: June 21, 2016, 03:32:39 pm »
Can anybody multiple verify weither one of these component packs support I2C routines, connected to the GPIO pin Header. In the Pascal Syntax

1: RPI_HAL
2: PascalIO
3: Wiring Pi
4: Is there a other pack? or with native code only?

Greets, Wouter van Wegen
woutervanwegen@mijnplinq.nl

Thaddy

  • Hero Member
  • *****
  • Posts: 14377
  • Sensorship about opinions does not belong here.
Re: Raspberry Freepascal/Lazarus components
« Reply #1 on: June 21, 2016, 04:05:27 pm »
Wiring Pi supports it (X2) and I am using it. See the wiring pi documentation
I really dunno about the others.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Re: Raspberry Freepascal/Lazarus components
« Reply #2 on: June 21, 2016, 04:38:30 pm »
He!,  is that with using the "PascalWrapper" ? Or did you load a .dll in C?

ykot

  • Full Member
  • ***
  • Posts: 141
Re: Raspberry Freepascal/Lazarus components
« Reply #3 on: June 21, 2016, 04:52:13 pm »
For Raspberry PI, there is also PXL.

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Re: Raspberry Freepascal/Lazarus components
« Reply #4 on: June 22, 2016, 09:57:26 am »
Working on the PXL installation. Does anybody have another one?

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: Raspberry Freepascal/Lazarus components
« Reply #5 on: June 22, 2016, 11:51:22 am »
Hi,

  I don't know how low level do you want to go, but there is the Ultibo ( ultibo.org ) unikernel type project.

regards,
« Last Edit: June 22, 2016, 12:04:25 pm by Dimitrios Chr. Ioannidis »

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: Raspberry Freepascal/Lazarus components
« Reply #6 on: June 22, 2016, 11:52:35 am »
Hi,

For Raspberry PI, there is also PXL.

  it will be "interesting" if you and ultibo people could get in touch with each other.

regards,

Thaddy

  • Hero Member
  • *****
  • Posts: 14377
  • Sensorship about opinions does not belong here.
Re: Raspberry Freepascal/Lazarus components
« Reply #7 on: June 22, 2016, 01:24:26 pm »
He!,  is that with using the "PascalWrapper" ? Or did you load a .dll in C?

dll? I am not using Windows 10 Iot.

No I simply used h2pas to translate the C headers for the shared library. In the wiki there is more information from someone else who did about the same but wrote a neat class for it.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

ykot

  • Full Member
  • ***
  • Posts: 141
Re: Raspberry Freepascal/Lazarus components
« Reply #8 on: June 22, 2016, 05:48:28 pm »
Working on the PXL installation. Does anybody have another one?
It doesn't require installation, just extract it, open one of the Raspberry PI samples and you should be ready to go. This should work both for cross-compilation and direct compilation on device itself, whichever you prefer. Cross-compilation of OpenGL ES examples (for instance, the one that uses GPU for rendering and then outputs rendered scene to SPI display) might require copying some files from Raspberry PI to desktop for linking - if you get stuck at this, please let me know. Note that on Raspberry PI 2 and 3 with latest distro you can even use samples from "desktop" sub-folder that use regular OpenGL.

it will be "interesting" if you and ultibo people could get in touch with each other.
Thanks, I registered and posted reply on their forums, waiting for moderation.

Thaddy

  • Hero Member
  • *****
  • Posts: 14377
  • Sensorship about opinions does not belong here.
Re: Raspberry Freepascal/Lazarus components
« Reply #9 on: June 22, 2016, 08:15:20 pm »
Working on the PXL installation. Does anybody have another one?
It doesn't require installation, just extract it, open one of the Raspberry PI samples and you should be ready to go. This should work both for cross-compilation and direct compilation on device itself, whichever you prefer. Cross-compilation of OpenGL ES examples (for instance, the one that uses GPU for rendering and then outputs rendered scene to SPI display) might require copying some files from Raspberry PI to desktop for linking - if you get stuck at this, please let me know. Note that on Raspberry PI 2 and 3 with latest distro you can even use samples from "desktop" sub-folder that use regular OpenGL.

it will be "interesting" if you and ultibo people could get in touch with each other.
Thanks, I registered and posted reply on their forums, waiting for moderation.

These people are reading and writing on this forum too ;) I guess.
Btw: just tested some simple PXL on RPi 3. Impressive.

Posted from RPi 3 this time.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

ykot

  • Full Member
  • ***
  • Posts: 141
Re: Raspberry Freepascal/Lazarus components
« Reply #10 on: June 23, 2016, 08:12:38 pm »
These people are reading and writing on this forum too ;) I guess.
I've got my moderated post approved, the thread in question is this.

Btw: just tested some simple PXL on RPi 3. Impressive.
Thanks. :)

Ultibo

  • New Member
  • *
  • Posts: 36
    • Ultibo.org
Re: Raspberry Freepascal/Lazarus components
« Reply #11 on: October 24, 2016, 11:31:40 am »
it will be "interesting" if you and ultibo people could get in touch with each other.
Just to update on this topic, Asphyre/PXL has now been ported to Ultibo and is available for download.

Please see the announcement on the Ultibo forum for more information https://ultibo.org/forum/viewtopic.php?f=4&t=338
Ultibo.org | Make something amazing
https://ultibo.org

Threads, multi-core, OpenGL, Camera, FAT, NTFS, TCP/IP, USB and more in 3MB with 2 second boot!

Thaddy

  • Hero Member
  • *****
  • Posts: 14377
  • Sensorship about opinions does not belong here.
Re: Raspberry Freepascal/Lazarus components
« Reply #12 on: October 24, 2016, 01:39:04 pm »
There needs to be an article in the MagPi covering all of these matters Pi related..
I am almost at the end of my bet (that a Raspberry Pi can actually replace a desktop computer without the hype) ,so I can use something different from the RPi 3 (I decided I won't) soon as my daily private computer and compiled and wrote almost every code I posted here from a Raspberry Pi for the last months.
I know there are more than a 100 (my guess is way higher)  people here on this forum alone that own at least one of them, let's make them actually use them!.

« Last Edit: October 24, 2016, 01:46:15 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Raspberry Freepascal/Lazarus components
« Reply #13 on: October 24, 2016, 01:59:41 pm »
Well, I have very many of them (#1,#2,#3) running 24/7 collecting data and controlling hardware (pressure tanks, water pumps, HVAC machinery, battery chargers).
All run Arch (in readonly-mode), with FPC software doing the work. And the mORMot for remote data collection.
So, they are in actual use in my case.

I am now toying with Odroid-C2 and FriendlyARM devices.
Especially, the eMMC devices are interesting due to their reliability and speed.

I can recommend the Odroid-C2 with eMMC: as fast as a desktop ! And very good temperature range.

 

TinyPortal © 2005-2018