Skip to content

Commit cc62683

Browse files
adding ReadUltrasonicSensor(); support
1 parent 52313a6 commit cc62683

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"authors": "Stanislav Jochman, Veronika Nemjová",
2727
"frameworks": "arduino"
2828
},
29-
"version": "3.0.5",
29+
"version": "3.0.6",
3030
"frameworks": "arduino",
3131
"platforms": "*"
3232
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Attiny84_IO_basic
2-
version=3.0.5
2+
version=3.0.6
33
author=RobotCing Team
44
maintainer=RobotCing Team <robotcing@gmail.com>
55
sentence=Library for robot Cing with Attiny84.

src/Attiny84_IO_basic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ int Cing::ReadLightSensor(int sensor,String mode)
245245
int Cing::ReadUltrasonicSensor()
246246
{
247247
#define UltrasonicSensor 4
248+
pinMode(UltrasonicSensor,INPUT);
248249
return digitalRead(UltrasonicSensor);
249250
}
250251
//--------------------------------------------

0 commit comments

Comments
 (0)