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
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
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
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) |
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
/** | |
* 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. |