Makeblock TFT display example

 

#include <Arduino.h>
#include <Wire.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <MeOrion.h>

MeUltrasonicSensor ultrasonic_3(3);
MeSerial se;
MePort soundsensor_7(7);
MeTemperature temperature_6_1(6,1);
MePort lightsensor_8(8);

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

}
void loop()
{
Serial.print(„CLS(0);“);
Serial.print(„DR0;“);
Serial.print(„DS32(30,10,'“);
Serial.print(String(„Dist: „)+ultrasonic_3.distanceCm());
Serial.print(„‚,1);“);

Serial.print(„DS32(30,50,'“);
Serial.print(String(„Sound: „)+soundsensor_7.aRead2());
Serial.print(„‚,1);“);
Serial.print(„DS32(30,90,'“);
Serial.print(String(„Light: „)+lightsensor_8.aRead2());
Serial.print(„‚,1);“);
Serial.print(„DS32(30,130,'“);
Serial.print(String(„Temp: „)+temperature_6_1.temperature());
Serial.println(„‚,1);“);
delay(3000);
}

 

Jan D.
Jan D.

"The only real security that a man will have in this world is a reserve of knowledge, experience, and ability."

Articles: 678

Leave a Reply

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *