随笔分类 -  Arduino

摘要:unity3d通过串口接收Arduino数据 using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO.Ports; using System; using Syste 阅读全文
posted @ 2024-09-01 00:16 西北逍遥 阅读(94) 评论(0) 推荐(0) 编辑
摘要:const int xPin = A0; // X轴连接的模拟引脚 const int yPin = A1; // Y轴连接的模拟引脚 void setup() { Serial.begin(9600); // 初始化串口通信 } void loop() { int xValue = analogR 阅读全文
posted @ 2024-07-09 00:07 西北逍遥 阅读(16) 评论(0) 推荐(0) 编辑
摘要:int point_id2 = 2; int point_id3 = 3; int point_id4 = 4; int point_id5 = 5; int point_id8 = 8; int point_id9 = 9; int point_id10 = 10; int point_id11 阅读全文
posted @ 2023-06-23 20:30 西北逍遥 阅读(26) 评论(0) 推荐(0) 编辑
摘要:int point_id2 = 2; int point_id3 = 3; int point_id4 = 4; int point_id5 = 5; int point_id8 = 8; int point_id9 = 9; int point_id10 = 10; int point_id11 阅读全文
posted @ 2023-06-17 20:13 西北逍遥 阅读(89) 评论(0) 推荐(0) 编辑
摘要:#include <SoftwareSerial.h> int point_id1 = 4; int point_id2 = 9; int point_id3 = 3; int point_id4 = 10; void setup() { // put your setup code here, t 阅读全文
posted @ 2023-06-15 21:57 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要:void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(2,OUTPUT); pinMode(7,OUTPUT); analogWrite(9,255); } void loop() { 阅读全文
posted @ 2023-06-11 19:15 西北逍遥 阅读(143) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示