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 <AntoIO.h> | |
#include <dht11.h> | |
#define DHT11PIN 12 | |
#define GPIO15 15 | |
dht11 DHT11; | |
// change ssid and password to yours | |
const char* ssid = "aisfibre2704_2.4G"; | |
const char* password = "6FF56B76"; |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import Tkinter | |
import tkFileDialog | |
from PIL import Image | |
import ImageDraw | |
import PIL.ImageOps | |
__DEFAULT_VAR_NAME__ = "var1" |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. |
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
if(millis()-lastCheckEPOCH > 200){ | |
for(i = 0; i < 128; i++) | |
bitmapBuffer[i] = pgm_read_byte(&sawasdee[(rowDisplay*128)+i]); | |
OLED.LED_PrintBMP(0, rowDisplay, 127, rowDisplay, bitmapBuffer); | |
lastCheckEPOCH = millis(); | |
Serial.print("rowDisplay : "); Serial.println(rowDisplay); | |
rowDisplay++; | |
} |
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
var youtubeScriptTag = document.createElement('script'); | |
youtubeScriptTag.src = "https://www.youtube.com/iframe_api"; | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(youtubeScriptTag, firstScriptTag); | |
var deviceRatio = ($(document).width())/($(document).height()); | |
$(window).resize(function(){ | |
var currDeviceRatio = ($(document).width())/($(document).height()); | |
if(currDeviceRatio != deviceRatio && youtubePlayer && typeof youtubePlayer.stopVideo !== "undefined"){ |
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
var fullpageOption = { | |
scrollOverflow: true, | |
onLeave: function(index, nextIndex, direction){ | |
var cntAllSlide = $("#fullpage .section").length; | |
console.log('From ->', index, 'to ->', nextIndex, 'All ->', cntAllSlide); | |
if(cntAllSlide > 4 && nextIndex >= cntAllSlide && index == cntAllSlide-1 && isCongreat && youtubePlayer && typeof youtubePlayer == "object" && typeof youtubePlayer.playVideo !== "undefined"){ | |
youtubePlayer.setVolume(30); | |
youtubePlayer.playVideo(); | |
isCongreat = false; | |
}else if(youtubePlayer && typeof youtubePlayer == "object" && typeof youtubePlayer.stopVideo !== "undefined"){ |
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 ng-app> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> | |
<meta name="msapplication-TileColor" content="#32004b"> | |
<meta name="msapplication-TileImage" content="http://27.comcamp.in.th/assets/img/icon/mstile-144x144.png"> | |
<meta name="msapplication-config" content="http://27.comcamp.in.th/assets/img/icon/browserconfig.xml"> | |
<meta property="og:title" content="Comcamp #27"/> |
NewerOlder