enum {
    SBREV = 1
  , MINIMA = 2
  , SMINIMA = 4
  , CROMA = 8
  , SCROMA = 16
  , BSCROMA = 32

};
uint8_t bpm = 50; 
uint32_t intero = (bpm / 60.0) * 1000; 

// bpm 100 
void printDurata() {
    Serial.println(intero / SBREV);
    Serial.println(intero / MINIMA);
    Serial.println(intero / SMINIMA);
    Serial.println(intero / CROMA);
    Serial.println(intero / SCROMA);
    Serial.println(intero / BSCROMA);
}

uint8_t battuta[32] = {
    SMINIMA, SMINIMA, MINIMA, 255
};

void setup() {
  Serial.begin(115200);
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.println("Start.");
  Serial.println(intero);
  //printDurata();
  uint8_t idx = 0;
  /*while(true) {
    if (battuta[idx] == 255) {
        idx = 0;
    }
    uint32_t t = intero / battuta[idx];
    digitalWrite(LED_BUILTIN, HIGH);
    delay(t * 0.15);
    digitalWrite(LED_BUILTIN, LOW);
    delay(t * 0.85);
    Serial.println(t);

    idx++;
    //Serial.println(millis());
    

  }*/
}

void loop() {

  
}
test-mychipBreakout