Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Cash Drawer #10

Closed
LuckyDucky583 opened this issue May 13, 2019 · 7 comments
Closed

Open Cash Drawer #10

LuckyDucky583 opened this issue May 13, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@LuckyDucky583
Copy link

Hey! First of all, I love this library, as it made my life a lot easier!
I was wondering though, could you provide sample code for opening the cash drawer? I am trying to use the pulsePin methode with an EPSON TM-T88V for that purpose, but can't seem to get it to work.

@LuckyDucky583 LuckyDucky583 added the enhancement New feature or request label May 13, 2019
@anastaciocintra
Copy link
Owner

Hi lucashornung ,
thanks to your feedback
the name of function that you should use is pulsePin, but i can´t test it, because i do not have one cash-drawer.

Because of these issue, I readed again the documentation and this function have a problem (missing one character: 'p')
I opened one branch to fix this bug

@LuckyDucky583
Copy link
Author

Great, thanks!
I just came up with a similar fix, right before I got your message.

My fix was to just add this line to the method:

write(112);

is p already a variable in the code?

@LuckyDucky583
Copy link
Author

Also, maybe as a bit of a follow up, is there a way to check the printer status(paper, if the drawer is open, etc.)? Else I could try to add one tomorrow.

@anastaciocintra
Copy link
Owner

fixed the method pusePin
one sample (on samples) can be found with name pulsePin ...
you can change time one and time two parameters and pin connector (2 or 5).

you can download on last release v1.0.5

I do not have one cash drawer hardware, please, let me know if it is working.

thank you

@anastaciocintra
Copy link
Owner

Also, maybe as a bit of a follow up, is there a way to check the printer status(paper, if the drawer is open, etc.)? Else I could try to add one tomorrow.

see the answer on #11 issue

@anastaciocintra
Copy link
Owner

Great, thanks!
I just came up with a similar fix, right before I got your message.

My fix was to just add this line to the method:

write(112);

is p already a variable in the code?

good, is this working fine?

@anastaciocintra anastaciocintra changed the title Open Cash Drawer Open Cash Drawer -- read #50 Dec 7, 2020
@anastaciocintra anastaciocintra changed the title Open Cash Drawer -- read #50 Open Cash Drawer Dec 7, 2020
@anastaciocintra
Copy link
Owner

read #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants