Skip to content

Instantly share code, notes, and snippets.

#include <SoftwareSerial.h>
int rx=2;
int tx=3;
SoftwareSerial BTSerial(rx, tx);
void setup() {
Serial.begin(9600);
BTSerial.begin(9600);
}
// Our Relay Module is negative operation
int led = 12;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
//초기화
digitalWrite(led, HIGH); // Relay OFF
}
int led = 13;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
char indata;
if(Serial.available()) {
from http.server import BaseHTTPRequestHandler, HTTPServer
from serial import Serial
ser = Serial('COM7')
class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
def do_POST(self):
self.send_response(200)
self.send_header('Content-type','text/html')
self.end_headers()
//2016.11.25
// servo와 pwm 충돌문제를 해결하기 위해 핀배치 변경
#include <Servo.h>
#include <SoftwareSerial.h>
#define servoUDPin 9
#define servoLRPin 10
#define dir1PinA 8
#define dir2PinA 7
int chA_dir = 12;
int chA_speed = 3;
int chA_stop = 9;
int chB_dir = 13;
int chB_speed = 11;
int chB_stop = 8;
//speed range : 85 ~ 255
int motor_speed = 100;
alexa
Security Profile Description : Alexa Voice Service Sample App Security Profile Description
Security Profile ID : amzn1.application.e8d108b9954b44258653df7ba80621ba
Client ID : amzn1.application-oa2-client.54021058a935408c83fcdf200371ab87
Client Secret : 9a20b9277b35fdd3e98031c48f1c12fb02c53c5bef8c3803401089fef6fc0223
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);//RS,EN,D4,D5,D6,D7
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
}
void loop() {
if (Serial.available()) {
#wall definition for 2x2 screens with bezel compensation
[6bez_wall]
width=1100
height=620
x=0
y=0
#corressponding tile definitions
[6bez_1]
wall=6bez_wall
const int led = 9;
void setup() {
pinMode(led, OUTPUT);
}
void setup() {
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);