Advertisement
thomazrb

Arduino

Dec 8th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. // Valores x 10
  2. int tempMin = 359;
  3. int tempMax = 369;
  4. int bpmMin = 40;
  5. int bpmMax = 100;
  6.  
  7. void setup() {
  8.   Serial.begin(9600);
  9. }
  10.  
  11. void loop() {
  12.   float temp = random(tempMin, tempMax) / 10.0;
  13.   int bpm = random(bpmMin, bpmMax);
  14.   // put your main code here, to run repeatedly:
  15.   Serial.print(temp);
  16.   Serial.print(" ");
  17.   Serial.println(bpm);
  18.   delay(5000);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement