From 001efcf9acbff1a8f9bb042e71fd4e6a33137f83 Mon Sep 17 00:00:00 2001 From: Rubberazer <47650457+Rubberazer@users.noreply.github.com> Date: Wed, 26 Jun 2024 23:17:50 +0200 Subject: [PATCH] adding Zig examples --- README.md | 2 +- docs/html/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3566b8..8a8f5e0 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ That's it, the library should be installed and ready to be used. To uninstall th

HOW TO:

-You will find code examples to learn how to use the library in both: EXAMPLES_C & EXAMPLES_C++ folders, the first one contains all the C examples, the second one contains the same examples ready to compile in C++. To compile the examples you will find instructions in the comment section at the top of each of the example files. I have also added a fodler with examples in teh Zig programming language to test interoperability. +You will find code examples to learn how to use the library in both: EXAMPLES_C & EXAMPLES_C++ folders, the first one contains all the C examples, the second one contains the same examples ready to compile in C++. To compile the examples you will find instructions in the comment section at the top of each of the example files. I have also added a folder with examples in the Zig programming language to test interoperability. - [jetgpio_example.c](https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C/jetgpio_example.c) & [jetgpio_example.cpp](https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C++/jetgpio_example.cpp) show how to setup and use any of the pins as Inputs/Outputs, this will allow you to toggle pins from 0V (logic 0) to 3.3V (logic 1) or read the pin as an input where 3.3V at the pin is a logic 1. Note that when reading inputs, floating pins will throw unreliable results (as there is no actual input) diff --git a/docs/html/index.html b/docs/html/index.html index c4d5052..0bfb31c 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -117,7 +117,7 @@

INSTALLATION:

sudo make install

That's it, the library should be installed and ready to be used. To uninstall the library:

sudo make uninstall
 

HOW TO:

-

You will find code examples to learn how to use the library in both: EXAMPLES_C & EXAMPLES_C++ folders, the first one contains all the C examples, the second one contains the same examples ready to compile in C++. To compile the examples you will find instructions in the comment section at the top of each of the example files. I have also added a fodler with examples in teh Zig programming language to test interoperability.

+

You will find code examples to learn how to use the library in both: EXAMPLES_C & EXAMPLES_C++ folders, the first one contains all the C examples, the second one contains the same examples ready to compile in C++. To compile the examples you will find instructions in the comment section at the top of each of the example files. I have also added a folder with examples in the Zig programming language to test interoperability.