Skip to content

Instantly share code, notes, and snippets.

@deladriere
deladriere / gist:ce9b956744f47b73bd579d335b998461
Created December 7, 2017 06:31
lexus2K SSD1306 I2C text speed test
//https://github.com/lexus2k/ssd1306
#include <Wire.h>
#include "ssd1306.h"
long I2C_clock=2500000;
long pot;
char buf[10];
unsigned long thisMicros = 0;
unsigned long lastMicros = 0;
@deladriere
deladriere / gist:9c5669f359ae4551fb08ffa6b980d181
Created December 7, 2017 06:29
Adafruit SSD1306 I2C text speed test
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
long I2C_clock=250000;
long pot;
@deladriere
deladriere / SSI263 - basic.py
Created January 8, 2016 15:56
Hello word to SSI-263
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Jean-Luc Deladriere
# Description: Arduino/nanpy & ssi263 hello world from Python
from nanpy import Arduino
from nanpy import serial_manager
from random import randrange
import time
@deladriere
deladriere / Write_midi
Created December 14, 2015 06:24
Code Text file into Midi
#! /usr/bin/env PYTHON
# -*- coding: utf-8 -*-
# Dectalk Express from Midi
from midiutil.MidiFile import MIDIFile #https://code.google.com/p/midiutil/
text="[:nh][:dv ap 90 pr 0] The 3 laws of Robotics. By Isaac Asimov. " \
"1. A robot may not injure a human being or, through inaction, allow a human being to come to harm. [:pp 100]" \
"2. A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law. [:pp 100]" \
"3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.[:pp 100]" \
// VM61002
//uint8_t spZERO[] PROGMEM = {0x69,0xFB,0x59,0xDD,0x51,0xD5,0xD7,0xB5,0x6F,0x0A,0x78,0xC0,0x52,0x01,0x0F,0x50,0xAC,0xF6,0xA8,0x16,0x15,0xF2,0x7B,0xEA,0x19,0x47,0xD0,0x64,0xEB,0xAD,0x76,0xB5,0xEB,0xD1,0x96,0x24,0x6E,0x62,0x6D,0x5B,0x1F,0x0A,0xA7,0xB9,0xC5,0xAB,0xFD,0x1A,0x62,0xF0,0xF0,0xE2,0x6C,0x73,0x1C,0x73,0x52,0x1D,0x19,0x94,0x6F,0xCE,0x7D,0xED,0x6B,0xD9,0x82,0xDC,0x48,0xC7,0x2E,0x71,0x8B,0xBB,0xDF,0xFF,0x1F};
//uint8_t spFOUR[] PROGMEM = {0x08,0x68,0x21,0x0D,0x03,0x04,0x28,0xCE,0x92,0x03,0x23,0x4A,0xCA,0xA6,0x1C,0xDA,0xAD,0xB4,0x70,0xED,0x19,0x64,0xB7,0xD3,0x91,0x45,0x51,0x35,0x89,0xEA,0x66,0xDE,0xEA,0xE0,0xAB,0xD3,0x29,0x4F,0x1F,0xFA,0x52,0xF6,0x90,0x52,0x3B,0x25,0x7F,0xDD,0xCB,0x9D,0x72,0x72,0x8C,0x79,0xCB,0x6F,0xFA,0xD2,0x10,0x9E,0xB4,0x2C,0xE1,0x4F,0x25,0x70,0x3A,0xDC,0xBA,0x2F,0x6F,0xC1,0x75,0xCB,0xF2,0xFF};
//uint8_t spEIGHT[] PROGMEM = {0x65,0x69,0x89,0xC5,0x73,0x66,0xDF,0xE9,0x8C,0x33,0x0E,0x41,0xC6,0xEA,0x5B,0xEF,0x7A,0xF5,0x33,0x25,0x50,0xE5,0xEA,0x39,0xD7
@deladriere
deladriere / SSI-263 Votrax SC_02
Created February 8, 2014 08:45
SSI-263 Votrax SC_02 text to speech via Nanpy on Arduino
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Jean-Luc Deladriere
# Description: SSI-263 Votrax SC_02 text to speech via Nanpy on Arduino
# many thanks for the arpabet to unicode phoneme script : https://gist.github.com/liuyork/4556798
from nanpy import Arduino
from nanpy import serial_manager
import time
@deladriere
deladriere / gist:7616725
Created November 23, 2013 16:32
Aduino Talking clock
// Talkie library
// Copyright 2011 Peter Knight
// This code is released under GPLv2 license.
// https://github.com/going-digital/Talkie
// DS1307new library. Assumes that you have a DS1307
// http://code.google.com/p/ds1307new/
// # connected to the I2C-Bus of your Arduino and that it has a battery backup.
// set time with "monitor"