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

Added Todos

parent 68ef4544
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,8 @@ public class Simulator implements Runnable, ActionListener {
return true;
}
//TODO Function to Reset the saved Functions
public void actionPerformed(ActionEvent arg0) {
String command = arg0.getActionCommand();
if (command == "go") {
......@@ -197,8 +199,8 @@ public class Simulator implements Runnable, ActionListener {
Vector<SimCode> tempVec = new Vector<SimCode>();
tempVec.add(new CodeExecuteFunction("loop"));
testMain.add(new CodeWhile(b1, tempVec));
SimCodeFunction main = new SimCodeFunction("main", testMain); // Oder Main ruft setup und loop auf oder
// addFunction in den Simulator
SimCodeFunction main = new SimCodeFunction("main", testMain);
Simulator simu = Simulator.getInstance();
simu.addFunctionsCode(setupCode);
......
......@@ -83,7 +83,6 @@ public class Arduino {
return false;
}
// TODO Check Wie der Analogpin übergeben wird
public boolean analogWrite(int _pin, int _value) {
int[] array = { 3, 5, 6, 9, 10, 11 };
......
......@@ -21,7 +21,8 @@ public class CodeElse extends SimCode {
ifBlock = _ifBlock;
codeBlocks = _vec;
}
//TODO Oberklasse IFType
//TODO If kann erweitert werden durch else/elseif
@Override
public SimCode run(Arduino _arduino, SimCodeFunction functionHead) {
boolean cond = true;
......
......@@ -10,7 +10,7 @@ import tec.letsgoing.ardublock.simulator.simcode.datatypes.SimTypeInt;
/**
* @author Lucas
*
* //TODO Block Beschreibung realtiv zu Ardublock
*/
public class CodeAnalogRead extends SimCode {
private SimTypeInt pin;
......
......@@ -44,6 +44,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
public GUI(Simulator simu) {
super("ArdubBlock Simulator");
//TODO Module geben Pin Positionen
modules[0] = new RGB();
modules[1] = new Button();
modules[2] = new Poti();
......
......@@ -26,6 +26,7 @@ public class ArduinoUno extends Modul {
private int led13 = 0;
public ArduinoUno() {
//TODO Arduino mittig anordnen
layerpane.setPreferredSize(new Dimension(587, 418));
JLabel chiplabel = new JLabel();
ImageIcon chipIcon = new ImageIcon("res/ArduinoUno.png");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment