Sign in Join
Wiki copytemporary

Lazarus on Raspberry Pi/fi: what changed

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

OldNewLine
1-<img src="Lazarus_on_Raspberry_Pi_Raspian_Wheezy_version_2012-10-28.png" title="Lazarus Raspbian Wheezy:ssä" width="200" />
1+![](/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
2626<File:Lazarus> on Raspberry Pi.jpg\|Lazarus on Raspberry Pi
2727
2828## Accessing external hardware
2929
30-<img src="rpi_pinout_all_50.png" title="Raspberry Pi pinout of external connectors" width="300" />
30+![](/wiki-images/f/f2/Rpi_pinout_all_50.png)
3131
3232One 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.
3333
3434### wiringPi procedures and functions
3535
3636**Function wiringPiSetup:longint:** Initializes wiringPi system using the wiringPi pin numbering scheme.
3737
3838**Procedure wiringPiGpioMode(mode:longint):** Initializes wiringPi system with the Broadcom GPIO pin numbering shceme.
3939
4040**Procedure pullUpDnControl(pin:longint;** pud:longint): controls the internal pull-up/down resistors on a GPIO pin.
4141
4242**Procedure pinMode(pin:longint; mode:longint):** sets the mode of a pin to either INPUT, OUTPUT, or PWM_OUTPUT.
4343
4444**Procedure digitalWrite(pin:longint; value:longint):** sets an output bit.
4545
4646**Procedure pwmWrite(pin:longint; value:longint):** sets an output PWM value between 0 and 1024.
4747
4848**Function digitalRead(pin:longint):longint:** reads the value of a given Pin, returning 1 or 0.
4949
5050**Procedure delay(howLong:dword):** waits for at least howLong milliseconds
5151
5252**Procedure delayMicroseconds(howLong:dword):** waits for at least howLong microseconds
5353
5454**Function millis:dword:** returns the number of milliseconds since the program called one of the wiringPiSetup functions
5555
5656## External Links
5757
5858- [Raspberry Pi Foundation](http://www.raspberrypi.org)
5959- [Raspberry Pi Spy: Raspberry Pi tutorials, scripts, help and downloads](http://www.raspberrypi-spy.co.uk)
6060- [Lazarus wrapper unit for Gordon Henderson's wiringPi C library](http://www.lazarus.freepascal.org/index.php/topic,17404.0.html)
6161- [Pin layout of the wiringPi library](https://projects.drogon.net/raspberry-pi/wiringpi/pins/)
6262- [Additional information on Lazarus and Raspberry Pi at eLinux.org](http://www.elinux.org/Lazarus_on_RPi)
6363
6464---
6565*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).*
6666Category: Embedded/fi
6767Category: Lazarus/fi
6868Category: Linux/fi
6969Category: Raspberry Pi/fi
7070Category: Suomi

Back to history