Different Approaches to control GPIO Pins of the Raspberry Pi using Haskell

Schmidli, Eliane Irène (2023) Different Approaches to control GPIO Pins of the Raspberry Pi using Haskell. Masters thesis, OST Ostschweizer Fachhochschule.

[thumbnail of 1_ElianeSchmidli_GPIO.pdf] Text
1_ElianeSchmidli_GPIO.pdf - Supplemental Material

Download (349kB)

Abstract

The functional programming language Haskell allows the writing of elegant code and reduces the likelihood of runtime errors. This advantage can also be used when programming the General Purpose Input/Output (GPIO) pins on the Raspberry Pi. This paper presents three approaches in Haskell for controlling GPIO pins. The first method uses the GPIO sysfs interface, the second sends commands via sockets to the Python library gpiozero, and the third uses the Foreign Function Interface (FFI) to call functions from the C library bcm2835. The approaches described have different strengths and weaknesses, and it depends on the use case which approach is most suitable.

Item Type: Thesis (Masters)
Subjects: Area of Application > Development Tools
Technologies > Programming Languages > Haskell
Metatags > IFS (Institute for Software)
Divisions: Master of Advanced Studies in Software Engineering
Depositing User: Stud. I
Contributors:
Contribution
Name
Email
Thesis advisor
Mehta, Farhad
UNSPECIFIED
Date Deposited: 16 Oct 2023 07:21
Last Modified: 16 Oct 2023 07:21
URI: https://eprints.ost.ch/id/eprint/1126

Actions (login required)

View Item
View Item