登录
首页 » arduino » gsm

gsm

于 2023-07-16 发布 文件大小:10.12 kB
0 191
下载积分: 2 下载次数: 1

代码说明:

arduino的io控制输入输出#include #include #include "RC522.h"#include "DS1302.h"#include #define GSMSerial Serial1#define ID "768E4DA5"uint8_t CE_PIN   = 4;uint8_t IO_PIN   = 3;uint8_t SCLK_PIN = 2;char buf[50];//4 bytes Serial number of card, the 5 bytes is verfiy bytesunsigned char serNum[5];unsigned char state_pre=1;/* 创建 DS1302 对象 */DS1302 rtc(CE_PIN, IO_PIN, SCLK_PIN);void print_time() {     /* 从 DS1302 获取当前时间 */     Time t = rtc.time();     snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d", t.yr, t.mon, t.date, t.hr, t.min, t.sec);     /* 输出日期到串口 */     Serial.println(buf); }void setup() {   Serial.begin(9600);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • arduino ps2键盘
    通过ps2接口读取键盘输入的值并打印到串口上
    2022-09-06 10:20:03下载
    积分:1
  • tiny_climber_control
    遥控器控制小车,通过无线串口与单片机通讯(controller control tiny car)
    2020-06-23 18:20:02下载
    积分:1
  • Arduino库GSM屏蔽
    应用背景这个库可以使用Arduino GSM和GPRS在GSM屏蔽连接网络Arduino GSM屏蔽连接你的Arduino互联网使用GPRS无线网络。只是把这个模块到你的Arduino板,插入SIM卡,从运营商提供的GPRS覆盖和跟踪几个简单的关键技术使用这个库使/接收语音呼叫,发送和接收短信的quectel M10 GSM模块。;本库也允许你通过的GPRS网络连接到互联网。您可以使用网络客户端和服务器。
    2022-05-19 17:11:32下载
    积分:1
  • arduino 引脚控制库函数
    , arduino myPin 库函数 将常用的引脚控制,特别是引脚输出,封装成库函数方便操作 void on();                           //  引脚输出高电平     void off();                          //  引脚输出低电平     void on(unsigned char pwmVal);      //  引脚输出一定占空比的方波(50Hz)(0-255)     void onTime(unsigned int delayTime);
    2022-12-17 17:00:03下载
    积分:1
  • 遥控小车
    说明:  手机遥控小车,蓝牙连接,电机正反转,LED(Mobile phone remote control car, Bluetooth connection)
    2021-03-03 14:50:59下载
    积分:1
  • FFT使用Arduino Uno
    在这里,我已经开发了一个稳定的FFT算法,Arduino兼容。我已经把它从各种类似的网站GitHub和合并在一个程序。所以如果你真的想找到FFT请用这个。它的有趣。欢迎任何建议。
    2022-03-15 04:49:43下载
    积分:1
  • space
    it is the new chaleng for you because is very spacial
    2017-11-02 18:33:42下载
    积分:1
  • ReadGPS_for_GSM
    Tiny GPS is a library to read GPS devices
    2018-12-06 11:21:03下载
    积分:1
  • 四足机器人打印件+说明书+代码
    说明:  通过8个舵机 实现蜘蛛类的的仿生运动,文件包含所有的打印件及嵌入程序,提供arduino源代码,实现10多种运动模式,可以通过蓝牙或者wifi控制。(The bionic movement of spiders is realized by eight steering gears. The file contains all the prints and embedded programs. It provides Arduino source code and realizes more than 10 motion modes. It can be controlled by Bluetooth or wifi.)
    2020-12-26 10:29:03下载
    积分:1
  • 《爱上Arduino》中文版
    教程很不错,我虽然学的单片机是51,但是这个也适合自己摸索(It is good.Though I learn 51,it is suitable for us to do experience.)
    2017-12-24 10:15:11下载
    积分:1
  • 696518资源总数
  • 105949会员总数
  • 22今日下载