Entwicklungshardware

Hardware Tests

Dispaly-Test

Controller::onStart
// boot sequence after start SysTick
dispaly.clear();
display.setPos(0,0);
display.write("Hallo Display");
display.line(10,10,50,50,LCD_MODE_SET);
display.rect(20,20,60,30,true,LCD_MODE_XOR);
display.circle(40,30,15,false,LCD_MODE_XOR);

UART-Test

Controller::onWork()
// continuous event from the Mainloop
konsole.writeString("\nHallo Konsole");
waitMs(200);

Echtzeituhr-Test

Controller::onWork()
// continuous event from the Mainloop
String txt;
txt=uhr.getTime("%d.%M.%Y %h:%m:%s"),
display.clear();
display.setPos(0,0);
display.write(txt);
waitMs(1000);

Lichtsensor-Test

Controller::onWork()
// continuous event from the Mainloop
String txt;
int16_t value;
value = sensor.getValue();
txt.format("Sensorvalue=%d",value);
display.clear();
display.setPos(0,0);
display.write(txt);
waitMs(100);

Temperatursensor-Test

Controller::onWork()
// boot sequence after start SysTick
//sensor.setAddress(0x90); // A0-2 = 0
sensor.setAddress(0x96);   // A0-1 = 1 | A0 = 0
Controller::onWork()
// continuous event from the Mainloop
String txt;
uint16_t value;
value=sensor.getTemp();
txt.format("Temperatur=%d",value);
display.clear();
display.setPos(0,0);
display.write(txt);
waitMs(100);

Speaker-Test

Controller::onWork()
// continuous event from the mainloop
speaker.play(FLASHSTR("^^a"));
waitMs(1000);

SD-Karten-Test

Nächster Schritt

projektiteration_1.txt · Zuletzt geändert: 2016/08/29 17:15 von huwaldt