first commit

This commit is contained in:
编码猿
2024-09-27 01:22:07 +08:00
commit 1360daaab0
931 changed files with 131068 additions and 0 deletions

1
code/TCRT5000/.pydio Normal file
View File

@@ -0,0 +1 @@
04d239db-d02d-4b77-9e21-fd26335a0460

View File

@@ -0,0 +1 @@
cda72fad-4698-4aa9-9fc1-06b790b41faa

View 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);
}