Should be a working bus. Probably real bad quality.
parent
30d9aaeffb
commit
f31f33fbb4
@ -1,25 +0,0 @@
|
|||||||
package net.brokenmoon.redcontrol.driver;
|
|
||||||
|
|
||||||
import com.simon816.j65el02.device.RPMonitor;
|
|
||||||
|
|
||||||
public class MonitorBlockDriver implements RCMonitorDriver{
|
|
||||||
@Override
|
|
||||||
public void setMonitor(RPMonitor monitor) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setMonitor(RCMonitor monitor) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateCursor(int cursorX, int cursorY, int cursorMode) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void update(byte[][] windowData) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
package net.brokenmoon.redcontrol.driver;
|
|
||||||
|
|
||||||
import com.simon816.j65el02.device.RedBus;
|
|
||||||
|
|
||||||
public class RCMonitor implements RedBus.Peripheral {
|
|
||||||
@Override
|
|
||||||
public void write(int address, int data) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int read(int address) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void update() {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
package net.brokenmoon.redcontrol.driver;
|
|
||||||
|
|
||||||
import com.simon816.j65el02.device.MonitorDriver;
|
|
||||||
import com.simon816.j65el02.device.RPMonitor;
|
|
||||||
|
|
||||||
public interface RCMonitorDriver extends MonitorDriver {
|
|
||||||
/**
|
|
||||||
* Called when the {@link RPMonitor} is constructed in order to associate the monitor with the
|
|
||||||
* driver.
|
|
||||||
*
|
|
||||||
* @param monitor The monitor
|
|
||||||
*/
|
|
||||||
public void setMonitor(RCMonitor monitor);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called when the cursor data is changed.
|
|
||||||
*
|
|
||||||
* @param cursorX
|
|
||||||
* @param cursorY
|
|
||||||
* @param cursorMode
|
|
||||||
*/
|
|
||||||
public void updateCursor(int cursorX, int cursorY, int cursorMode);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called when the display data has changed. The array is a 2D array of size
|
|
||||||
* [{@link RPMonitor#HEIGHT}][{@link RPMonitor#WIDTH}].
|
|
||||||
*
|
|
||||||
* The display data is character data (not pixels). The lower 7 bits is the character while the
|
|
||||||
* MSB is a flag whether the color should be inverted (i.e. foreground and background color
|
|
||||||
* should be switched). Mapping for the 7 bit value to character is defined by a charset, which
|
|
||||||
* must be agreed upon by the display driver and programs written for the device.
|
|
||||||
*
|
|
||||||
* @param windowData The character data
|
|
||||||
*/
|
|
||||||
public void update(byte[][] windowData);
|
|
||||||
}
|
|
Loading…
Reference in New Issue