资源简介
arduino写字机器人控制电路驱动程序,需要上传到Arduino uno 开发板上;可前往博客查看教程。
arduino写字机器人控制电路驱动程序,需要上传到Arduino uno 开发板上;可前往博客查看教程。
代码片段和文件信息
/*
coolant_control.c - coolant control methods
Part of Grbl
Copyright (c) 2012-2015 Sungeun K. Jeon
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl. If not see .
*/
#include “grbl.h“
void coolant_init()
{
COOLANT_FLOOD_DDR |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_DDR |= (1 << COOLANT_MIST_BIT);
#endif
coolant_stop();
}
void coolant_stop()
{
COOLANT_FLOOD_PORT &= ~(1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_PORT &= ~(1 << COOLANT_MIST_BIT);
#endif
}
void coolant_set_state(uint8_t mode)
{
if (mode == COOLANT_FLOOD_ENABLE) {
COOLANT_FLOOD_PORT |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
} else if (mode == COOLANT_MIST_ENABLE) {
COOLANT_MIST_PORT |= (1 << COOLANT_MIST_BIT);
#endif
} else {
coolant_stop();
}
}
void coolant_run(uint8_t mode)
{
if (sys.state == STATE_CHECK_MODE) { return; }
protocol_buffer_synchronize(); // Ensure coolant turns on when specified in program.
coolant_set_state(mode);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 27964 2015-08-13 03:09 config.h
文件 1566 2015-08-13 03:09 coolant_control.c
文件 894 2015-08-13 03:09 coolant_control.h
文件 1681 2015-08-13 03:09 cpu_map.h
目录 0 2019-10-31 23:14 cpu_map\
文件 5475 2015-08-13 03:09 cpu_map\cpu_map_atmega2560.h
文件 6226 2015-08-13 03:09 cpu_map\cpu_map_atmega328p.h
文件 3539 2015-08-13 03:09 defaults.h
目录 0 2019-10-31 23:14 defaults\
文件 2809 2015-08-13 03:09 defaults\defaults_generic.h
文件 2848 2015-08-13 03:09 defaults\defaults_oxcnc.h
文件 3259 2015-08-13 03:09 defaults\defaults_shapeoko.h
文件 3218 2015-08-13 03:09 defaults\defaults_shapeoko2.h
文件 3164 2015-08-13 03:09 defaults\defaults_shapeoko3.h
文件 3191 2015-08-13 03:09 defaults\defaults_sherline.h
文件 2892 2015-08-13 03:09 defaults\defaults_simulator.h
文件 3230 2015-08-13 03:09 defaults\defaults_x_carve_1000mm.h
文件 3230 2015-08-13 03:09 defaults\defaults_x_carve_500mm.h
文件 3248 2015-08-13 03:09 defaults\defaults_zen_toolworks_7x7.h
文件 5448 2015-08-13 03:09 eeprom.c
文件 1059 2015-08-13 03:09 eeprom.h
目录 0 2019-10-31 23:14 examples\
目录 0 2019-10-31 23:14 examples\grblUpload\
文件 1231 2015-08-13 03:09 examples\grblUpload\grblUpload.ino
文件 1081 2015-08-13 03:09 examples\grblUpload\license.txt
文件 59816 2015-08-13 03:09 gcode.c
文件 8002 2015-08-13 03:09 gcode.h
文件 1612 2015-08-13 03:09 grbl.h
文件 14983 2015-08-13 03:09 limits.c
文件 1220 2015-08-13 03:09 limits.h
文件 3257 2015-08-13 03:09 main.c
............此处省略25个文件信息
- 上一篇:WebSocket测试工具
- 下一篇:bzip2-1.0.6 源码
相关资源
- ADNS-3080光流传感器测试程序Arduino
- EESkill NRF24L01 无线模块用户手册
- Arduino nano 工程文件
- Arduino教程 Lesson 之--自制风扇
- 基于Arduino的智能环境监控系统设计
- 基于Arduino和Machtalk的温棚环境监测系
- arduino pca9685多舵机同时控制案例
- arduino技术内幕
- Arduino电子设计实战指南.零基础篇_超
- 物联网智能家居平台DIY:ARDUINO 物联网
- 实验1.zip arduino跑马灯led灯实验,串口
- opencat所有资料.zip
- arduino主机,stm8从机。I2C测试 。每次
- DS18B20_Serial_println.ino
- ps2手柄arduino库文件
- 基于手机蓝牙的arduino遥控小车
- arduino中的can库函数
- 密码+指纹锁资料包.rar
- 贝壳物联arduino esp8266 demo版本
- HMC5883L罗盘指南针模块库文件及中英文
- arduino 小贱钟源码及教程
- Atom-TMC2208Pilot在Arduino上运行的应用程
- 写字机制作方案
- PID-增量式PID和位置式PID算法实现和
- Building Wireless Sensor Networks Using Arduin
- vc控制Arduino,实现串口通信
- Arduino入门经典
- Arduino所有库.zip
- 基于STM32和arduino的MPU9250九轴传感器代
- GY-9960模块Keil 和Arduino驱动程序
评论
共有 条评论