com.rapplogic.aru.core.Sketch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arduino-remote-uploader Show documentation
Show all versions of arduino-remote-uploader Show documentation
Command line tool and client api for uploading Arduino Sketches to a remote Arduino
The newest version!
package com.rapplogic.aru.core;
import java.util.List;
public class Sketch {
private List pages;
private int size;
private int bytesPerPage;
private int[] program;
public Sketch(int size, List pages, int bytesPerPage, int[] program) {
this.size = size;
this.pages = pages;
this.bytesPerPage = bytesPerPage;
this.program = program;
}
public List getPages() {
return pages;
}
public int getSize() {
return size;
}
// slightly redundant
public int getBytesPerPage() {
return bytesPerPage;
}
public int[] getProgram() {
return program;
}
public Page getLastPage() {
return this.getPages().get(this.getPages().size() - 1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy