You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Funkcija na serijski monitor izpiše temperaturo okolice. Če senzor za temperaturo ne deluje pravilno, se opozorilo o napaki izpiše uporabniku.
Klic
test.temp();
Vhodni parametri
Brez.
Izhod
Brez.
Primer kode
#include<Robot.h>#include<Test.h>voidsetup() {
robot.imu.begin();
while (!Serial); //nič se ne zgodi, dokler serijski monitor ni odprtdelay(100); //počaka 100 ms zaradi zagotavljanja stabilnosti delovanjatest.temp(); //enkrat izpiše temperaturo
}
voidloop() {
}