This file contains hidden or 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 machine | |
from machine import Pin, SPI, PWM, ADC | |
import time | |
import struct | |
import sys | |
# for use with TMC2130 | |
led = Pin(13, Pin.OUT) | |
enable = Pin(32, Pin.OUT) |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import glob | |
import os | |
import requests | |
from io import BytesIO | |
from flask import Flask, send_file, request, Response, stream_with_context | |
from flask_restful import Resource, Api | |
from flask.ext.cors import CORS | |
from pydub import AudioSegment |
This file contains hidden or 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 socket import * | |
import time | |
import os,sys | |
cport=40002 | |
red=bytes('\xFF\x00\x00') | |
blue=bytes('\x00\xFF\x00') | |
green=bytes('\x00\x00\xFF') | |
black=bytes('\x00\x00\x00') |