Skip to content

Commit

Permalink
adding Zig examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Jul 2, 2024
1 parent 539ca07 commit f5289a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EXAMPLES_C++/lcd_i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(int argc, char *argv[]){

const int LCD_SLAVE_ADDRESS = 0x3f;

printf("This will print something on the LCD and it will stay until LCD reset\n");
printf("This will print something on a Freenove i2c 1602 LCD connected to pins 3,5 and it will stay until LCD reset\n");

gpioInitialise();

Expand Down
2 changes: 1 addition & 1 deletion EXAMPLES_C/lcd_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main(int argc, char *argv[]){

const int LCD_SLAVE_ADDRESS = 0x3f;

printf("This will print something on the LCD and it will stay until LCD reset\n");
printf("This will print something on a Freenove i2c 1602 LCD connected to pins 3,5 and it will stay until LCD reset\n");

gpioInitialise();

Expand Down
2 changes: 1 addition & 1 deletion EXAMPLES_Zig/lcd_i2c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn send_data(handle: u32, i2cAddr: u32, data: u32) void {

pub fn main() !void {
const LCD_SLAVE_ADDRESS: u32 = 0x3f;
std.debug.print("This will print something on the LCD and it will stay until LCD reset\n", .{});
std.debug.print("This will print something on a Freenove i2c 1602 LCD connected to pins 3,5 and it will stay until LCD reset\n", .{});

const init = jetgpio.gpioInitialise();
if (init < 0) {
Expand Down

0 comments on commit f5289a1

Please sign in to comment.