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/env python | |
import RPi.GPIO as GPIO | |
import SimpleMFRC522 | |
reader = SimpleMFRC522.SimpleMFRC522() | |
try: | |
text = raw_input('Donnée :') | |
print("Placer le tag RFID ...") |
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/env python | |
import RPi.GPIO as GPIO | |
import SimpleMFRC522 | |
reader = SimpleMFRC522.SimpleMFRC522() | |
try: | |
print("Presenter le tag RFID...") | |
id, text = reader.read() |
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 RPLCD.gpio import CharLCD | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
lcd.write_string(u'Espace Raspberry Francais') |
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 RPLCD.gpio import CharLCD | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
lcd.cursor_pos = (1, 2) | |
lcd.write_string(u'Raspberry') |
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 RPLCD.gpio import CharLCD | |
import time | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
lcd.write_string(u'Espace RaspberryFrancais') | |
time.sleep(5) | |
lcd.clear() |
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 RPLCD.gpio import CharLCD | |
import time | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
while True : | |
lcd.write_string(u'Espace Raspberry') | |
time.sleep(2) | |
lcd.clear() | |
time.sleep(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 RPLCD.gpio import CharLCD | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
lcd.write_string(u'Bonjour\n\ra tous !!!') |
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 RPLCD.gpio import CharLCD | |
import time | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
while True: | |
lcd.cursor_pos = (0, 0) | |
lcd.write_string("Date: %s" %time.strftime("%d/%m/%Y")) | |
lcd.cursor_pos = (1, 0) | |
lcd.write_string("Heure: %s" %time.strftime("%H:%M:%S")) |
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 RPLCD.gpio import CharLCD | |
import socket | |
import fcntl | |
import struct | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
def obtenirIP(nom): | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
return socket.inet_ntoa(fcntl.ioctl( |
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 RPLCD.gpio import CharLCD | |
from RPLCD import cleared, cursor | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
unSurDeux = ( | |
0b10101, | |
0b01010, | |
0b10101, | |
0b01010, |
OlderNewer