From 3eaca1446d21801679564c24e4e37b9ccb55e9a2 Mon Sep 17 00:00:00 2001 From: Moshe Gottlieb Date: Mon, 11 Dec 2023 16:17:32 +0100 Subject: [PATCH] Update README.md Added CI badge, and some line breaks --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8d8fd30..633dd7e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # libsense ![logo](https://raw.githubusercontent.com/moshegottlieb/libsense/master/examples/sense_logo.png) + +[![C/C++ CI](https://github.com/moshegottlieb/libsense/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/moshegottlieb/libsense/actions/workflows/c-cpp.yml) + ### Sense HAT for the Raspberry Pi C/C++ API I don't know about you guys, but I'm not much of a python guy.
While I can code in just about any programming language - I tend to stick to compiled languages.
@@ -78,12 +81,14 @@ Why not use the built in sensehat temp sensor(s)? Because there's a board, LEDs It may work reasonably in space, but not on earth :-)
+ ## C++ -Writing shared libraries in C is easy. -The rules for when to bump up the so name is simple and clear. -When dealing with C++ - that's not the case. -Sorry for all the warnings about specifying exception type, should port it to modern C++ at some point. -The list of things that break binary compatibility is very long, and it's super easy to break. + +Writing shared libraries in C is easy.
+The rules for when to bump up the so name is simple and clear.
+When dealing with C++ - that's not the case.
+Sorry for all the warnings about specifying exception type, should port it to modern C++ at some point.
+The list of things that break binary compatibility is very long, and it's super easy to break.
Since the C++ code is just a wrapper - I decided to include it as an inline header, that way the shared library doesn't have any C++ issues.
## Contributing to libsense