lpy 发布的文章

Arduino Nano + L298N

//源文件class Motor{public:  Motor(int in1, int in2, int in3, int in4, int ena, int enb)  {    _pin1 = in1;    _pin2 = in2;    _pin3 = in3;    _pin4 = in4;    _pina = ena;    _pinb = enb; &...

Continue Reading...

Linux下的Sublime_Text2(XX)

Linux 下的Sublime Text 2 版本:2.0.1 Build 2217。1.去其官方网站http://www.sublimetext.com/ 把linux版下载下来,解开压缩包,放在你希望的路径下。2.用vim将其打开 。     vim sublime_text3.将文件转成十六进制形式。vim中输入     :%!xxd3.在vim中定位至“Thanks”文字附近。     /Thanks4.接着查找数字串&ldq...

Continue Reading...

Air Quality Monitoring

原文地址:http://www.howmuchsnow.com/arduino/airquality/ 主要注意粉尘计算公式 Update: 2014/01/28 val = (dustVal*0.0049*0.172-0.0999)*2000; 这个颗粒物计算公式比较准确 /* Interface to Sharp GP2Y1010AU0F Particle Sensor Program by Christopher Nafis Written April 2012 http://www.sparkfun.com/datasheets/Sensors/gp...

Continue Reading...

libCUrl封装

#ifndef BASE_CURL_H#define BASE_CURL_H#include <iostream>#include <string.h>#include "curl/curl.h"#include <json/json.h>using namespace std;class BaseCURL{public:    BaseCURL()    : m_header(NULL)    , m_curl(NULL)&nbs...

Continue Reading...

秘方

1、添加以下代码到模板目录的module文件: 1 2 3 4 <labelfor="wmzz_comc"><input type="checkbox" value=9 id="wmzz_comc" name="wmzz_comc"required="required" autocomplete="on"required title="发表评论确认框:请勾选我再发表评论!"...

Continue Reading...