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 time import sleep | |
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) | |
def lireFichier(emplacement): | |
fichTemp = open(emplacement) | |
contenu = fichTemp.read() | |
fichTemp.close() |
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, |
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 | |
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 | |
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]) | |
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 | |
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 | |
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
import RPi.GPIO as GPIO | |
from time import sleep | |
relaisPin = 22 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(relaisPin, GPIO.OUT) | |
while True : | |
GPIO.output(relaisPin, True) |
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 time import sleep | |
from flask import Flask | |
import RPi.GPIO as GPIO | |
relais = 22 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(relais, GPIO.OUT) |