Skip to content

Commit f31eb34

Browse files
authored
Update i2c_bus_scan.zig
1 parent 0d01ae6 commit f31eb34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/raspberrypi/rp2xxx/src/i2c_bus_scan.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn main() !void {
3131
const scl_pin = gpio.num(5);
3232
inline for (&.{ scl_pin, sda_pin }) |pin| {
3333
pin.set_slew_rate(.slow);
34-
pin.set_schmitt_trigger(.enabled);
34+
pin.set_schmitt_trigger_enabled(true);
3535
pin.set_function(.i2c);
3636
}
3737

0 commit comments

Comments
 (0)