diff --git a/README.md b/README.md
index eebda01..ba1a2e6 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
An online version of this tool is live at [http://javl.github.io/image2cpp/](http://javl.github.io/image2cpp/)
-image2cpp is a simple tool to convert images into byte arrays (or your array back into an image) for use with (monochrome) displays suchs as OLEDs, like those from Adafruit or Sparkfun. While searching for a way to generate these arrays, I mostly found links to a piece of Windows software. Both the flakey results and the hassle of having to boot a virtual machine just to convert an image lead to me writing this pure html + javascript solution.
+image2cpp is a simple tool to convert images into byte arrays (and vice versa) for use with (monochrome) displays suchs as OLEDs, like those from Adafruit or Sparkfun. While searching for a way to generate these arrays, I mostly found links to a piece of Windows software. Both the flakey results and the hassle of having to boot a virtual machine just to convert an image lead to me writing this pure html + javascript solution.
Alternatively you can also enter a byte array as input to turn it back into an image. This might be useful for debugging, or when you want to write the byte array yourself. I don't know.
diff --git a/css/style.css b/css/style.css
index c9647c9..742d483 100644
--- a/css/style.css
+++ b/css/style.css
@@ -438,6 +438,11 @@ code {
max-width: 320px;
}
+#continue-note {
+ display: none;
+ margin-top: 30px;
+}
+
.msg {
font-size: 16px;
color: var(--text-muted);
@@ -495,6 +500,12 @@ input[type="radio"] {
line-height: 22px;
resize: vertical;
}
+#text-input-error {
+ color: var(--error);
+ font-size: 14px;
+ margin-top: 8px;
+ display: none;
+}
.text-input-size {
margin: 8px 0;
@@ -506,6 +517,21 @@ input[type="radio"] {
width: 72px;
}
+.sub-field {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-top: 8px;
+}
+
+.sub-field:first-child {
+ margin-top: 0;
+}
+
+.sub-field-label {
+ min-width: 160px;
+}
+
.glyph-input {
width: 80px;
margin-left: 10px;
@@ -542,7 +568,7 @@ button:active {
input[type="file"] {
background: var(--surface-container);
color: var(--on-surface-variant);
- border: 2px dashed var(--outline-variant);
+ /* border: 2px dashed var(--outline-variant); */
border-radius: var(--radius-lg);
font-size: 14px;
padding: 16px 20px;
@@ -589,6 +615,9 @@ input[type="file"]::file-selector-button {
color: var(--on-surface-variant);
}
+#no-images-error {
+ margin-bottom: 10px;
+}
/* ---- File info / size list ---- */
.file-input-entry {
@@ -652,9 +681,9 @@ input[type="file"]::file-selector-button {
.code-output {
height: 400px;
width: 100%;
- margin-top: 16px;
+ /* margin-top: 16px; */
background: var(--editor-bg);
- color: #dcdcaa;
+ color: #000000;
border: 1px solid var(--on-surface-variant);
border-radius: var(--radius-xl);
font-family: var(--font-mono);
diff --git a/index.html b/index.html
index 5c2706c..f966083 100644
--- a/index.html
+++ b/index.html
@@ -16,7 +16,7 @@
image2cpp
@@ -24,7 +24,7 @@
☽☼
-
+
@@ -42,8 +42,8 @@
image2cpp
-
image2cpp is a simple tool to convert images into byte arrays (or arrays back into an images) for use with (monochrome) displays such as OLEDs on your Arduino or Raspberry Pi.
- It was originally made to work with the Adafruit OLED library (for which your can find an example sketch for Arduino here) but
+
image2cpp is a simple tool to convert images into byte arrays (and vice versa) for use with (monochrome) displays such as OLEDs on your Arduino or Raspberry Pi.
+ It was originally made to work with the Adafruit OLED library (for which your can find an example Arduino sketch here) but
has been expanded by the community to be useful in all kind of (embedded) projects.
More info (and credits) can be found in the Github repository. This is also where you can report any issues you might come across.
@@ -58,23 +58,24 @@
Select image
-
All processing is done locally in your browser; your images are not uploaded or stored anywhere online.
+
You can import multiple images at once. All processing is done locally in your browser: your images are not uploaded or stored anywhere online.
+ Used for parts of the canvas that are not covered by your image.
+
@@ -132,7 +136,8 @@
- 0 - 255; if the brightness of a pixel is above the given level the pixel becomes white, otherwise they become black. When using alpha, opaque and transparent are used instead.
+ 0 - 255; if the brightness of a pixel is above the given level the pixel becomes white, otherwise they become black. When using alpha, opaque and transparent are used instead. Default is 128.
+
@@ -175,7 +180,7 @@
-
+
@@ -208,15 +213,42 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Outputs just the raw bytes of the image(s).
+
Adds some extra Arduino code around the output for easy copy-paste into
this example.
@@ -260,28 +292,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- If your image looks all messed up on your display, like the image below, try using a different mode.
-