Skip to content

Conversation

kubamracek
Copy link
Collaborator

Fixes a build error:

/Users/kuba/Documents/swift-embedded-examples/pico2-neopixel/Sources/Application/Application.swift:51:30: error: type 'WS2812' has no member 'pio_instructions'
 49 | func configurePio() {
 50 |   // Load the assembled program directly into the PIO's instruction memory.
 51 |   withUnsafeBytes(of: WS2812.pio_instructions) { pointer in
    |                              `- error: type 'WS2812' has no member 'pio_instructions'
 52 |     let pioInstructions = pointer.assumingMemoryBound(to: UInt16.self)
 53 |     for (index, pio_instr) in pioInstructions.enumerated() {

make: *** [build] Error 1

@kubamracek kubamracek requested a review from rauhul as a code owner December 14, 2024 23:40
@kubamracek kubamracek merged commit 6b25a60 into main Dec 15, 2024
6 checks passed
@kubamracek kubamracek deleted the fix-neopixel-build branch December 15, 2024 06:13
trundlebits pushed a commit to trundlebits/swift-embedded-examples that referenced this pull request Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants