Week | 13


Interface and Application Programming


How I’m writing an application that interfaces with an input device.


25 April 2018 12:30:

This week’s assignment is to write an application, regardless of the language, and use it to read something from a input or output device I’ve previously made. I have decided to use the temperature sensor I’ve made on week 11 as the input device and to build upon the .py interface written by Neil: hello.temp.45. py. Since Neil’s code is in Python and I wanted to program my final project in that language, I felt this would be a nice opportunity to start familiarising myself with the language.

I have no previous experience in programming, and this is one of the first few experiences I’ve had with coding, apart from the other interactions I previously had throughout Fab Academy. Even simple adjustments like the ones below are somewhat challenging, as this is, literally, a whole new language I have to learn.

As you can see below in a comparison of my “New Code” and Neil’s original code, all changes and additions made are in green, on the left side and their relative originals on the right side.

Original Interface

New Interface

Here’s a video of the board / interface working together:


Here’s the original code from Neil: hello.temp.45. py and the new one I’ve made:andre_hello.temp.45.py.

Some of the resources that were helpful to me throughout this exercise were:

Tkinter
Date and Time
Events and Bindings