updated for GameBoy Printer Emulator V3

Lukas Klinger 2021-03-31 21:38:46 +02:00
parent 5e24bb29cf
commit fd78a40adb
4 changed files with 19 additions and 4 deletions

.gitignore vendored
View File

@ -28,3 +28,5 @@ hs_err_pid*
# include libraries

View File

@ -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" />
<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" />

View File

@ -6,9 +6,7 @@
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

View File

@ -32,7 +32,7 @@ public class PrinterEmulator {
if (chunk.contains("\"command\":\"PRNT\""))
if (!chunk.startsWith("#") && !chunk.startsWith("!"))
if (!chunk.startsWith("//") && !chunk.startsWith("{") && !chunk.startsWith("!") && !chunk.startsWith("#"))