forked from xantorohara/led-matrix-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·230 lines (205 loc) · 15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html>
<head lang="en">
<title>LED Matrix Editor</title>
<meta charset="UTF-8">
<meta name="keywords" content="LED matrix, 8x8, online editor, Arduino code">
<meta name="description" content="Online editor: create images for LED matrix">
<meta name="author" content="Xantorohara"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="style.css?20150924">
<link rel="icon" type="image/png" href="icon.png "/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="script.js?20150918"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">
LED Matrix Editor 8x8
</a>
</div>
<ul class="nav navbar-nav">
<!--<li class="active"><a href="#">Home</a></li>-->
<li class="dropdown">
<a href="" class="dropdown-toggle" data-toggle="dropdown">
Arduino HowTos<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<a href="http://xantorohara.blogspot.com/2015/09/arduino-led-matrix-editor.html"
target="_blank">
Image as 64-bit integer
</a>
</li>
<li>
<a href="http://xantorohara.blogspot.com/2015/09/arduino-led-matrix-state-as-array-of.html"
target="_blank">
Image as byte array
</a>
</li>
<li>
<a href="http://xantorohara.blogspot.com/2015/09/arduino-store-64-bit-integers-in-progmem.html"
target="_blank">
Store images in PROGMEM
</a>
</li>
</ul>
</li>
</ul>
<p class="navbar-text pull-right">
© 2015 <a href="mailto:xantorohara@gmail.com" class="navbar-link">Xantorohara</a>
</p>
<p class="navbar-text pull-right">
<a class="small navbar-link">
<span class="glyphicon glyphicon-hand-up"></span>
Use CTRL+D to save as a bookmark
</a>
</p>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 col-md-3 debug">
<h3>Examples</h3>
<ul>
<li><a href="#">Blank</a></li>
<li>
<a href="#0000000000000000|7c92aa82aa827c00|7ceed6fed6fe7c00|10387cfefeee4400|10387cfe7c381000|381054fe54381000|38107cfe7c381000|00387c7c7c380000|ffc7838383c7ffff|0038444444380000|ffc7bbbbbbc7ffff|0c12129ca0c0f000|38444438107c1000|060e0c0808281800|066eecc88898f000|105438ee38541000|061e7efe7e1e0600|c0f0fcfefcf0c000|1038541054381000|6666006666666600|a0a0a0bca6a6fc00|0c324824124c3000|fefefe0000000000|7c38541054381000|383838fe7c381000|10387cfe38383800|10307efe7e301000|1018fcfefc181000|fefe0e0e0e000000|002844fe44280000|fefe7c7c38381000|1038387c7cfefe00|0000000000000000|180018183c3c1800|00000000286c6c00|6c6cfe6cfe6c6c00|103c403804781000|60660c1830660600|fc66a6143c663c00|0000000c18181800|060c1818180c0600|6030181818306000|006c38fe386c0000|0010107c10100000|060c0c0c00000000|0000003c00000000|0606000000000000|00060c1830600000|3c66666e76663c00|7e1818181c181800|7e060c3060663c00|3c66603860663c00|30307e3234383000|3c6660603e067e00|3c66663e06663c00|1818183030667e00|3c66663c66663c00|3c66607c66663c00|0018180018180000|0c18180018180000|6030180c18306000|00003c003c000000|060c1830180c0600|1800183860663c00|003c421a3a221c00|6666667e66663c00|3e66663e66663e00|3c66060606663c00|3e66666666663e00|7e06063e06067e00|0606063e06067e00|3c66760606663c00|6666667e66666600|3c18181818183c00|1c36363030307800|66361e0e1e366600|7e06060606060600|c6c6c6d6feeec600|c6c6e6f6decec600|3c66666666663c00|06063e6666663e00|603c766666663c00|66361e3e66663e00|3c66603c06663c00|18181818185a7e00|7c66666666666600|183c666666666600|c6eefed6c6c6c600|c6c66c386cc6c600|1818183c66666600|7e060c1830607e00|7818181818187800|006030180c060000|1e18181818181e00|0000008244281000|fe00000000000000|0000000060303000|7c667c603c000000|3e66663e06060600|3c6606663c000000|7c66667c60606000|3c067e663c000000|0c0c3e0c0c6c3800|3c607c66667c0000|6666663e06060600|3c18181800180000|1c36363030003000|66361e3666060600|1818181818181800|d6d6feeec6000000|6666667e3e000000|3c6666663c000000|06063e66663e0000|f0b03c36363c0000|060666663e000000|3e403c027c000000|1818187e18180000|7c66666666000000|183c666600000000|7cd6d6d6c6000000|663c183c66000000|3c607c6666000000|3c0c18303c000000|7018180c18187000|1818180018181800|0e18183018180e00|000000365c000000|fe8282c66c381000">
Font 8x8 (1)
</a>
</li>
<li>
<a href="#0000000000000000|00180018183c3c18|0000000000003636|0036367f367f3636|000c1f301e033e0c|0063660c18336300|006e333b6e1c361c|0000000000030606|00180c0606060c18|00060c1818180c06|0000663cff3c6600|00000c0c3f0c0c00|060c0c0000000000|000000003f000000|000c0c0000000000|000103060c183060|003e676f7b73633e|003f0c0c0c0c0e0c|003f33061c30331e|001e33301c30331e|0078307f33363c38|001e3330301f033f|001e33331f03061c|000c0c0c1830333f|001e33331e33331e|000e18303e33331e|000c0c00000c0c00|060c0c00000c0c00|00180c0603060c18|00003f00003f0000|00060c1830180c06|000c000c1830331e|001e037b7b7b633e|0033333f33331e0c|003f66663e66663f|003c66030303663c|001f36666666361f|007f46161e16467f|000f06161e16467f|007c66730303663c|003333333f333333|001e0c0c0c0c0c1e|001e333330303078|006766361e366667|007f66460606060f|0063636b7f7f7763|006363737b6f6763|001c36636363361c|000f06063e66663f|00381e3b3333331e|006766363e66663f|001e33380e07331e|001e0c0c0c0c2d3f|003f333333333333|000c1e3333333333|0063777f6b636363|0063361c1c366363|001e0c0c1e333333|007f664c1831637f|001e06060606061e|00406030180c0603|001e18181818181e|0000000063361c08|ff00000000000000|0000000000180c0c|006e333e301e0000|003b66663e060607|001e3303331e0000|006e33333e303038|001e033f331e0000|000f06060f06361c|1f303e33336e0000|006766666e360607|001e0c0c0c0e000c|1e33333030300030|0067361e36660607|001e0c0c0c0c0c0e|00636b7f7f330000|00333333331f0000|001e3333331e0000|0f063e66663b0000|78303e33336e0000|000f06666e3b0000|001f301e033e0000|00182c0c0c3e0c08|006e333333330000|000c1e3333330000|00367f7f6b630000|0063361c36630000|1f303e3333330000|003f260c193f0000|00380c0c070c0c38|0018181800181818|00070c0c380c0c07|0000000000003b6e">
Font 8x8 (2)
</a>
</li>
<li>
<a href="#0000000000000000|0018181818001818|18187e03037e1818|003f67060f26361c|00633e363e630000|0c0c3f0c3f1e3333|0018181800181818|1e331c36361cc67c|0000000000000033|3c4299858599423c|000000007c36363c|0000cc663366cc00|000030303f000000|0000000000000000|3c42a59da59d423c|000000000000007e|000000001c36361c|007e0018187e1818|0000003c0c18301c|0000001c3018301c|0000000000000c18|03063e6666660000|00d8d8d8dedbdbfe|0000001818000000|1e30180000000000|000000001c080c08|000000001c36361c|00003366cc663300|03f3f6ecbd3363c3|f03366cc7b3363c3|80e6acdbb463c403|001e3303060c000c|00637f63361c0007|00637f63361c0070|00637f633e00361c|00637f633e003b6e|0063637f63361c63|00333f331e000c0c|007333337f33367c|1e30181e3303331e|003f061e063f0007|003f061e063f0038|003f061e063f120c|003f061e063f0036|001e0c0c0c1e0007|001e0c0c0c1e0038|001e0c0c1e00120c|001e0c0c0c1e0033|003f66666f6f663f|00333b3f3733003f|00183c663c18000e|00183c663c180070|00183c663c18663c|003e63633e003b6e|00183c66663c18c3|0000361c081c3600|001d366f7b73365c|003c66666666000e|003c666666660070|003c66666600663c|001e333333330033|0018183c66660070|0f063e66663e060f|03031f331f331e00|007e333e301e0007|007e333e301e0038|00fc667c603cc37e|007e333e301e3b6e|007e333e301e0033|007e333e301e0c0c|00fe33fe30fe0000|1c301e03031e0000|001e033f331e0007|001e033f331e0038|003c067e663cc37e|001e033f331e0033|001e0c0c0c0e0007|001e0c0c0c0e001c|003c1818181c633e|001e0c0c0c0e0033|001e333e301b0e1b|003333331f001f00|001e33331e000700|001e33331e003800|001e33331e00331e|001e33331e003b6e|001e33331e003300|001818007e001818|063c6e7e763c6000|007e333333000700|007e333333003800|007e33333300331e|007e333333003300|1f303e3333003800|00063e663e060000|1f303e3333003300">
Font 8x8 (2) +
</a>
</li>
<li>
<a href="#1c08080808080c08|3e0408102020221c|1c2220201820221c|20203e2224283020|1c2220201e02023e|1c2222221e02221c|040404081020203e|1c2222221c22221c|1c22203c2222221c|1c2222222222221c">
Digits
</a>
</li>
<li>
<a href="#5554545050404000|3f21212121212121|3f212d2121212121|3f212d212d212121|3f212d212d212d21|3f212d2d2d212121|3f212d2d2d2d2d2d|00040a1120408000|081c3e7f1c1c1c1c|0010307fff7f3010|1c1c1c1c7f3e1c08|00080cfefffe0c08">
Icons
</a>
</li>
<li>
<a href="#3e2222223e3e0808|3e22223e3e2a0808|3e223e3e2a2a0808|be3e3e2a2a2a0808|be223e3e2a2a0808|be22223e3e2a0808|be2222223e3e0808|be22223e3e2a0808|be223e3e2a2a0808|bebe3e2a2a2a0808|bea23e3e2a2a0808|bea2223e3e2a0808|bea222223e3e0808|bea2223e3e2a0808|bea23e3e2a2a0808|bebebe2a2a2a0808|bea2be3e2a2a0808|bea2a23e3e2a0808|bea2a2223e3e0808|bea2a23e3e2a0808|bea2be3e2a2a0808|bebebeaa2a2a0808|bea2bebe2a2a0808|bea2a2be3e2a0808|bea2a2a23e3e0808|bea2a2be3e2a0808|bea2bebe2a2a0808|bebebeaaaa2a0808|bea2bebeaa2a0808|bea2a2bebe2a0808|bea2a2a2be3e0808|bea2a2bebe2a0808|bea2bebeaa2a0808|bebebeaaaaaa0808|bea2bebeaaaa0808|bea2a2bebeaa0808|bea2a2a2bebe0808|bea2a2a2a2be1c08|bea2a2a2a2a21c1c|bea2a2a2a222001c|bea2a2a22222001c|bea2a2222222001c|bea222222222001c|be2222222222001c|3e2222222222001c|3e2222222222001c|3e22222222221c1c|3e222222223e1c08">
Motor-pump
</a>
</li>
</ul>
<small>
<span class="glyphicon glyphicon-hand-down"></span>
See supported hardware
</small>
<a href="http://s.click.aliexpress.com/e/MnmIm6UFe" target="_blank" title="LED dot matrix MAX7219">
<img class="img-thumbnail" src="led-dot-matrix-max7219.jpg" alt="LED dot matrix MAX7219">
</a>
</div>
<div class="col-xs-6 col-md-3 col-md-push-6 debug">
<div class="checkbox pull-right" style="margin-top: 25px;">
<label> <input type="checkbox" id="imagesAsByteArrays"> As byte arrays </label>
</div>
<h3>Arduino/C code</h3>
<textarea id="output" spellcheck="false" style="width: 100%;"></textarea>
</div>
<div class="col-xs-12 col-md-6 col-md-pull-3 text-center debug">
<table style="display: inline-block">
<tr>
<td></td>
<td id="cols"></td>
<td id="indexSelectsWhole" style="cursor: pointer; width: 300px;">
<small>
<span class="glyphicon glyphicon-hand-left"></span>
Index selects whole row or column
</small>
</td>
</tr>
<tr>
<td id="rows"></td>
<td id="leds"></td>
<td>
<div style="display:inline-block;position: relative; width: 190px; height: 110px;">
<button id="shiftUpButton" style="top:0; left:40px;">
<span class="glyphicon glyphicon-triangle-top"></span>
</button>
<button id="shiftRightButton" style="top:40px; left:80px;">
<span class="glyphicon glyphicon-triangle-right"></span>
</button>
<button id="shiftDownButton" style="top:80px; left:40px;">
<span class="glyphicon glyphicon-triangle-bottom"></span>
</button>
<button id="shiftLeftButton" style="top:40px; left:0;">
<span class="glyphicon glyphicon-triangle-left"></span>
</button>
<button id="invertButton" style="top: 0; left: 120px;">Invert</button>
<button id="clearButton" style="top: 80px; left: 120px;">Clear</button>
</div>
</td>
</tr>
<tr>
<td></td>
<td style="padding-top: 25px;">
<div style="display: inline-block; position: relative; width: 230px; height: 30px;">
<button id="insertButton" style="top:0; left: 0;">Insert</button>
<button id="updateButton" style="top:0; left: 80px;">Update</button>
<button id="deleteButton" style="top:0; left: 160px;">Delete</button>
</div>
</td>
<td style="padding-top: 25px">
<input id="input" type="text" maxlength="16" placeholder="UINT64 HEX">
</td>
</tr>
</table>
</div>
</div>
<div class="row" style="padding: 5px;">
<small>
Use Drag-and-Drop to reorder images
<span class="glyphicon glyphicon-hand-down"></span>
</small>
</div>
<div id="previews" class="row" style="clear: both; "></div>
</div>
<!-- Yandex.Metrika counter -->
<script type="text/javascript"> (function (d, w, c) {
(w[c] = w[c] || []).push(function () {
try {
w.yaCounter25278200 = new Ya.Metrika({
id: 25278200,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true
});
} catch (e) {
}
});
var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () {
n.parentNode.insertBefore(s, n);
};
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else {
f();
}
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript>
<div><img src="https://mc.yandex.ru/watch/25278200" style="position:absolute; left:-9999px;" alt=""/></div>
</noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>