This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Arduino.h" | |
#define PIR_INPUT 11 | |
#define DFPLAYER_OUTPUT 10 | |
#define WAIT_TICKS_INTERVAL 1000 // each ticks is about 10ms | |
int ledPin = 13; // LED connected to digital pin 13 | |
uint8_t state = 0; | |
volatile uint32_t ticks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define BUTTON_COUNT 36 | |
#define KEYPAD_OUTPUT_BEGIN 2 | |
#define KEYPAD_OUTPUT_END 7 | |
#define KEYPAD_INPUT_BEGIN 8 | |
#define KEYPAD_INPUT_END 13 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define BUTTON_COUNT 36 | |
#define KEYPAD_OUTPUT_BEGIN 2 | |
#define KEYPAD_OUTPUT_END 7 | |
#define KEYPAD_INPUT_BEGIN 8 | |
#define KEYPAD_INPUT_END 13 | |
uint8_t keypad_button_pressed[BUTTON_COUNT]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================ | |
// Name : main.cpp | |
// Author : Huy Do ([email protected]) | |
// Version : 2017-04-22 | |
// Description : Net Alarm Test for DAHUA NVR | |
//============================================================================ | |
#include <iostream> | |
#include <unistd.h> // for sleep | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.internet.protocol import DatagramProtocol | |
from twisted.internet import reactor | |
import time | |
class Echo(DatagramProtocol): | |
def datagramReceived(self, data, (host, port)): | |
print "received %r from %s:%d" % (data, host, port) | |
# Login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-01-14 | |
Grbl 0.9j ['$' for help] | |
['$H'|'$X' to unlock] | |
$0=40 (step pulse, usec) | |
$1=25 (step idle delay, msec) | |
$2=0 (step port invert mask:00000000) | |
$3=1 (dir port invert mask:00000001) | |
$4=0 (step enable invert, bool) | |
$5=0 (limit pins invert, bool) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define LED_PIN 13 // LED connected to digital pin 13 | |
#define SW_PIN 10 | |
#define CLOCK 7 | |
#define LATCH 5 | |
#define DATA 6 | |
byte VALUE_CONSTANT[] ={ B11000000, // 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define LED_PIN 13 // LED connected to digital pin 13 | |
#define SW_PIN 10 | |
#define CLOCK 7 | |
#define LATCH 5 | |
#define DATA 6 | |
byte value[] ={ B11111001, // 1 |