package edu.berkeley.obits.gui;
+import com.atmel.fpslic.*;
+import edu.berkeley.slipway.*;
import static com.atmel.fpslic.FpslicConstants.*;
import static com.atmel.fpslic.Fpslic.Util.*;
import edu.berkeley.obits.*;
Graphics2D g;
G gg;
- At40k at40k;
- AvrDrone drone;
+ Fpslic at40k;
+ FtdiBoard drone;
private Cell[][] ca = new Cell[128][];
}
}
- public Gui(At40k at40k, AvrDrone drone) {
+ public Gui(Fpslic at40k, FtdiBoard drone) {
this.at40k = at40k;
this.drone = drone;
for(int i=0; i<ca.length; i++)
scan();
/*
- At40k.Cell c = at40k.cell(0,0);
+ Fpslic.Cell c = at40k.cell(0,0);
for(int i=0; i<256; i++) {
c.ylut(i);
System.out.println(c.printYLut());
}
public class Cell {
- At40k.Cell cell;
+ Fpslic.Cell cell;
boolean in = false;
public boolean xon = false;
public boolean yon = false;
public boolean xknown = false;
public boolean yknown = false;
int _x, _y;
- public Cell(int x, int y, At40k.Cell cell) {
+ public Cell(int x, int y, Fpslic.Cell cell) {
_x = x;
_y = y;
ca[_x][_y] = this;
return null;
}
- public static boolean xlut_relevant(At40k.Cell c) {
+ public static boolean xlut_relevant(Fpslic.Cell c) {
return c.xlut_relevant();
}
}
public void scan(final Gui.Cell c) {
try {
- final At40k.Cell cell = c.cell;
+ final Fpslic.Cell cell = c.cell;
AtmelSerial.scan(at40k, cell, NONE, true);
boolean safe = !cell.fb_relevant();
if (cell.xo()) safe = false;
int made = 0;
- private class BCB implements AvrDrone.ByteCallback {
+ private class BCB implements FtdiBoard.ByteCallback {
Gui.Cell c;
int who;
public BCB(Gui.Cell c, int who) {