随笔分类 - Arduino
摘要:unity3d通过串口接收Arduino数据 using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO.Ports; using System; using Syste
阅读全文
摘要:const int xPin = A0; // X轴连接的模拟引脚 const int yPin = A1; // Y轴连接的模拟引脚 void setup() { Serial.begin(9600); // 初始化串口通信 } void loop() { int xValue = analogR
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:#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
阅读全文
摘要:void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(2,OUTPUT); pinMode(7,OUTPUT); analogWrite(9,255); } void loop() {
阅读全文