-
Vector
A sequence container similar to the C++ std::vector, but instead of allocating memory dynamically, this container points to an external, statically allocated c style array. (by janelia-arduino)
-
MicroPythonBLEHID
Human Interface Device (HID) over Bluetooth Low Energy (BLE) GATT library for MicroPython.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Some of the problems I am having are related to memory management. My keyboard consists in a matrix of 5 x 15 but I want my software to work for any matrix size. I have read that the best thing to do is not to dynamically allocate memory if you are working with devices like arduino. My approach to solve this problem was to create a huge matrix (10x30) to make sure that any reasonable keyboard fits on it. The problem is that I am wasting a ton of memory. What I need is to create the right size matrix when I instantiate my CustomKeyboard class. I think in C you can archive this using flexible array members but I don't know how to do it with C++. I could use some data structure like vector, but I don't really need the matrix to be dynamic and the implementations I have found seem to allocate the memory statilcally, so they are not solving my problem.