sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #include <iostream> | |
| #include <string> | |
| #include <functional> | |
| #include <vector> | |
| template<class ArrayType, class ValueType> | |
| void forEach(const ArrayType& arr, std::function<void(const ValueType&)> callback) { | |
| for (auto entry : arr) { | |
| callback(entry); | |
| } |
| #include <SoftwareSerial.h> | |
| #define MSP_ATTITUDE 108 | |
| SoftwareSerial mspSerial(11, 12); // RX TX | |
| void setup() { | |
| mspSerial.begin(9600); | |
| Serial.begin(9600); | |
| } |