first commit
This commit is contained in:
1
code/TCRT5000/.pydio
Normal file
1
code/TCRT5000/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
04d239db-d02d-4b77-9e21-fd26335a0460
|
||||
1
code/TCRT5000/sketch_mar30a/.pydio
Normal file
1
code/TCRT5000/sketch_mar30a/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
cda72fad-4698-4aa9-9fc1-06b790b41faa
|
||||
18
code/TCRT5000/sketch_mar30a/sketch_mar30a.ino
Normal file
18
code/TCRT5000/sketch_mar30a/sketch_mar30a.ino
Normal file
@@ -0,0 +1,18 @@
|
||||
#define LEFT 13
|
||||
void setup()
|
||||
{
|
||||
|
||||
Serial.begin(9600);
|
||||
pinMode(LEFT, INPUT);
|
||||
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
||||
{
|
||||
// 1 没有检测到障碍物,0 检测到障碍物
|
||||
int Left_Value = digitalRead(LEFT);
|
||||
Serial.print("LEFT: ");
|
||||
Serial.println(Left_Value);
|
||||
delay(2000);
|
||||
}
|
||||
Reference in New Issue
Block a user