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
/* | |
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: [email protected] | |
*/ | |
#include <PS3BT.h> | |
#include <usbhub.h> | |
// Satisfy IDE, which only needs to see the include statment in the ino. | |
#ifdef dobogusinclude |
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
/* | |
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: [email protected] | |
*/ | |
#include <PS3BT.h> | |
#include <usbhub.h> | |
// Satisfy IDE, which only needs to see the include statment in the ino. | |
#ifdef dobogusinclude |
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
#!python2 | |
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import base64 | |
import photos | |
import console | |
from PIL import Image, ImageDraw |
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
#!python2 | |
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import base64 | |
import photos | |
import console | |
import speech |
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
#!python2 | |
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import base64 | |
import os | |
import photos | |
import console |
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
#!python2 | |
# coding: utf-8 | |
import cb | |
def s8(value): | |
return -(value & 0b10000000) | (value & 0b01111111) | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None |
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
#!python2 | |
# coding: utf-8 | |
import cb | |
import time | |
import sys | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None | |
self.ledtext = None |
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
#!python2 | |
# coding: utf-8 | |
import cb | |
import time | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None | |
self.toggle = False |
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
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"; |
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
# 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() |