Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-12 04:31:30 EDT

Explore

PostsPeople
LatestRanked
@emorydunn.mastodon.tinycart.club.ap.brid.gySep 26, 2026, 1:42 AM

Doing some very basic UI work for the dial. I added a new event that fires for each digit so I can add a bit of digital feedback as the physical dial rotates

#EmbeddedSwift #SwiftLang

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 21, 2026, 12:41 AM

If I were feeling particularly ambitious I’d combine this with the Pico-based clock so I could dial letter directly to the display.

The clock could also use a rewrite in Swift, just for fun

#EmbeddedSwift

A photo of the rotary dial connected to a Pico on a breadboard next to the LED segment display clock I built with another Pico
@emorydunn.mastodon.tinycart.club.ap.brid.gySep 21, 2026, 12:35 AM

Couldn't resist turning the rotary dial into a shitty (not a) keyboard.

#EmbeddedSwift

A screenshot of the code, plus some logging, which takes each dialed number and converts it into a letter. Dialing the same number within a 5-second window increments the letter to the next on the dial and dialing 10 deletes the last character. For vanity I’m spelling out my name
@emorydunn.mastodon.tinycart.club.ap.brid.gySep 20, 2026, 9:35 PM

I changed how I was adding the library to pico_add_library, which is how the PicoSDK handles its own libraries, and now everything is happy. Time to test it out on a real library, not just my test project

#EmbeddedSwift

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 20, 2026, 9:10 PM

Alright, made a little bit of progress. I changed the library type to STATIC and now the compiler says it's created for the wrong target, which is good news! That means the linking is working, probably

#EmbeddedSwift

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 20, 2026, 8:40 PM

I’m trying to include a remote SPM library by adding a CMake library in the package which can be included in the main CMakeLists. Unfortunately the Swift compiler can't find the types in the library. My guess is that's because the library doesn't have a header file

#EmbeddedSwift

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 19, 2026, 2:42 AM

Now that I'm diving back into #EmbeddedSwift has there been any progress on integrating SPM? Previously I’ve defined shared components in a target and just manually included them in CMakeLists and made local copies of files included in dependencies that I need.

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 7, 2026, 5:52 PM

Finally got it once I found a more complete example for the CMakeLists, which included a bunch of other options.

A bit of changes to the sample Swift code to blink the LED on a Pico W and everything is compiling and blinking.

#SwiftLang #EmbeddedSwift

A Raspberry Pi Pico W on a breadboard blinking its little LED on and off every quarter of a second
@emorydunn.mastodon.tinycart.club.ap.brid.gySep 7, 2026, 5:18 PM

I tried installing a newer version of the ARM toolchain. Apparently I had a couple versions installed with a mix of symlinks, so that's been cleaned up.

Unfortunately all that's done is swap one unknown argument for another, this time in the linker.

#SwiftLang #EmbeddedSwift

@emorydunn.mastodon.tinycart.club.ap.brid.gySep 6, 2026, 8:20 PM

Resolved the first problem by using SwiftBlinky, guess it doesn't like the hyphen?

Still not sure about the unknown argument. It looks like it's being added by CMake, so one would think it would be a valid argument.

#SwiftLang #EmbeddedSwift