Skip to content

Instantly share code, notes, and snippets.

View aula9's full-sized avatar
🎯
Focusing

Aula Jazmati aula9

🎯
Focusing
View GitHub Profile
import RPi.GPIO as GPIO
import time
import serial
L1 = 25
L2 = 8
L3 = 7
L4 = 1
import time
import Adafruit_TCS34725
import smbus
import RPi.GPIO as GPIO
import turtle
tcs = Adafruit_TCS34725.TCS34725()
tcs.set_interrupt(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(32, GPIO.OUT)
GPIO.setup(36, GPIO.OUT)
from tkinter import *
import time
import RPi.GPIO as io
io.setmode(io.BOARD)
io.setwarnings(False)
Top = Tk()
io.setup(11,io.OUT)
io.setup(15,io.OUT)
io.setup(13,io.OUT)
pr = io.PWM(11,50)
@aula9
aula9 / aa.py
Created September 21, 2018 07:05
from tkinter import *
def show_entry_fields():
print("Happy Translation Week!")
print( "I'm"+ e1.get()+ e2.get() +
" and I translate coding projects into Arabic for Raspberry Pi Foundation"
+ "Thank You")
Label(master, text="Hello :) I'm "+
e1.get() + e2.get()
+" and I translate coding projects into Arabic for Raspberry Pi Foundation "
+ "\n I like to work as a volunteer with Raspberry pi\n "+ " Best regards"
from tkinter import *
def show_entry_fields():
print("Happy Translation Week!")
print( "I'm"+ e1.get()+ e2.get() +" and I translate coding projects into Arabic for Raspberry Pi Foundation" + "Thank You")
Label(master, text="Hello :) I'm "+ e1.get() + e2.get() +" and I translate coding projects into Arabic for Raspberry Pi Foundation " + "\n I like to work as a volunteer with Raspberry pi\n "+ " Best regards" , font = 18).grid(row=7, column=1)
#Label(master, text=" السلام عليكم أنا "+ e1.get() + e2.get() +" ولقد قمت بترجمة مشاريع برمجة إلى اللغة العربية ضمن مشروع راسبيري باي التطوعي للترجمة , ولقد كانت تجربة جميلة وممتعة " , font = 18).grid(row=9, column=1)
e1.delete(0,END)
e2.delete(0,END)
@aula9
aula9 / tpi.py
Created September 21, 2018 06:48
from tkinter import *
import RPi.GPIO as GPIO
import time
BuzzerPin = 11
SPEED = 1
TONES = {"c6":1047,
"b5":999,
"a5":888,
"g5":789,
"f5":798,
#!/usr/bin/python
import time
import Adafruit_CharLCD as LCD
import Adafruit_DHT
sensor = Adafruit_DHT.DHT11
pin = 23
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
# Raspberry Pi pin configuration:
lcd_rs = 24
lcd_en = 25
import tkinter as tk
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
TRIGPIN = 11
ECHO = 15
print ("Distance Measurement In Progress")
from tkinter import *
import time
import RPi.GPIO as io
io.setmode(io.BOARD)
io.setwarnings(False)
Top = Tk()
io.setup(11,io.OUT)
io.setup(15,io.OUT)
io.setup(13,io.OUT)
pr = io.PWM(11,50)