{"id":3114,"date":"2011-09-19T17:51:50","date_gmt":"2011-09-19T21:51:50","guid":{"rendered":"https:\/\/example.com\/?postname=papilio-one-board-update"},"modified":"2011-09-19T17:51:50","modified_gmt":"2011-09-19T21:51:50","slug":"papilio-one-board-update","status":"publish","type":"post","link":"http:\/\/atomsofttech.com\/blog\/uncategorized\/papilio-one-board-update\/","title":{"rendered":"Papilio One Board Update"},"content":{"rendered":"<p>Just got my mail today and the 500E chip came in from Gadget Factory! Great speedy shipping!<\/p>\n<p>Already installed it and tested it with the ASCII stuff&#8230;<\/p>\n\n<p><!--more-->Actual output:<\/p>\n<p>!, dec: 33, hex: 21, oct: 41, bin: 100001<br \/>\n&#8220;, dec: 34, hex: 22, oct: 42, bin: 100010<br \/>\n#, dec: 35, hex: 23, oct: 43, bin: 100011<br \/>\n$, dec: 36, hex: 24, oct: 44, bin: 100100<br \/>\n%, dec: 37, hex: 25, oct: 45, bin: 100101<br \/>\n&amp;, dec: 38, hex: 26, oct: 46, bin: 100110<br \/>\n&#8216;, dec: 39, hex: 27, oct: 47, bin: 100111<br \/>\n(, dec: 40, hex: 28, oct: 50, bin: 101000<br \/>\n), dec: 41, hex: 29, oct: 51, bin: 101001<br \/>\n*, dec: 42, hex: 2A, oct: 52, bin: 101010<br \/>\n+, dec: 43, hex: 2B, oct: 53, bin: 101011<br \/>\n,, dec: 44, hex: 2C, oct: 54, bin: 101100<br \/>\n-, dec: 45, hex: 2D, oct: 55, bin: 101101<br \/>\n., dec: 46, hex: 2E, oct: 56, bin: 101110<br \/>\n\/, dec: 47, hex: 2F, oct: 57, bin: 101111<br \/>\n0, dec: 48, hex: 30, oct: 60, bin: 110000<br \/>\n1, dec: 49, hex: 31, oct: 61, bin: 110001<br \/>\n2, dec: 50, hex: 32, oct: 62, bin: 110010<br \/>\n3, dec: 51, hex: 33, oct: 63, bin: 110011<br \/>\n4, dec: 52, hex: 34, oct: 64, bin: 110100<br \/>\n5, dec: 53, hex: 35, oct: 65, bin: 110101<br \/>\n6, dec: 54, hex: 36, oct: 66, bin: 110110<br \/>\n7, dec: 55, hex: 37, oct: 67, bin: 110111<br \/>\n8, dec: 56, hex: 38, oct: 70, bin: 111000<br \/>\n9, dec: 57, hex: 39, oct: 71, bin: 111001<br \/>\n:, dec: 58, hex: 3A, oct: 72, bin: 111010<br \/>\n;, dec: 59, hex: 3B, oct: 73, bin: 111011<br \/>\n&lt;, dec: 60, hex: 3C, oct: 74, bin: 111100<br \/>\n=, dec: 61, hex: 3D, oct: 75, bin: 111101<br \/>\n&gt;, dec: 62, hex: 3E, oct: 76, bin: 111110<br \/>\n?, dec: 63, hex: 3F, oct: 77, bin: 111111<br \/>\n@, dec: 64, hex: 40, oct: 100, bin: 1000000<br \/>\nA, dec: 65, hex: 41, oct: 101, bin: 1000001<br \/>\nB, dec: 66, hex: 42, oct: 102, bin: 1000010<br \/>\nC, dec: 67, hex: 43, oct: 103, bin: 1000011<br \/>\nD, dec: 68, hex: 44, oct: 104, bin: 1000100<br \/>\nE, dec: 69, hex: 45, oct: 105, bin: 1000101<br \/>\nF, dec: 70, hex: 46, oct: 106, bin: 1000110<br \/>\nG, dec: 71, hex: 47, oct: 107, bin: 1000111<br \/>\nH, dec: 72, hex: 48, oct: 110, bin: 1001000<br \/>\nI, dec: 73, hex: 49, oct: 111, bin: 1001001<br \/>\nJ, dec: 74, hex: 4A, oct: 112, bin: 1001010<br \/>\nK, dec: 75, hex: 4B, oct: 113, bin: 1001011<br \/>\nL, dec: 76, hex: 4C, oct: 114, bin: 1001100<br \/>\nM, dec: 77, hex: 4D, oct: 115, bin: 1001101<br \/>\nN, dec: 78, hex: 4E, oct: 116, bin: 1001110<br \/>\nO, dec: 79, hex: 4F, oct: 117, bin: 1001111<br \/>\nP, dec: 80, hex: 50, oct: 120, bin: 1010000<br \/>\nQ, dec: 81, hex: 51, oct: 121, bin: 1010001<br \/>\nR, dec: 82, hex: 52, oct: 122, bin: 1010010<br \/>\nS, dec: 83, hex: 53, oct: 123, bin: 1010011<br \/>\nT, dec: 84, hex: 54, oct: 124, bin: 1010100<br \/>\nU, dec: 85, hex: 55, oct: 125, bin: 1010101<br \/>\nV, dec: 86, hex: 56, oct: 126, bin: 1010110<br \/>\nW, dec: 87, hex: 57, oct: 127, bin: 1010111<br \/>\nX, dec: 88, hex: 58, oct: 130, bin: 1011000<br \/>\nY, dec: 89, hex: 59, oct: 131, bin: 1011001<br \/>\nZ, dec: 90, hex: 5A, oct: 132, bin: 1011010<br \/>\n[, dec: 91, hex: 5B, oct: 133, bin: 1011011<br \/>\n\\, dec: 92, hex: 5C, oct: 134, bin: 1011100<br \/>\n], dec: 93, hex: 5D, oct: 135, bin: 1011101<br \/>\n^, dec: 94, hex: 5E, oct: 136, bin: 1011110<br \/>\n_, dec: 95, hex: 5F, oct: 137, bin: 1011111<br \/>\n`, dec: 96, hex: 60, oct: 140, bin: 1100000<br \/>\na, dec: 97, hex: 61, oct: 141, bin: 1100001<br \/>\nb, dec: 98, hex: 62, oct: 142, bin: 1100010<br \/>\nc, dec: 99, hex: 63, oct: 143, bin: 1100011<br \/>\nd, dec: 100, hex: 64, oct: 144, bin: 1100100<br \/>\ne, dec: 101, hex: 65, oct: 145, bin: 1100101<br \/>\nf, dec: 102, hex: 66, oct: 146, bin: 1100110<br \/>\ng, dec: 103, hex: 67, oct: 147, bin: 1100111<br \/>\nh, dec: 104, hex: 68, oct: 150, bin: 1101000<br \/>\ni, dec: 105, hex: 69, oct: 151, bin: 1101001<br \/>\nj, dec: 106, hex: 6A, oct: 152, bin: 1101010<br \/>\nk, dec: 107, hex: 6B, oct: 153, bin: 1101011<br \/>\nl, dec: 108, hex: 6C, oct: 154, bin: 1101100<br \/>\nm, dec: 109, hex: 6D, oct: 155, bin: 1101101<br \/>\nn, dec: 110, hex: 6E, oct: 156, bin: 1101110<br \/>\no, dec: 111, hex: 6F, oct: 157, bin: 1101111<br \/>\np, dec: 112, hex: 70, oct: 160, bin: 1110000<br \/>\nq, dec: 113, hex: 71, oct: 161, bin: 1110001<br \/>\nr, dec: 114, hex: 72, oct: 162, bin: 1110010<br \/>\ns, dec: 115, hex: 73, oct: 163, bin: 1110011<br \/>\nt, dec: 116, hex: 74, oct: 164, bin: 1110100<br \/>\nu, dec: 117, hex: 75, oct: 165, bin: 1110101<br \/>\nv, dec: 118, hex: 76, oct: 166, bin: 1110110<br \/>\nw, dec: 119, hex: 77, oct: 167, bin: 1110111<br \/>\nx, dec: 120, hex: 78, oct: 170, bin: 1111000<br \/>\ny, dec: 121, hex: 79, oct: 171, bin: 1111001<br \/>\nz, dec: 122, hex: 7A, oct: 172, bin: 1111010<br \/>\n{, dec: 123, hex: 7B, oct: 173, bin: 1111011<br \/>\n|, dec: 124, hex: 7C, oct: 174, bin: 1111100<br \/>\n}, dec: 125, hex: 7D, oct: 175, bin: 1111101<br \/>\n~, dec: 126, hex: 7E, oct: 176, bin: 1111110<\/p>\n<p>Sketch:<\/p>\n<p>\/*<br \/>\nASCII table<\/p>\n<p>Prints out byte values in all possible formats:<br \/>\n* as raw binary values<br \/>\n* as ASCII-encoded decimal, hex, octal, and binary values<\/p>\n<p>For more on ASCII, see http:\/\/www.asciitable.com and http:\/\/en.wikipedia.org\/wiki\/ASCII<\/p>\n<p>The circuit:\u00a0 No external hardware needed.<\/p>\n<p>created 2006<br \/>\nby Nicholas Zambetti<br \/>\nmodified 18 Jan 2009<br \/>\nby Tom Igoe<br \/>\nmodified 16 Sep 2011<br \/>\nby AtomSoft<\/p>\n<p>This example code is in the public domain.<\/p>\n<p>&lt;http:\/\/www.zambetti.com&gt;<\/p>\n<p>*\/<br \/>\nvoid setup()<br \/>\n{<br \/>\nSerial.begin(9600);<\/p>\n<p>\/\/ prints title with ending line break<br \/>\nSerial.println(&#8220;ASCII Table ~ Character Map&#8221;);<br \/>\n}<\/p>\n<p>\/\/ first visible ASCIIcharacter &#8216;!&#8217; is number 33:<br \/>\nint thisByte = 33;<br \/>\n\/\/ you can also write ASCII characters in single quotes.<br \/>\n\/\/ for example. &#8216;!&#8217; is the same as 33, so you could also use this:<br \/>\n\/\/int thisByte = &#8216;!&#8217;;<\/p>\n<p>void loop()<br \/>\n{<br \/>\n\/\/ prints value unaltered, i.e. the raw binary version of the<br \/>\n\/\/ byte. The serial monitor interprets all bytes as<br \/>\n\/\/ ASCII, so 33, the first number,\u00a0 will show up as &#8216;!&#8217;<br \/>\nSerial.print(thisByte, BYTE);<\/p>\n<p>Serial.print(&#8220;, dec: &#8220;);<br \/>\n\/\/ prints value as string as an ASCII-encoded decimal (base 10).<br \/>\n\/\/ Decimal is the\u00a0 default format for Serial.print() and Serial.println(),<br \/>\n\/\/ so no modifier is needed:<br \/>\nSerial.print(thisByte);<br \/>\n\/\/ But you can declare the modifier for decimal if you want to.<br \/>\n\/\/this also works if you uncomment it:<\/p>\n<p>\/\/ Serial.print(thisByte, DEC);<\/p>\n<p>Serial.print(&#8220;, hex: &#8220;);<br \/>\n\/\/ prints value as string in hexadecimal (base 16):<br \/>\nSerial.print(thisByte, HEX);<\/p>\n<p>Serial.print(&#8220;, oct: &#8220;);<br \/>\n\/\/ prints value as string in octal (base 8);<br \/>\nSerial.print(thisByte, OCT);<\/p>\n<p>Serial.print(&#8220;, bin: &#8220;);<br \/>\n\/\/ prints value as string in binary (base 2)<br \/>\n\/\/ also prints ending line break:<br \/>\nSerial.println(thisByte, BIN);<\/p>\n<p>\/\/ if printed last visible character &#8216;~&#8217; or 126, stop:<br \/>\nif(thisByte == 126) {\u00a0\u00a0\u00a0\u00a0 \/\/ you could also use if (thisByte == &#8216;~&#8217;) {<br \/>\n\/\/ This loop loops forever and does nothing<br \/>\nthisByte = 0x20;<br \/>\n}<br \/>\n\/\/ go on to the next character<br \/>\nthisByte++;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just got my mail today and the 500E chip came in from Gadget Factory! Great speedy shipping! Already installed it and tested it with the ASCII stuff&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-3114","post","type-post","status-publish","format-standard","hentry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/comments?post=3114"}],"version-history":[{"count":0,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3114\/revisions"}],"wp:attachment":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/media?parent=3114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/categories?post=3114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/tags?post=3114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}