卢占卡
New Member
听邱老师讲话是快速入眠的最好方式
Posts: 35
|
Post by 卢占卡 on Feb 10, 2021 13:21:48 GMT
一.接线原理图二.程序
void setup() {
// put your setup code here, to run once:
pinMode(10,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if ((digitalRead(9)==1)) {
digitalWrite(10, HIGH);
}
if ((digitalRead(9)==0)) {
digitalWrite(10, LOW);
}
}
当手指接触到触摸传感器时,激光头运作,射出激光。当手指离开触摸传感器时,激光头不运作,不射出激光。
|
|
卢占卡
New Member
听邱老师讲话是快速入眠的最好方式
Posts: 35
|
Post by 卢占卡 on Feb 10, 2021 13:22:50 GMT
以上内容为触摸传感器+激光头模块,拒绝喷子,从你我做起
|
|