Sign in Join
Wiki copytemporary

Lazarus on Raspberry Pi/fi: what changed

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

OldNewLine
1-<figure>
21<img src="Lazarus_on_Raspberry_Pi_Raspian_Wheezy_version_2012-10-28.png" title="Lazarus Raspbian Wheezy:ssä" width="200" />
3-<figcaption>Lazarus Raspbian Wheezy:ssä</figcaption>
4-</figure>
52
63Raspberry 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.
74
85Raspberry 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.
96
107Lazarus toimii natiivisti Raspbian käyttöjärjestelmässä.
118
129## Lazaruksen asentaminen ja kääntäminen
1310
1411### Helppo asennus Raspbian:ssa
1512
1613Raspbian käyttöjärjestelmässä on helppo asentaa Lazarus ja Free Pascal. Tämä on onnistuu avaamalla pääteikkuna ja kirjoittamalla :
1714
1815` sudo apt-get update`\
1916` sudo apt-get upgrade`\
2017` sudo apt-get install fpc`\
2118` sudo apt-get install lazarus`
2219
2320Tä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.
2421
2522### Kääntäminen lähdekoodeista
2623
2724You 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.
2825
2926<File:Lazarus> on Raspberry Pi.jpg\|Lazarus on Raspberry Pi
3027
3128## Accessing external hardware
3229
33-<figure>
3430<img src="rpi_pinout_all_50.png" title="Raspberry Pi pinout of external connectors" width="300" />
35-<figcaption>Raspberry Pi pinout of external connectors</figcaption>
36-</figure>
3731
3832One 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.
3933
4034### wiringPi procedures and functions
4135
4236**Function wiringPiSetup:longint:** Initializes wiringPi system using the wiringPi pin numbering scheme.
4337
4438**Procedure wiringPiGpioMode(mode:longint):** Initializes wiringPi system with the Broadcom GPIO pin numbering shceme.
4539
4640**Procedure pullUpDnControl(pin:longint;** pud:longint): controls the internal pull-up/down resistors on a GPIO pin.
4741
4842**Procedure pinMode(pin:longint; mode:longint):** sets the mode of a pin to either INPUT, OUTPUT, or PWM_OUTPUT.
4943
5044**Procedure digitalWrite(pin:longint; value:longint):** sets an output bit.
5145
5246**Procedure pwmWrite(pin:longint; value:longint):** sets an output PWM value between 0 and 1024.
5347
5448**Function digitalRead(pin:longint):longint:** reads the value of a given Pin, returning 1 or 0.
5549
5650**Procedure delay(howLong:dword):** waits for at least howLong milliseconds
5751
5852**Procedure delayMicroseconds(howLong:dword):** waits for at least howLong microseconds
5953
6054**Function millis:dword:** returns the number of milliseconds since the program called one of the wiringPiSetup functions
6155
6256## External Links
6357
6458- [Raspberry Pi Foundation](http://www.raspberrypi.org)
6559- [Raspberry Pi Spy: Raspberry Pi tutorials, scripts, help and downloads](http://www.raspberrypi-spy.co.uk)
6660- [Lazarus wrapper unit for Gordon Henderson's wiringPi C library](http://www.lazarus.freepascal.org/index.php/topic,17404.0.html)
6761- [Pin layout of the wiringPi library](https://projects.drogon.net/raspberry-pi/wiringpi/pins/)
6862- [Additional information on Lazarus and Raspberry Pi at eLinux.org](http://www.elinux.org/Lazarus_on_RPi)
6963
7064---
7165*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).*
7266Category: Embedded/fi
7367Category: Lazarus/fi
7468Category: Linux/fi
7569Category: Raspberry Pi/fi
7670Category: Suomi

Back to history