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
import digitalio | |
import board | |
import busio | |
import adafruit_rgb_display.st7789 as st7789 | |
from adafruit_rgb_display import color565 | |
import time | |
miso_pin = board.IO4 | |
mosi_pin = board.IO35 | |
clk_pin = board.IO36 |
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
# Need Python>3.6 / Pillow / ics | |
from PIL import Image, ImageFont, ImageDraw | |
from datetime import datetime | |
from ics import Calendar | |
import requests | |
# Settings | |
font_size = 25 | |
url = "https://ateliers.labsud.org/export/categ/0.ics?from=0d" |
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
from tkinter import * | |
from functools import partial | |
from PIL import Image, ImageTk | |
import subprocess | |
def install(name): | |
subprocess.run([".\\avrdude\\avrdude.exe", "-cusbasp", "-pt85", "-b19200", "-Uflash:w:games/"+name+".hex"]) | |
root = Tk() | |
root.title("Tiny Joypad Installer") #Title |
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
#!/bin/bash | |
#Based on https://pimylifeup.com/raspberry-pi-netflix/ | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install kodi kodi-peripheral-joystick kodi-pvr-iptvsimple kodi-inputstream-adaptive kodi-inputstream-rtmp | |
sudo apt install build-essential python-pip python-dev libffi-dev libssl-dev libnss3 | |
sudo pip install setuptools wheel | |
sudo pip install pycryptodomex win_inet_pton |
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 of a sound being triggered by MIDI input. | |
Demonstrates playing notes with Mozzi in response to MIDI input, | |
using Arduino MIDI library v4.2 | |
(https://github.com/FortySevenEffects/arduino_midi_library/releases/tag/4.2) | |
Circuit: | |
MIDI input circuit as per http://arduino.cc/en/Tutorial/Midi | |
Note: midi input on rx pin, not tx as in the illustration on the above page. | |
Midi has to be disconnected from rx for sketch to upload. |
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
// In a webbrowser go to http://sam.local/say/{message} to make it speak | |
// ex: http://sam.local/say/hello world | |
#include <Arduino.h> | |
#include <ESP8266SAM.h> | |
#include "AudioOutputI2SNoDAC.h" | |
#include <ESP8266mDNS.h> | |
#include <ESP8266NetBIOS.h> |
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
#include <Arduino.h> | |
#include <ESP8266SAM.h> | |
#include "AudioOutputI2SNoDAC.h" | |
AudioOutputI2SNoDAC *out = NULL; | |
void setup() | |
{ | |
out = new AudioOutputI2SNoDAC(); | |
out->begin(); |
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
#include <Adafruit_GFX.h> | |
#include <FastLED.h> | |
#include <FastLED_NeoMatrix.h> | |
#include <Fonts/TomThumb.h> | |
#include <ezTime.h> | |
#include <WiFi.h> | |
#define PIN 27 | |
#define mw 5 | |
#define mh 5 |
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
// Adafruit_NeoMatrix example for single NeoPixel Shield. | |
// Scrolls 'Howdy' across the matrix in a portrait (vertical) orientation. | |
#include <Adafruit_GFX.h> | |
#include <FastLED.h> | |
#include <FastLED_NeoMatrix.h> | |
#include <Fonts/TomThumb.h> | |
#define PIN 27 | |
#define mw 5 |
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
// Adafruit_NeoMatrix example for single NeoPixel Shield. | |
// Scrolls 'Howdy' across the matrix in a portrait (vertical) orientation. | |
#include <Adafruit_GFX.h> | |
#include <FastLED.h> | |
#include <FastLED_NeoMatrix.h> | |
#include <Fonts/TomThumb.h> | |
#define PIN 27 | |
#define mw 5 |