Skip to content

Commit

Permalink
adding Zig examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Jun 30, 2024
1 parent c161a03 commit f3e9716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXAMPLES_Zig/spi_loop.zig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn main() !void {
//Transfer data
var i: i8 = 0;
while (i < 20) {
// Here some weird casting, expected something more straightforward but...oh, well, very strict type control and all that
// Here some weird casting, expected something more straightforward but...oh well, very strict type control and all that
// also, this is interacting with a C abi after all! more than good enough
const set2 = jetgpio.spiXfer(@intCast(spiInit), @constCast(tx.ptr), rx.ptr, 7);
if (set2 < 0) {
Expand Down

0 comments on commit f3e9716

Please sign in to comment.