Entwicklungshardware

Hardware Tests

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);

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

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);

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);

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);

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

Nächster Schritt

  • projektiteration_1.txt
  • Zuletzt geändert: 2021/01/26 16:12
  • von 127.0.0.1