|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rngtng.rainbowduino.Rainbowduino
public class Rainbowduino
Field Summary | |
---|---|
static int |
height
|
java.lang.String |
VERSION
|
static int |
width
|
Fields inherited from interface com.rngtng.rainbowduino.RCodes |
---|
API_VERSION, API_VERSION_NR, BRIGHTNESS_GET, BRIGHTNESS_SET, BUFFER_GET_AT, BUFFER_LENGTH, BUFFER_LOAD, BUFFER_SAVE, BUFFER_SET_AT, COMMAND, ERROR, ERROR_MISSMATCH, ERROR_TIME_OUT, FRAME_GET, FRAME_SET, OK, PING, RESET, SPEED_DEC, SPEED_GET, SPEED_INC, SPEED_SET, START, STOP |
Constructor Summary | |
---|---|
Rainbowduino(processing.core.PApplet _app)
Create a new instance to communicate with the rainbowduino. |
Method Summary | |
---|---|
int |
apiVersion()
|
int |
brightnessGet()
|
void |
brightnessSet(int brightness)
Sets the brightness value |
int[] |
bufferGetAt(int adr)
|
int |
bufferLength()
|
int |
bufferLoad()
loads current buffer from EEPROM |
void |
bufferSave()
saves current buffer to EEPROM |
void |
bufferSetAt(int adr,
int[] content)
fills buffer with given data at given position |
void |
bufferSetAt(int adr,
int[] content,
boolean check)
fills buffer with given data at given position |
boolean |
connected()
|
void |
dispose()
|
int |
frameGet()
|
void |
frameSet(int frame_pos)
set frame pointer to given position |
void |
initPort()
auto init serial port by default values |
void |
initPort(int _baud)
Auto init serial port with given baud rate |
void |
initPort(java.lang.String port_name,
int _baud,
boolean check)
Open serial port with given name and baud rate. |
boolean |
ping()
|
void |
reset()
resets rainbowduino |
void |
speedDown()
decreases speed value |
int |
speedGet()
|
void |
speedSet(int speed_value)
sets speed to given value |
void |
speedUp()
increases speed value |
void |
start()
start running standalone, looping throgh set frames |
void |
stop()
stops running |
java.lang.String |
version()
return the version of the library. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int width
public static int height
public final java.lang.String VERSION
Constructor Detail |
---|
public Rainbowduino(processing.core.PApplet _app)
_app
- parent AppletMethod Detail |
---|
public void dispose()
public java.lang.String version()
public boolean connected()
public void initPort()
public void initPort(int _baud)
_baud
- public void initPort(java.lang.String port_name, int _baud, boolean check)
public int apiVersion()
public boolean ping()
public void reset()
public void start()
public void stop()
public void frameSet(int frame_pos)
frame_pos
- number of frame to set topublic int frameGet()
public void brightnessSet(int brightness)
public int brightnessGet()
public void bufferSetAt(int adr, int[] content)
public void bufferSetAt(int adr, int[] content, boolean check)
adr
- positioncontent
- buffer datacheck
- wheter to perform sensity checkpublic int[] bufferGetAt(int adr)
adr
-
public int bufferLength()
public void bufferSave()
public int bufferLoad()
public void speedSet(int speed_value)
public int speedGet()
public void speedUp()
public void speedDown()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |