百科小车/K210/Arduino寻迹

//需要源码,私聊

#include <DCMotor.h>//电机
#include <CoreLED.h>//灯
#include <CoreKEY.h>//按键
#include <CoreBeep.h>//蜂鸣器
#include <ExtSRAMInterface.h>//核心板
#include <LED.h>//灯
#include <BH1750.h>//光照传感器
#include <Command.h>//包含了与命令相关的函数和定义
#include <BEEP.h>//蜂鸣器
#include <Infrare.h>//红外
#include <Ultrasonic.h>//超声波
#include <BKRC_Voice.h>//语音


#define Track_speed 55
#define AGV_Go 280
#define Ture_speed 90


static uint8_t TrafficA_Open[8] = { 0x55, 0x0E, 0x01, 0x00, 0x00, 0x00, 0x01, 0xBB };    // 智能交通灯A 进入识别模式 进入识别模式
static uint8_t TrafficA_Red[8] = { 0x55, 0x0E, 0x02, 0x01, 0x00, 0x00, 0x03, 0xBB };     // 智能交通灯A 识别结果为红色请求确认
static uint8_t TrafficA_Green[8] = { 0x55, 0x0E, 0x02, 0x02, 0x00, 0x00, 0x04, 0xBB };   // 智能交通灯A 识别结果为绿色请求确认
static uint8_t TrafficA_Yellow[8] = { 0x55, 0x0E, 0x02, 0x03, 0x00, 0x00, 0x05, 0xBB };  // 智能交通灯A 识别结果为黄色请求确认

static uint8_t TrafficB_Open[8] = {0x55, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x01, 0xBB}; // 智能交通灯B 进入识别模式 进入识别模式
static uint8_t TrafficB_Red[8] = {0x55, 0x0F, 0x02, 0x01, 0x00, 0x00, 0x03, 0xBB}; // 智能交通灯B 识别结果为红色请求确认
static uint8_t TrafficB_Green[8] = {0x55, 0x0F, 0x02, 0x02, 0x00, 0x00, 0x04, 0xBB}; // 智能交通灯B 识别结果为绿色请求确认
static uint8_t TrafficB_Yellow[8] = {0x55, 0x0F, 0x02, 0x03, 0x00, 0x00, 0x05, 0xBB}; // 智能交通灯B 识别结果为黄色请求确认

static uint8_t Gate_Open[8] = { 0x55, 0x03, 0x01, 0x01, 0x00, 0x00, 0x02, 0xBB };  // 道闸 开启

static uint8_t Light_plus1[4] = { 0x00, 0xFF, 0x0C, ~(0x0C) };  // 智能路灯 光源挡位加1
static uint8_t Light_plus2[4] = { 0x00, 0xFF, 0x18, ~(0x18) };  // 智能路灯 光源挡位加2
static uint8_t Light_plus3[4] = { 0x00, 0xFF, 0x5E, ~(0x5E) };  // 智能路灯 光源挡位加3

static uint8_t SEG_TimOpen[8] = { 0x55, 0x04, 0x03, 0x01, 0x00, 0x00, 0x04, 0xBB };   // LED显示 计时开启
static uint8_t SMG_TimClose[8] = { 0x55, 0x04, 0x03, 0x00, 0x00, 0x00, 0x03, 0xBB };  // LED显示 计时关闭

static uint8_t Alarm_Open[6] = {0x03, 0x05, 0x14, 0x45, 0xDE, 0x92}; // 烽火台 开启
static uint8_t Alarm_Close[6] = {0x67, 0x34, 0x78, 0xA2, 0xFD, 0x27}; // 烽火台 关闭

static uint8_t Gate_Close[8] = {0x55, 0x03, 0x01, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 道闸 关闭
static uint8_t Gate_GetStatus[8] = {0x55, 0x03, 0x20, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 道闸 状态查询

static uint8_t Charge_Open[8] = {0x55, 0x0A, 0x01, 0x01, 0x00, 0x00, 0x02, 0xBB}; // 无线充电 开启
static uint8_t Charge_Close[8] = {0x55, 0x0A, 0x01, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 无线充电 开启
 

  • 9
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值