Skip to content

Instantly share code, notes, and snippets.

@k4zek4ge
k4zek4ge / BLE_accelerometer.ino
Last active June 15, 2022 11:02
[Arduino BLE multiple characteristics] #esp32 https://github.com/tigoe/BluetoothLE-Examples
/*
Accelerometer service
This example creates a BLE peripheral with service that contains three
characteristics, each an analog input value to the microcontroller. It
was designed with the ADXL337 accelerometer in mind, but any three analog
inputs will work as well.
The circuit:
- Arduino MKR WiFi 1010 (firmware version 1.2.0 or later)
@gocarlos
gocarlos / Eigen Cheat sheet
Last active February 11, 2024 14:07
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.