Skip to content

Commit

Permalink
Iono version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
giampiero7 committed Apr 4, 2017
1 parent 1504129 commit c5c401c
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 101 deletions.
8 changes: 6 additions & 2 deletions Iono/Iono.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
Iono.cpp - Arduino library for the control of iono
Copyright (C) 2014-2016 Sfera Labs S.r.l. - All rights reserved.
Copyright (C) 2014-2017 Sfera Labs S.r.l. - All rights reserved.
For information, see the iono web site:
http://www.sferalabs.cc/iono
http://www.sferalabs.cc/iono-arduino
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -58,6 +58,10 @@ IonoClass::IonoClass() {
pinMode(_pinMap[DI5], INPUT);
pinMode(_pinMap[DI6], INPUT);
pinMode(_pinMap[AO1], OUTPUT);

#ifndef ARDUINO_SAMD_ZERO
analogReference(EXTERNAL);
#endif
}

void IonoClass::subscribeDigital(uint8_t pin, unsigned long stableTime, Callback *callback) {
Expand Down
4 changes: 2 additions & 2 deletions Iono/Iono.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
Iono.h - Arduino library for the control of iono
Copyright (C) 2014-2016 Sfera Labs S.r.l. - All rights reserved.
Copyright (C) 2014-2017 Sfera Labs S.r.l. - All rights reserved.
For information, see the iono web site:
http://www.sferalabs.cc/iono
http://www.sferalabs.cc/iono-arduino
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down
Loading

0 comments on commit c5c401c

Please sign in to comment.