Categories
Arduino Troubleshooting Windows

Arduino Leonardo, VirtualBox, and Windows

I realize this post may be useful to about three other people in the world, but sharing is caring.

What I wanted to do

On my Windows 11 machine I wanted to be able to write and upload firmware to an Arduino Pro Micro (Leonardo) using PlatformIO.

The standard way to accomplish this is to install PlatformIO in VSCode for Windows and you’re done. However, I’m a bit of long time *nix user and really like my PlatformIO + Git workflow in that environment.

WSL sounds like a great option for this case, but unfortunately from what I’ve read, serial communication doesn’t play too nicely without a bunch of hoops to jump through.

To keep things (somewhat) simple I installed a Linux VM through VirtualBox and added a USB Device Filter for the attached Arduino Leonardo so it would be forwarded and accessible by PlatformIO. Using VSCode as my editor would still be possible thanks to its awesome remote features.

Categories
iOS Projects Thoughts

Happy New Year!

Categories
Thoughts

Watch your tabs!

Yay computers!

Because I missed a tab in a Python script, my home Docker box has been running with a higher-than-necessary CPU utilization and spiky temperatures for five months. 😬

Tab has now been tabbed. 🐍

Categories
Projects Raspberry Pi

Snake Eyes + Servos

Categories
Fun

Carve Different

A pumpkin with the Apple logo carved in it.
Categories
Swift SwiftUI

Squishy buttons!

Categories
Swift SwiftUI

Faux Notch Fun

I’ve seen a lot of these little “fake notch” apps pop up since Apple’s new MacBooks were announced, but I didn’t see a lot of source code – so of course I was nerd sniped.

Here’s a basic example of making one using AppKit and SwiftUI!

Categories
iOS Projects Swift SwiftUI

Wyze Cam in iOS

Categories
News

Joining Automattic

I’m thrilled to be joining the fine folks at Automattic this month as a mobile software engineer. Though I’ll miss all of my wonderful Clemson coworkers immensely, I’m excited for the road ahead. 🚀

Categories
Arduino Coding iOS Projects Swift SwiftUI

Flip Dots!

I saw flip dots (also called flip discs) last year for the first time and instantly knew I needed some in my life. If you’re not familiar with them, check out how they work!

The particular model I have is the ALFAZETA XY5, which may be the easiest way to get up and running, but certainly not the least expensive.

After getting the board, all you need is:

  1. 24V power supply
  2. Something that talks over RS485 (in my case I used an ESP8266 connected to a MAX3485 board)
  3. Their documentation that defines the controller data protocol

I plan to write in more detail how it all works, but for this demo the stack is:

  1. SwiftUI app that runs SwiftGFXWrapper (which is mainly Adafruit’s GFX Library under the hood)
  2. The app sends the entire pixel buffer over UDP to the ESP8266
  3. The ESP8266 sends data to the XY5 over RS485 using their controller’s protocol

Update: Here’s more info on how it all works!