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 Science in Engineering (MRU Software and Systems)
Depositing User: Stud. I
Date Deposited: 16 Oct 2023 07:21
Last Modified: 06 Nov 2025 09:54
URI: https://eprints.ost.ch/id/eprint/1126

Actions (login required)

View Item
View Item