This file contains 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 RPi.GPIO as GPIO | |
import time | |
import serial | |
L1 = 25 | |
L2 = 8 | |
L3 = 7 | |
L4 = 1 | |
This file contains 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 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) |
This file contains 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 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) |
This file contains 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 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" |
This file contains 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 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) |
This file contains 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 tkinter import * | |
import RPi.GPIO as GPIO | |
import time | |
BuzzerPin = 11 | |
SPEED = 1 | |
TONES = {"c6":1047, | |
"b5":999, | |
"a5":888, | |
"g5":789, | |
"f5":798, |
This file contains 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/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 |
This file contains 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 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") |
This file contains 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 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) |