Skip to content

Instantly share code, notes, and snippets.

View DaShoe's full-sized avatar

DaShoe DaShoe

  • Earth
View GitHub Profile
@DaShoe
DaShoe / RPi_I2C_driver.py
Created August 2, 2022 17:55 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@DaShoe
DaShoe / Texttospeech.py
Created November 15, 2021 18:35
Install modules, enter and sound will play
from gtts import gTTS
from playsound import playsound
from time import sleep
value = input("Please enter a input:\n")
print(value)
tts = gTTS('value')
tts.save("out.mp3")
sleep(1)
playsound("out.mp3")
@DaShoe
DaShoe / name.py
Created November 9, 2021 19:34
auto rename bot for discord.py
import discord
from discord import guild
from discord import embeds
from discord import message
from discord.ext import commands
from discord.ext.commands.core import has_guild_permissions
from threading import Thread
from time import sleep
client = commands.Bot(command_prefix = '.')
@client.event