updated for GameBoy Printer Emulator V3
parent
5e24bb29cf
commit
fd78a40adb
|
@ -28,3 +28,5 @@ hs_err_pid*
|
|||
# include libraries
|
||||
!/libs/*
|
||||
/target/
|
||||
.idea
|
||||
.DS_Store
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: com.fazecast:jSerialComm:2.6.2" level="project" />
|
||||
<orderEntry type="library" name="gameboy-camera-lib" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -6,9 +6,7 @@
|
|||
[](https://forthebadge.com)
|
||||
|
||||
This small Java application connects to a GameBoy Printer Emulator (see https://github.com/mofosyne/arduino-gameboy-printer-emulator) and waits for images. Once you print an image from your GameBoy Camera, the app will decode the image and save it to your computer as a PNG at a resolution of 160 by 144 pixels. This application runs in the command line and has no GUI.
|
||||
|
||||
## Important Note
|
||||
Currently, this Java application only works with GameBoy Printer Emulator V1 and V2. I will update thie repository in the future to support V3.
|
||||
It has been updated for V3 of the GameBoy Printer Emulator.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public class PrinterEmulator {
|
|||
startImage();
|
||||
if (chunk.contains("\"command\":\"PRNT\""))
|
||||
finishImage();
|
||||
if (!chunk.startsWith("#") && !chunk.startsWith("!"))
|
||||
if (!chunk.startsWith("//") && !chunk.startsWith("{") && !chunk.startsWith("!") && !chunk.startsWith("#"))
|
||||
addData(chunk);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue