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
@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
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)
@iotguider
iotguider / Interfacing_Tilt_Switch_Module_in_Raspberry_Pi.py
Created November 12, 2017 12:11
Code for Interfacing Tilt Switch Module in Raspberry Pi
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# The input pin of the Sensor will be declared. Additional to that the pullup resistor will be activated
tiltpin = 27
ledpin = 17
GPIO.setup(tiltpin, GPIO.IN)
GPIO.setup(ledpin,GPIO.OUT)
@ShawnHymel
ShawnHymel / fred_bot.ino
Last active April 21, 2024 12:38
Use two magnetic encoders to make a robot drive in a straight line for 1 meter
/**
* Adventures in Science: Fred Bot
* SparkFun Electronics
* Author: M. Hord (October 8, 2013)
* Modified by: B. Huang (October 31, 2014)
* Modified by: Shawn Hymel (July 21, 2017)
*
* Use two magnetic encoders on Fred's motor shafts (48:1
* gearbox, 60mm wheels) to make him move in a straight line for
* 1m.