Skip to content

Commit

Permalink
Update ThermalImage to fit API change
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Liu <andy@madmachine.io>
  • Loading branch information
andy0808 committed Apr 27, 2024
1 parent c38d6b6 commit 7e6a5c5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ while true {

// Pass all pixel info to the screen using SPI communication to display the
// generated thermal image.
screen.writeScreen(data)
data.withUnsafeBytes { ptr in
screen.writeScreen(ptr)
}
}

// The original pixels from the sensor is 8x8. By comparison, the screen is
Expand Down

0 comments on commit 7e6a5c5

Please sign in to comment.