Sign in Join
Wiki copytemporary

Lazarus on Raspberry Pi/fi: what changed

Revision 3 to 4. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11![](/wiki-images/e/ef/Lazarus_on_Raspberry_Pi_Raspian_Wheezy_version_2012-10-28.png)
22
33Raspberry Pi on pieni noin luottokortin kokoinen yhden levyn tietokone. Sen on kehittänyt Britannialainen Raspberry Pi säätiö jonka tarkoituksena on edistää opetusta tietojenkäsittelytieteessä. Raspberry Pi:tä käytetään myös useisiin muihin tarkoituksiin, joita ovat muun muuassa erilaiset mediapalvelimet, robotiikka ja säätötekniikka.
44
55Raspberry Pi säätiö suosittelee Raspbian Wheezy:ä käyttöjärjestelmäksi. Vaihtoehtoisia käyttöjärjestelmiä Raspberry Pi:ssä ovat RISC OS, eri Linux-jakelut ja jopa Android.
66
77Lazarus toimii natiivisti Raspbian käyttöjärjestelmässä.
88
99## Lazaruksen asentaminen ja kääntäminen
1010
1111### Helppo asennus Raspbian:ssa
1212
1313Raspbian käyttöjärjestelmässä on helppo asentaa Lazarus ja Free Pascal. Tämä on onnistuu avaamalla pääteikkuna ja kirjoittamalla :
1414
1515` sudo apt-get update`\
1616` sudo apt-get upgrade`\
1717` sudo apt-get install fpc`\
1818` sudo apt-get install lazarus`
1919
2020Tämä asentaa esikäännetyn version Lasaruksesta joka on Raspbianin pakettien hallinnassa. Jotta tämä onnistuu on verkkoyhteys tarpeen. Asennus voi kestää noin 30 minuuttia, mutta merkittäviä osia tässä prosessissa tapahtuu automaattisesti. Asennuksen jälkeen voi välittömästi alkaa käyttämään Lasarusta. Lazarus löytyy LXDE Käynnistä-valikon Programming osiossa.
2121
2222### Kääntäminen lähdekoodeista
2323
2424You may want to compile Lazarus from subversion sources. See \[<http://www.michellcomputing.co.uk/blog/?p=72>: Michell Computing: Lazarus on the Raspberry Pi\] for details.
2525
26-<File:Lazarus> on Raspberry Pi.jpg\|Lazarus on Raspberry Pi
26+![](/wiki-images/8/87/Lazarus_on_Raspberry_Pi.jpg)
27+
28+Lazarus on Raspberry Pi
2729
2830## Accessing external hardware
2931
3032![](/wiki-images/f/f2/Rpi_pinout_all_50.png)
3133
3234One of the goals in the development of Raspberry Pi was to facilitate effortless access to external devices like sensors and actuators. One way to use this capability is Alex Schaller's wrapper unit for Gordon Henderson Arduino compatible wiringPi library.
3335
3436### wiringPi procedures and functions
3537
3638**Function wiringPiSetup:longint:** Initializes wiringPi system using the wiringPi pin numbering scheme.
3739
3840**Procedure wiringPiGpioMode(mode:longint):** Initializes wiringPi system with the Broadcom GPIO pin numbering shceme.
3941
4042**Procedure pullUpDnControl(pin:longint;** pud:longint): controls the internal pull-up/down resistors on a GPIO pin.
4143
4244**Procedure pinMode(pin:longint; mode:longint):** sets the mode of a pin to either INPUT, OUTPUT, or PWM_OUTPUT.
4345
4446**Procedure digitalWrite(pin:longint; value:longint):** sets an output bit.
4547
4648**Procedure pwmWrite(pin:longint; value:longint):** sets an output PWM value between 0 and 1024.
4749
4850**Function digitalRead(pin:longint):longint:** reads the value of a given Pin, returning 1 or 0.
4951
5052**Procedure delay(howLong:dword):** waits for at least howLong milliseconds
5153
5254**Procedure delayMicroseconds(howLong:dword):** waits for at least howLong microseconds
5355
5456**Function millis:dword:** returns the number of milliseconds since the program called one of the wiringPiSetup functions
5557
5658## External Links
5759
5860- [Raspberry Pi Foundation](http://www.raspberrypi.org)
5961- [Raspberry Pi Spy: Raspberry Pi tutorials, scripts, help and downloads](http://www.raspberrypi-spy.co.uk)
6062- [Lazarus wrapper unit for Gordon Henderson's wiringPi C library](http://www.lazarus.freepascal.org/index.php/topic,17404.0.html)
6163- [Pin layout of the wiringPi library](https://projects.drogon.net/raspberry-pi/wiringpi/pins/)
6264- [Additional information on Lazarus and Raspberry Pi at eLinux.org](http://www.elinux.org/Lazarus_on_RPi)
6365
6466---
6567*From the Free Pascal wiki, page "Lazarus on Raspberry Pi/fi", as it stood on 2013-09-22 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
6668Category: Embedded/fi
6769Category: Lazarus/fi
6870Category: Linux/fi
6971Category: Raspberry Pi/fi
7072Category: Suomi

Back to history