From f5289a1d96fcea3acdec6611e20494c7ee3d7f61 Mon Sep 17 00:00:00 2001 From: Rubberazer <47650457+Rubberazer@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:16:51 +0200 Subject: [PATCH] adding Zig examples --- EXAMPLES_C++/lcd_i2c.cpp | 2 +- EXAMPLES_C/lcd_i2c.c | 2 +- EXAMPLES_Zig/lcd_i2c.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EXAMPLES_C++/lcd_i2c.cpp b/EXAMPLES_C++/lcd_i2c.cpp index e04e23e..b9ce150 100644 --- a/EXAMPLES_C++/lcd_i2c.cpp +++ b/EXAMPLES_C++/lcd_i2c.cpp @@ -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(); diff --git a/EXAMPLES_C/lcd_i2c.c b/EXAMPLES_C/lcd_i2c.c index e20f31d..acca86d 100644 --- a/EXAMPLES_C/lcd_i2c.c +++ b/EXAMPLES_C/lcd_i2c.c @@ -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(); diff --git a/EXAMPLES_Zig/lcd_i2c.zig b/EXAMPLES_Zig/lcd_i2c.zig index bfaf89a..adfd189 100644 --- a/EXAMPLES_Zig/lcd_i2c.zig +++ b/EXAMPLES_Zig/lcd_i2c.zig @@ -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) {