Now I can program my robot using Swift!!!! SwiftyGPIO
Raspberry Pi
A Better RegularExpression
As promised a while ago I've sat down and hammered out a better replacement for Swift's NSRegularExpression class. As I said then, NSRegularExpression is not actually a Swift class but rather an Objective-C class that has been bridged over to Swift via Swift's excellent ability to interface with C, C++, and Objective-C libraries directly. But … Continue reading A Better RegularExpression
Fastest Way To Get The Time
So, for my 6502/6510 emulator project I've been trying to figure out the best (read that, "fastest") way to get the time with nanosecond resolution. I need this because the North American version of the Commodore 64 ran at 1.02MHz (1,022,727Hz) and so that means the clock "ticks" every 977.8 nanoseconds. And that's just for … Continue reading Fastest Way To Get The Time
Swift 5.3 for Raspberry Pi 4
Here is a build of Swift 5.3 for the Raspberry Pi 4 running Ubuntu Mate 20.04. See my post about the Odroid C2 for installation instructions. USE AT YOUR OWN RISK!!! I provide absolutely no warrantee with this at all! Swift 5.3 for the Raspberry Pi 4: https://www.dropbox.com/s/7l39d5df1zvbkm8/swift5.3-aarch64-rpi4-ubuntu-linux-20.04.tar.bz2?dl=0
Swift on an Odroid C2
Over the weekend I managed to get a build of Swift working on the Odroid C2 SBC. As soon as I get a chance I'll TAR up the build and put it up on Dropbox. The build for the Raspberry Pi is still compiling. Here's the little sample program I wrote to test it out. … Continue reading Swift on an Odroid C2
Power Supply (updated)
Power Supply
I needed a power supply that could give out enough peak current to power at least three Raspberry Pi 2s. Just idle one Raspberry Pi 2 can draw almost 500 mA but at peak processing speed one can draw around 2 Amps at 5V. I didn't want to have to have three "wall warts" so I … Continue reading Power Supply