Skip to content

Instantly share code, notes, and snippets.

Avatar

karaage karaage0703

View GitHub Profile
@karaage0703
karaage0703 / README
Last active Aug 29, 2015
140614_CafeMappy
View README
現在地付近のカフェを表示してくれるいかしたアプリです
@karaage0703
karaage0703 / camera_shutdown.sh_.py
Last active Aug 29, 2015
shutdown script for Nakayoshi Camera
View camera_shutdown.sh_.py
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import syslog
import os
# use GPIO 17 as shutdown button
WatchGpioNo = 17
@karaage0703
karaage0703 / camera_shutdown___.sh
Last active Aug 29, 2015
shutdown auto boot script for Nakayoshi camera
View camera_shutdown___.sh
### BEGIN INIT INFO
# Provides: camera_shutdown
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Camera Shutdown Server at boot time
# Description: Start Camera Shutdown Server at boot time
### END INIT INFO
#! /bin/sh
@karaage0703
karaage0703 / display_font.sh
Last active Aug 29, 2015
display keion font on Nakayoshi camera
View display_font.sh
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import pygame
pygame.init()
size = (pygame.display.Info().current_w, pygame.display.Info().current_h)
print "Framebuffer size: %d x %d" % (size[0], size[1])
screen = pygame.display.set_mode(size, pygame.FULLSCREEN)
@karaage0703
karaage0703 / display_image.sh
Created Sep 20, 2014
display image for Nakayoshi camera
View display_image.sh
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import pygame
pygame.init()
size = (pygame.display.Info().current_w, pygame.display.Info().current_h)
print "Framebuffer size: %d x %d" % (size[0], size[1])
screen = pygame.display.set_mode(size, pygame.FULLSCREEN)
@karaage0703
karaage0703 / camera_test.sh_.py
Last active Aug 29, 2015
taking picture and preview program for Nakayoshi camera
View camera_test.sh_.py
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import picamera
import os
import pygame
import random
# GPIO pin
@karaage0703
karaage0703 / camera_normal.sh_.py
Last active Aug 29, 2015
auto camera script for Nakayoshi camera
View camera_normal.sh_.py
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import picamera
import os
import pygame
import syslog
# GPIO pin
@karaage0703
karaage0703 / camera_normal_____.sh
Created Oct 2, 2014
nakayoshi camera auto boot script
View camera_normal_____.sh
### BEGIN INIT INFO
# Provides: camera_normal
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Camera Normal Server at boot time
# Description: Start Camera Normal Server at boot time
### END INIT INFO
#! /bin/sh
@karaage0703
karaage0703 / camera_menu_effect.sh______.py
Last active Aug 29, 2015
Camera menu and effect for Nakayoshi Camera
View camera_menu_effect.sh______.py
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import picamera
import os
import pygame
import syslog
# GPIO pin
@karaage0703
karaage0703 / pokemiku_camera.sh______.py
Last active Oct 12, 2015
Singing Digital Camera (Nakayoshi Camera + Pocket mike)
View pokemiku_camera.sh______.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pygame
import pygame.midi
from time import sleep
import picamera
instrument = 0 # miku
port = 2 # NSX-39