mmarchetti / DirectIO

Fast, simple I/O library for Arduino
GNU Lesser General Public License v3.0
115 stars 27 forks source link

OutputLow not implemented #12

Closed mathgcosta closed 6 years ago

mathgcosta commented 6 years ago

Hi @mmarchetti, When I use OutputLow syntax it shows this error message:

error: 'OutputLow' does not name a type

I check on DirecIO.h header and didn't saw any implementation of these. I tried to implement OutputLow class based on Output, and the result was:

Original Output: image

I don't know if is in the best implementation, but it works.

Modified OutputLow: image

mmarchetti commented 6 years ago

Thank you. Are you able to open a PR with your implementation?

The only change I would suggest is to negate the return value of read(), so it would be ! bitRead(...).

mathgcosta commented 6 years ago

Hmm. Ok. I can try do a Pull Request, never done before.

Thanks!

mmarchetti commented 6 years ago

Give it a try, if it doesn’t work out, paste your code in a comment here and I will merge it.

mathgcosta commented 6 years ago

Hi,

So, I tried to do PR in some ways, but nothing happen. Is it allowed to do that? Apparently I can't compare the master branch.

1

Other attempts: 1 2

2 3

mmarchetti commented 6 years ago

To open a PR, you'd need to fork the repo into your GitHub account, clone your version locally to your machine, make the changes, push to a branch, then open a PR requesting to merge your branch back into my version of the repository. If you haven't done that before, there is a bit of a learning curve.

If you can just paste in the text of your code here, I will create the PR and merge it in.

mathgcosta commented 6 years ago

So cool. Got it.

Didn't know I had to fork first. It's done.

Thanks.

mathgcosta commented 6 years ago

nice!