Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.FileWriter;
- public class SerialMode {
- public static void main(String[] args) throws Exception {
- String mode = "422";
- String path = "/sys/class/modSerial/icaro_ttyS0/mode";
- FileWriter fw = new FileWriter(new File(path));
- fw.write(mode);
- fw.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment