diff --git a/README.md b/README.md index cb11624..900aba2 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,24 @@ Enjoy ;) The original author didn't specify a License, but I'm going out on a limb and guessing that he implied GPL2. I would also be happy if someone offered me a beer for my work, so you could also consider it BeerWare. But as I said, I don't know the original author's intentions, so think of it what you will, just don't sue me or anything + + +### Example + +You can use this library to perform matrix operations in Arduino easily. + +```cpp +#include + +float A[4] = {1, 2, 3, 4}; +float B[4] = {5, 6, 7, 8}; +float result[4]; + +void setup() { + Serial.begin(9600); + MatrixMath::multiplyMatrix(A, B, result, 2, 2, 2); + Serial.println(result[0]); // Output of matrix multiplication +} + +void loop() { +}