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 26, 2024
1 parent fe2056c commit 390dbae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ You will find code examples to learn how to use the library in both: EXAMPLES_C
- [spi_loop.c](https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C/spi_loop.c) & [spi_loop.cpp](https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C++/spi_loop.cpp) show how to run a simple loop test on the SPI port(s) by connecting together pins 19 & 21 for port SPI1 and pins 22 & 37
for port SPI2

- [ZIG Examples](https://github.com/Rubberazer/JETGPIO/tree/main/EXAMPLES_Zig) just for the sake of it

<h2 align="left">DOCUMENTATION:</h2>

[Some doxygen documentation here](https://rubberazer.github.io/JETGPIO/html/index.html). As a rule of thumb, the library functions names and usage mimic the ones of the pigpio library (which I recommend if you work with Raspberry Pis). Learnt a lot from that one
Expand Down
1 change: 1 addition & 0 deletions docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ <h2 align="left">INSTALLATION:</h2>
<li><a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C/jetgpio_i2c_example.c">jetgpio_i2c_example.c</a> &amp; <a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C++/jetgpio_i2c_example.cpp">jetgpio_i2c_example.cpp</a> show how to use the i2c comms to talk to a MPU6050 gyroscope connected to i2c0 (pins 27 &amp; 28)</li>
<li><a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C/lcd_i2c.c">lcd_i2c.c</a> &amp; <a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C++/lcd_i2c.cpp">lcd_i2c.cpp</a> minimalistic example of how to show a message on the screen of a Freenove i2c 1602 LCD display connected to i2c1 (pins 3 &amp; 5)</li>
<li><a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C/spi_loop.c">spi_loop.c</a> &amp; <a href="https://github.com/Rubberazer/JETGPIO/blob/main/EXAMPLES_C++/spi_loop.cpp">spi_loop.cpp</a> show how to run a simple loop test on the SPI port(s) by connecting together pins 19 &amp; 21 for port SPI1 and pins 22 &amp; 37 for port SPI2</li>
<li><a href="https://github.com/Rubberazer/JETGPIO/tree/main/EXAMPLES_Zig">ZIG Examples</a> just for the sake of it</li>
</ul>
<h2 align="left">DOCUMENTATION:</h2>
<p><a href="https://rubberazer.github.io/JETGPIO/html/index.html">Some doxygen documentation here</a>. As a rule of thumb, the library functions names and usage mimic the ones of the pigpio library (which I recommend if you work with Raspberry Pis). Learnt a lot from that one</p>
Expand Down

0 comments on commit 390dbae

Please sign in to comment.