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
# SDカードに規定のパーティションを作製する | |
$partitionStyle = "MBR"; | |
$partitionSize1 = 1073741824; | |
$driveLetter1 = "J" | |
$driveLetter2 = "K"; | |
$driveLetter3 = "L"; | |
$driveLetter4 = "M"; |
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
# SDカードに規定のパーティションを作製する | |
$partitionStyle = "MBR"; | |
$partitionSize1 = 1073741824; | |
$driveLetter1 = "J" | |
$driveLetter2 = "K"; | |
$driveLetter3 = "L"; | |
$driveLetter4 = "M"; |
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
// CANの送信サンプル | |
// | |
// CAN信号を送信し続ける | |
// ライブラリヘッダのインクルード | |
#include <mcp_can.h> | |
#include <SPI.h> | |
#define CS_PIN (10) // CSを10ピンとする(変更可能) |
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
// CAN受信のサンプル | |
// | |
// 受信したCAN信号をシリアルで送信する | |
// ライブラリヘッダのインクルード | |
#include <mcp_can.h> | |
#include <SPI.h> | |
//設定値 | |
#define CS_PIN (10) // CSを10ピンとする(変更可能) |
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/pythonCGI | |
# -*- coding: utf-8 -*- | |
from jinja2 import Environment, FileSystemLoader | |
import MySQLdb | |
import datetime | |
def mychart(environ, start_response): | |
env = Environment(loader=FileSystemLoader('./', encoding='utf8')) |
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
<html> | |
<head> | |
<title>Temperature Chart</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); |
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 smbus | |
import datetime | |
import MySQLdb | |
if __name__ == "__main__": | |
i2c = smbus.SMBus(1) |
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 smbus | |
import time | |
def convert_coefficient(msb, lsb, total_bits, fractional_bits, zero_pad): | |
data = (msb << 8) | lsb | |
period = float(1 << 16 - total_bits + fractional_bits + zero_pad) |
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
/* | |
LCD Sample | |
Ver1.00 | |
make.bcde.jp | |
LCD表示のサンプル | |
*/ | |
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> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>{{title}}</title> | |
</head> | |
<body> | |
{% for news in news_list %} | |
<h1>{{ news.title|safe }}</h1> | |
<p> |
NewerOlder