You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/imgserial/readme.md
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,28 @@ It is important to have a 10µF Capacitor between the RST pin of the Arduino and
16
16
In a shell type `./imgserial.linux file.data port`.
17
17
Port is the same as used by the Arduino IDE, for example /dev/USB0.
18
18
A capacitor is not needed here.
19
-
20
-
###Compilation
19
+
***
20
+
## Compilation
21
21
The example comes with precompiled binaries, but the source file can be compiled with `g++ imgserial.cpp -o imgserial.<extension> <-static>`
22
22
23
-
On Windows, Cygwin with Gnu C++ compilers (GCC) must be installed. The executable needs the cygwin1.dll or a Cygwin environment to run. If there is no Cygwin environment on the target machine, the Windows libraries needs to be statically linked into the executable by the *-static* option. For example `g++ imgserial.cpp -o imgserial.exe -static`.
23
+
On Windows, Msys64 with Gnu C compilers (GCC) must be installed. The executable needs the cygwin1.dll or a Cygwin environment to run. If there is no Cygwin environment on the target machine, the Windows libraries needs to be statically linked into the executable by the *-static* option. For example `g++ imgserial.cpp -o imgserial.exe -static`.
24
+
25
+
***
26
+
## Create data files from images
27
+
I recommend Gimp to convert the images. Before you can proceed, import the *tms9918.gpl* color palette file into Gimp.
28
+
29
+
1. Crop and scale the image until it has a size of 256x192 pixels
30
+
2. Open Jannone's MSX Screen Image Converter https://msx.jannone.org/conv/
31
+
3. Upload the file (Must be JPG, PNG or GIF; up to 400 kb). Select `"MSX 1 Colors"` and try the options below until you find the one that looks best <br>
32
+

33
+
34
+
4. Download the preview image <br>
35
+

24
36
37
+
5. Open Preview in Gimp. Assign the *tms9918* color palette: ```Image->Mode->Indexed...``` Select *tms9918.gpl* as custom palette in the dialog and click ```Convert```. <br>
38
+

25
39
40
+
6. Export image as raw image data file ```(File->Export)```. <br>
0 commit comments