<div dir="ltr"><div><div>I think the problem is <br><br></div>#define Epson 1<br><br><br></div>This will result in <br><br><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">1</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">TM88</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">=</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">1</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">(</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">printer_RX_Pin</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">,</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">printer_TX_Pin</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">);</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"></span><br>
<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 6:53 PM, Stuart Poulton <span dir="ltr"><<a href="mailto:stuart@poulton.org.uk" target="_blank">stuart@poulton.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Bo,<div><br></div><div>The other problem that you will have when you get it working is from the following</div>
<div><br></div><div><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">
<div style="padding-left:10px"><span style="font-weight:bold">const</span> <span style="color:rgb(68,85,136);font-weight:bold">char</span> <span style="color:rgb(51,51,51)">server</span><span>[]</span> <span style="font-weight:bold">=</span> <span style="color:rgb(221,17,68)">"87.51.52.114"</span><span>;</span> <span style="color:rgb(153,153,136);font-style:italic">// name address for server (using DNS)</span></div>
<div style="padding-left:10px"><span style="color:rgb(153,153,136);font-style:italic">//IPAddress server(87,51,52,114); // example, if you want to use IP address</span></div></pre><div><br></div></div><div>I'll leave it as an exercise for the user to spot the problem, here's a hint look at the comments.</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>Stuart</div><div><br></div></font></span><div><br><div><div class="im"><div>On 3 Feb 2014, at 18:07, Bo Herrmannsen wrote:</div><br></div><blockquote type="cite">
<div><div class="h5"><div style="word-wrap:break-word">Hi<div><br></div><div>working on a receipt printer that prints out orders from a oscommerce based webshop</div><div><br></div><div>almost there but a compile error i can figure:</div>
<div><br></div><div><div>sketch_feb03a:82: error: expected unqualified-id before numeric constant</div><div>sketch_feb03a.ino: In function 'void setup()':</div><div>sketch_feb03a:151: error: 'TM88' was not declared in this scope</div>
<div>sketch_feb03a.ino: In function 'void processIncoming()':</div><div>sketch_feb03a:402: error: 'TM88' was not declared in this scope</div><div>sketch_feb03a.ino: In function 'void processPrintChar(char)':</div>
<div>sketch_feb03a:459: error: 'TM88' was not declared in this scope</div><div>sketch_feb03a:489: error: 'TM88' was not declared in this scope</div></div><div><br></div><div><br></div><div>code here: <a href="https://github.com/laird/OSCommerceClient/blob/master/OSCommerce/OSCommerce.ino" target="_blank">https://github.com/laird/OSCommerceClient/blob/master/OSCommerce/OSCommerce.ino</a></div>
<div><br></div><div>lib for the printer here: <a href="https://github.com/signalwerk/thermalprinter" target="_blank">https://github.com/signalwerk/thermalprinter</a></div><div><br></div><div><br></div><div>this is one that is killing me..... worse than TMP112</div>
<div><br></div><div><br></div><div>i just want it out the door quick</div><div><br></div><div><br></div><div>HEEEEEEEEEEEEELP</div></div></div></div><div class="im">_______________________________________________<br>OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</div></blockquote></div><br></div></div><br>_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
<br></blockquote></div><br></div>