thomazrb icon

Arduino

thomazrb | PRO | 12/08/17 06:10:42 PM UTC | 0 ⭐ | 577 👁️ | Never ⏰ | []
C++ |

370 B

|

None

|

0 👍

/

0 👎

// Valores x 10
int tempMin = 359;
int tempMax = 369;
int bpmMin = 40;
int bpmMax = 100;
 
void setup() {
  Serial.begin(9600);
}
 
void loop() {
  float temp = random(tempMin, tempMax) / 10.0;
  int bpm = random(bpmMin, bpmMax);
  // put your main code here, to run repeatedly:
  Serial.print(temp);
  Serial.print(" ");
  Serial.println(bpm);
  delay(5000);
}

Comments