Sign in Join
Wiki copytemporary

Lazarus on Raspberry Pi/fi: what changed

Revision 4 to 5. 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
15-` sudo apt-get update`\
16-` sudo apt-get upgrade`\
17-` sudo apt-get install fpc`\
18-` sudo apt-get install lazarus`
15+```text
16+ sudo apt-get update
17+ sudo apt-get upgrade
18+ sudo apt-get install fpc
19+ sudo apt-get install lazarus
20+```
1921
2022Tä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.
2123
2224### Kääntäminen lähdekoodeista
2325
2426You 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.
2527
2628![](/wiki-images/8/87/Lazarus_on_Raspberry_Pi.jpg)
2729
2830Lazarus on Raspberry Pi
2931
3032## Accessing external hardware
3133
3234![](/wiki-images/f/f2/Rpi_pinout_all_50.png)
3335
3436One 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.
3537
3638### wiringPi procedures and functions
3739
3840**Function wiringPiSetup:longint:** Initializes wiringPi system using the wiringPi pin numbering scheme.
3941
4042**Procedure wiringPiGpioMode(mode:longint):** Initializes wiringPi system with the Broadcom GPIO pin numbering shceme.
4143
4244**Procedure pullUpDnControl(pin:longint;** pud:longint): controls the internal pull-up/down resistors on a GPIO pin.
4345
4446**Procedure pinMode(pin:longint; mode:longint):** sets the mode of a pin to either INPUT, OUTPUT, or PWM_OUTPUT.
4547
4648**Procedure digitalWrite(pin:longint; value:longint):** sets an output bit.
4749
4850**Procedure pwmWrite(pin:longint; value:longint):** sets an output PWM value between 0 and 1024.
4951
5052**Function digitalRead(pin:longint):longint:** reads the value of a given Pin, returning 1 or 0.
5153
5254**Procedure delay(howLong:dword):** waits for at least howLong milliseconds
5355
5456**Procedure delayMicroseconds(howLong:dword):** waits for at least howLong microseconds
5557
5658**Function millis:dword:** returns the number of milliseconds since the program called one of the wiringPiSetup functions
5759
5860## External Links
5961
6062- [Raspberry Pi Foundation](http://www.raspberrypi.org)
6163- [Raspberry Pi Spy: Raspberry Pi tutorials, scripts, help and downloads](http://www.raspberrypi-spy.co.uk)
6264- [Lazarus wrapper unit for Gordon Henderson's wiringPi C library](http://www.lazarus.freepascal.org/index.php/topic,17404.0.html)
6365- [Pin layout of the wiringPi library](https://projects.drogon.net/raspberry-pi/wiringpi/pins/)
6466- [Additional information on Lazarus and Raspberry Pi at eLinux.org](http://www.elinux.org/Lazarus_on_RPi)
6567
6668---
6769*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).*
6870Category: Embedded/fi
6971Category: Lazarus/fi
7072Category: Linux/fi
7173Category: Raspberry Pi/fi
7274Category: Suomi

Back to history