Skip to content

Instantly share code, notes, and snippets.

/*
Example sketch for the PS3 Bluetooth library - developed by Kristian Lauszus
For more information visit my blog: http://blog.tkjelectronics.dk/ or
send me an e-mail: kristianl@tkjelectronics.com
*/
#include <PS3BT.h>
#include <usbhub.h>
// Satisfy IDE, which only needs to see the include statment in the ino.
#ifdef dobogusinclude
/*
Example sketch for the PS3 Bluetooth library - developed by Kristian Lauszus
For more information visit my blog: http://blog.tkjelectronics.dk/ or
send me an e-mail: kristianl@tkjelectronics.com
*/
#include <PS3BT.h>
#include <usbhub.h>
// Satisfy IDE, which only needs to see the include statment in the ino.
#ifdef dobogusinclude
@robo8080
robo8080 / cloud_vision_face_test.py
Created July 22, 2017 01:52
cloud_vision_face_test.py
#!python2
# -*- coding: utf-8 -*-
import requests
import json
import base64
import photos
import console
from PIL import Image, ImageDraw
@robo8080
robo8080 / cloud_vision_label_speech.py
Last active May 16, 2021 01:54
cloud_vision_label_speech.py
#!python2
# -*- coding: utf-8 -*-
import requests
import json
import base64
import photos
import console
import speech
@robo8080
robo8080 / cloud_vision_label_test.py
Last active July 13, 2017 06:33
cloud_vision_label_test.py
#!python2
# -*- coding: utf-8 -*-
import requests
import json
import base64
import os
import photos
import console
@robo8080
robo8080 / chibibit_temperature.py
Created February 19, 2017 12:04
chibibit_temperature.py
#!python2
# coding: utf-8
import cb
def s8(value):
return -(value & 0b10000000) | (value & 0b01111111)
class MyCentralManagerDelegate (object):
def __init__(self):
self.peripheral = None
@robo8080
robo8080 / chibibit_LED_TEXT.py
Created February 14, 2017 10:45
chibibit_LED_TEXT.py
#!python2
# coding: utf-8
import cb
import time
import sys
class MyCentralManagerDelegate (object):
def __init__(self):
self.peripheral = None
self.ledtext = None
@robo8080
robo8080 / chibibit.py
Created February 7, 2017 11:38
chibibit.py
#!python2
# coding: utf-8
import cb
import time
class MyCentralManagerDelegate (object):
def __init__(self):
self.peripheral = None
self.toggle = False
@robo8080
robo8080 / ichigo_jam_test1.txt
Created October 22, 2016 12:21
IchigoJamTest エスケープシーケンスプログラム
10 ? CHR$(27);"[2J";:? CHR$(27);"[?25l";:WAIT 5
20 FOR I = 1 TO 7
30 ? CHR$(27);"[";I;";";I;"H";CHR$(27);"[3";I;"m";"IchigoJam";:WAIT 5
40 NEXT
50 ? CHR$(27);"[30m";
60 FOR I = 1 TO 7
70 ? CHR$(27);"[";I+7;";";I+7;"H";CHR$(27);"[4";I;"m";"IchigoJam";:WAIT 5
80 NEXT
90 ? CHR$(27);"[39m";CHR$(27);"[49m";
100 WAIT 90:? CHR$(27);"[2J";
@robo8080
robo8080 / FaceDetectTest2.py
Created September 3, 2016 12:29
FaceDetectTest2.py
# coding: utf-8
import photos
import console
from objc_util import *
CIFilter, CIImage, CIContext, CIDetector, CIVector = map(ObjCClass, ['CIFilter', 'CIImage', 'CIContext', 'CIDetector', 'CIVector'])
def take_photo(filename='.temp.jpg'):
img = photos.capture_image()