Starting off very simple I have decided on a new project. For this post, I will start off with a total of 25 lines of code in C, to generate an executable, that will print out the Linux Date-Time in something akin to ISO 1806 Date-Time, something that should also be readable by Javascript( Nodejs…
Tag: Beaglebone
Simple Line / mux select
Originally posted by me on May 21, 2017 So, this is a variation on using GPIO, via direct memory access. The benefit to using this code, or similar. Is that there is only two syscalls for each line / mux select. Versus 12 syscalls if using the standard “Linux way” using open(), write(), read(), and…
Read from a DS18B20 temperature sensor
Originally posted by me on May 9, 2017 Again, very simple code to read from a device, and put that read information out to stdout. In this case, reading from a 1-wire DS18B20 sensor. The pin used is unimportant, so long as that pin is configurable as gpio, and is not already in use by…
Using the Maxim DS3232 on a Beaglebone black
Originally posted by me on May 9, 2017 So, this is partly for me, and partly for others who need a refresher, or just do not know how. But I will be making several post here over time on how to write very simply code, to do one thing, or another. These, used in conjunction with…