Mod to ISR and Tasks ok working

This commit is contained in:
Emanuele Trabattoni
2026-03-31 09:19:11 +02:00
parent ec138553ad
commit 27ad612844
5 changed files with 46 additions and 30 deletions

View File

@@ -3,15 +3,4 @@
#include <Arduino.h>
#include <string>
std::string printBits(uint32_t value) {
std::string result;
for (int i = 31; i >= 0; i--) {
// ottieni il singolo bit
result += ((value >> i) & 1) ? '1' : '0';
// aggiungi uno spazio ogni 8 bit, tranne dopo l'ultimo
if (i % 8 == 0 && i != 0) {
result += ' ';
}
}
return result;
}
std::string printBits(uint32_t value);