Skip to content

Instantly share code, notes, and snippets.

@nathanvdh
nathanvdh / Sign_Basic.ino
Last active December 22, 2020 00:31
Two zones of swapping text in MD_Parola
#include <MD_MAX72xx.h>
#include <MD_Parola.h>
// Parola display settings //
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW // type of device hardware https://majicdesigns.github.io/MD_MAX72XX/page_hardware.html
#define MAX_DEVICES 16 // number of device segments
// Display pinout //
#define DATA_PIN D7
#define CS_PIN D6
#define CLK_PIN D5
@nathanvdh
nathanvdh / musicquiz.py
Last active December 20, 2020 06:35
A song guessing game with discord.py and AsyncSpotify
import discord
from discord.ext import commands
import asyncio
from async_timeout import timeout
from aioconsole import ainput
import db
import random
@nathanvdh
nathanvdh / voicetest.py
Last active December 6, 2020 07:51
Simple FFMpegPCMAudio test cog
import discord
from discord.ext import commands
class VoiceTest(commands.Cog, name='voicetest'):
"""Cog to play FFMpegPCMAudio Source"""
def __init__(self, bot):
self.bot = bot
@commands.command()
async def join(self, ctx, *, channel: discord.VoiceChannel=None):