Skip to content
Snippets Groups Projects
Commit 2f1a5d1a authored by Lucas Stratmann's avatar Lucas Stratmann
Browse files

Bugfixes

parent 10b87c75
Branches
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ public class Arduino {
int[] array = { 3, 5, 6, 9, 10, 11 };
for (int i = 0; i < 6; i++) {
if (_pin == array[i]) {
pins[_pin].setValue(_value);
pins[_pin].setValue((int) (_value * 4.012));
return true;
}
}
......
......@@ -41,7 +41,9 @@ public class CodeElseIf extends SimTypeIf {
return null;
} else {
// Condition not met and different else can execute
if (follow != null) {
follow.run(_arduino, functionHead);
}
return null;
}
}
......
......@@ -24,8 +24,7 @@ public class CodeDigitalWrite extends SimCode {
}
public SimCode run(Arduino _arduino, SimCode functionHead) {
_arduino.digitalWrite((int) pin.run(_arduino, functionHead).getValue(),
value.run(_arduino, functionHead).getValue());
_arduino.digitalWrite(pin.run(_arduino, functionHead).getValue(), value.run(_arduino, functionHead).getValue());
return null;
}
......
......@@ -57,7 +57,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
* @param simu Instanz des Simulators
*/
public GUI(Simulator simu) {
super("ArdubBlock Simulator");
super("ArduBlock Simulator");
// Konstruktor der Module
modules[0] = new RGB(new ImageIcon(getToolkit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment