mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-10 09:17:57 +01:00
more automatic tests for MQTT topics; add potentiometer mechanism to simulator; allow simulator to set ADC values on Windows; fix adc strange variable types on BK7231; fix cleaning pin roles between simulator scenes; add windows-only debug macro $channelstates
This commit is contained in:
@@ -335,8 +335,11 @@ class CShape *PrefabManager::generatePot() {
|
||||
o->addLine(w - 20, 40, w - 20, 20);
|
||||
o->addLine(-w + 20, 40, -w + 20, 20);
|
||||
o->addLine(-w + 80, 40, -w + 80, 20);
|
||||
CShape *text_value = o->addText(0, 0, "1.23V");
|
||||
text_value->setName("text_value");
|
||||
CControllerPot *pot = new CControllerPot(gnd, vdd, out);
|
||||
pot->setMover(handle);
|
||||
pot->setDisplay(text_value->asText());
|
||||
o->setController(pot);
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user