Raspberry Piに接続したノキアのモノクログラフィック液晶で動画を再生するプログラムです。
大阪旅行に浮かれ、共立電子で買ったSparkfunのLCD-10168を使いました。
動画の読み込み、リサイズ、二値化にはOpenCVを使っています。
基本的な処理の流れは
- 動画を読み込む
- グレイスケールに変換
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Linux version 3.2.0-4-486 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.54-2 | |
[ 0.000000] BIOS-provided physical RAM map: | |
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) | |
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) | |
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) | |
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001fff0000 (usable) | |
[ 0.000000] BIOS-e820: 000000001fff0000 - 0000000020000000 (ACPI data) | |
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) |
# -*- coding: utf-8 -*- | |
require 'socket' | |
socket = Socket.unix('./server_socket') | |
socket.write('A') | |
p socket.getc |
NAND LOADER ... in NAND | |
built on Jun 26 2007 at 20:03:06 | |
(0) BOOT: Linux kernel | |
func = 00000100 | |
**** LoadImage **** |
Raspberry Piに接続したノキアのモノクログラフィック液晶で動画を再生するプログラムです。
大阪旅行に浮かれ、共立電子で買ったSparkfunのLCD-10168を使いました。
動画の読み込み、リサイズ、二値化にはOpenCVを使っています。
基本的な処理の流れは
/* マインスイーパー もどき */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
void in_bom(int **, int , int, int); // ボムを入れる関数(配列データ、x軸、y軸、ボムの数) | |
void in_num(int **, int , int); // ボムの数を数え、その数を配列に入れる関数(配列データ、x軸、y軸) | |
main(int argc,char *argv) | |
{ |
/* | |
* file_sync.c | |
* | |
* Created on: 2010/04/25 | |
* Author: NishinagaToshifumi | |
*/ | |
//#define WIN32 | |
#include <stdio.h> |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import cv2 | |
from PIL import Image, ImageSequence, ImageDraw | |
import time | |
import unittest | |
import sys | |
# original code : http://playground.arduino.cc/Code/PCD8544 |
function delay(delay_ms){ | |
var nowtime = Date.now(); | |
var timeout = nowtime + delay_ms; | |
while(nowtime < timeout){ | |
nowtime = Date.now(); | |
} | |
} | |
// us待ちメソッド…ただし正確性は無い | |
function delayMicroseconds(delay_us){ |
// BeagleBone Black + Grove Base Cape + Grove Temperature Sensor | |
// Base Cape: http://www.seeedstudio.com/wiki/Grove_Cape_for_BeagleBone_Series | |
// Temperature Sensor: http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor | |
// | |
// Written by Toshifumi Nishinaga | |
// this code is public domain | |
var b = require('bonescript'); | |
var getTemperature = function(){ |
#!/usr/local/bin/python3 | |
# -*- coding: utf-8 -*- | |
# please install pyserial | |
import serial | |
tty = "/dev/tty.usbserial-FTGD5T90" | |
com = serial.Serial(tty, 115200) |