Dálkoměry

Dálkoměr SRF05


#include <Measure_distance.h>

Measure_distance dalkomer_C(10);
Measure_distance dalkomer_Z(11);
Measure_distance dalkomer_L(9);
Measure_distance dalkomer_P(8);

void setup()
{
  Serial.begin(9600);
}


void loop()
 {
   vypis_stav();
   delay(2000);
}


void vypis_stav(void)
{
  Serial.println(" ");
  Serial.print("C: ");
  Serial.println(dalkomer_C.take_measure());
  Serial.print("Z: ");
  Serial.println(dalkomer_Z.take_measure());
  Serial.print("L: ");
  Serial.println(dalkomer_L.take_measure());
  Serial.print("P: ");
  Serial.println(dalkomer_P.take_measure());
  Serial.println(" ");
}

Poslední úprava stránky: 18.11.2019, 10:56
Powered by PmWiki