diff --git a/README.md b/README.md index 0c5090b..dfc9160 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,4 @@ You can find a simple Arduino example sketch [over here](https://github.com/javl I wrote the code with my 128x64 pixel monochrome OLED display in mind, but it should work with most similar displays. You might need to change some export settings; those are explained in the tool. ### Credit ### -Initial code by [javl](https://github.com/javl), with aditional code by [wiredolphin](https://github.com/wiredolphin). The example sketch was made by Adafruit. \ No newline at end of file +Initial code by [javl](https://github.com/javl), with aditional code by [wiredolphin](https://github.com/wiredolphin) and [davidalim](https://github.com/davidalim). The example sketch was made by [Adafruit](https://github.com/adafruit). \ No newline at end of file diff --git a/index.html b/index.html index 3025061..15729f6 100644 --- a/index.html +++ b/index.html @@ -150,8 +150,8 @@

1. Paste byte array


- x - px + x + px
@@ -189,7 +189,7 @@
- +
0 - 255; pixels with brightness above become white, below become black.
@@ -615,15 +615,17 @@ imageEntry.setAttribute('data-img', file.name); var w = document.createElement('input'); - w.type = "text"; + w.type = "number"; w.name = "width"; + w.min = 0; w.className = "size-input"; w.value = img.width; w.oninput = function() { canvas.width = this.value; update(); }; var h = document.createElement('input'); - h.type = "text"; + h.type = "number"; h.name = "height"; + h.min = 0; h.className = "size-input"; h.value = img.height; h.oninput = function() { canvas.height = this.value; update(); };