To show the complexity of political positions regarding the General Data Protection Regulation in the exhibition Privacy Arena the media artists Mike Huntemann, Isabel Paehr and Jörn Röder built an installation in which phones constantly ring. This gist shows the code I wrote to make the phones react to the visitor's actions. I used a Raspberry Pi with a piezo to create annoying sounds and a flex sensor to measure if visitors interact with the phones. Once a visitor pulls down a phone to answer it, a sound is played that reads a quote from a politician/media/lobbyist/etc involved in the process of making the General Data Protection Regulation. The Raspberry Pi runs a Python script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ship { | |
//properties | |
float shipPosX; | |
float shipPosY; | |
//constructor | |
Ship (float shipPosX, float shipPosY) { | |
this.shipPosX = shipPosX; | |
this.shipPosY = shipPosY; | |
} |