登录
首页 » arduino » gsm

gsm

于 2023-07-16 发布 文件大小:10.12 kB
0 42
下载积分: 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 个回复

  • AGC
    The AGC is a smart programmable gain amplifier (PGA). The amplifier gain is adjusted based upon the input signal level so that the output is at a specified Target Gain. The AGC can be configured to be either a mono or stereo input / output component. For illustration purposes, the following discussion will highlight the stereo configuration.
    2017-12-01 17:26:59下载
    积分:1
  • arduino ps2键盘
    通过ps2接口读取键盘输入的值并打印到串口上
    2022-09-06 10:20:03下载
    积分:1
  • mqtt_fan
    说明:  基于ESP8266平台的风扇固件,使用MQTT通信(ESP8266 FIRMWARE OF MQTT FAN)
    2020-03-23 16:29:35下载
    积分:1
  • 04_Test-20190611T152621Z-001
    说明:  Design of digital systems, Tes01 arduino and proteus.
    2019-06-11 23:21:44下载
    积分:1
  • 四旋翼代码
    这是一个基本的源代码控制的无人机,阿德南saood贴
    2022-11-19 04:05:04下载
    积分:1
  • Arduino的摩尔斯码——SOS
    Arduino的摩尔斯码——SOS,初学使用Arduino UNO 用发光二极管发送SOS信号。Arduino的摩尔斯码——SOS,初学使用Arduino UNO 用发光二极管发送SOS信号。 Arduino的摩尔斯码——SOS,初学使用Arduino UNO 用发光二极管发送SOS信号。
    2022-03-09 13:20:34下载
    积分:1
  • Arduino-MotorControl-v2.1
    说明:  1. 包含步进电机3种控制方式:单四拍、八拍、双四拍 2. 包含步进电机3种运动方式:正转、反转、往复转 3. 电机转速可调、含计数器 4. 代码简单,适合电机初学者、Arduino初学者学习,每个函数均含注释(1. It includes 3 control modes of stepping motor: single four beats, eight beats and double four beats 2. It includes 3 motion modes of stepping motor: forward rotation, reverse rotation and reciprocating rotation 3. motor speed is adjustable, including counter 4. The code is simple, suitable for beginners of motor and Arduino. Each function contains comments)
    2020-05-25 16:11:06下载
    积分:1
  • sketch_dec12a
    sketch_dec12a是arduino文件 读到上位机输出的字符串输出SD卡里面的语音信息。 sketch_dec12a是arduino文件 读到上位机输出的字符串输出SD卡里面的语音信息。(Sketch_dec12a is a string read from Arduino file to output from PC and output voice information in SD card.)
    2018-12-25 10:36:42下载
    积分:1
  • sketch_dec12a
    说明:  sketch_dec12a是arduino文件 读到上位机输出的字符串输出SD卡里面的语音信息。 sketch_dec12a是arduino文件 读到上位机输出的字符串输出SD卡里面的语音信息。(Sketch_dec12a is a string read from Arduino file to output from PC and output voice information in SD card.)
    2018-12-25 10:36:42下载
    积分:1
  • Double Dice Using Seven Segment and Arduino ATMega328
    2023-03-19 18:35:04下载
    积分:1
  • 696524资源总数
  • 103886会员总数
  • 81今日下载