This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| #https://openclassrooms.com/fr/courses/235344-apprenez-a-programmer-en-python/2235545-faites-de-la-programmation-parallele-avec-threading | |
| import random | |
| import sys | |
| from threading import Thread | |
| import time | |
| class Afficheur(Thread): |
This file contains hidden or 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
| /* | |
| * HelTec Automation(TM) ESP32 Series Dev boards OLED | |
| * | |
| * - Some OLED draw Simple Function function test; | |
| * | |
| * by LXYZN from HelTec AutoMation, ChengDu, China | |
| * | |
| * www.heltec.cn | |
| * | |
| * this project also realess in GitHub: |
This file contains hidden or 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
| #AIDES: https://stackoverflow.com/questions/14824163/how-to-get-the-input-from-the-tkinter-text-box-widget | |
| from tkinter import * | |
| fenetre=Tk() | |
| #----------------------------------------Zone de Recherche Manuel---------------------------------------- | |
| #Bar de Recherche | |
| textBox=Text(fenetre, height=1, width=13) | |
| textBox.pack() | |
| Button(fenetre, height=1, width=13, text="Go!",command=lambda: recuperation_input()).pack() |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| #PYTHON 3.x EDITION | |
| #AIDES: https://pythonconverter.com/ | |
| #AIDES: https://stackoverflow.com/questions/9229333/how-to-get-overall-cpu-sage-e-g-57-on-linux | |
| #AIDES: https://stackoverflow.com/questions/10585978/linux-command-for-percentage-of-memory-that-is-free | |
| #AIDES: https://docs.python.org/2/library/commands.html |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| #AIDES: https://github.com/Franck1333/ProjetBrassard | |
| #AIDES: https://gist.github.com/Franck1333/f80936044088cb50aec1c1aad9de1803 | |
| #AIDES: http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel | |
| #---------------------------------------Importante LIB--------------------------------------- | |
| import os #Blibliotheque permettant l'interaction avec le systeme | |
| import sys #Blibliotheque permettant l'interaction avec le systeme |
This file contains hidden or 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
| //ROCHAT Franck | |
| //Main Programme pour le Distributeur a Boisson | |
| //NodeMCU32 ESP32 https://tinyurl.com/NodeMCU-32-WiFi | |
| //---Support du String--- | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| //---Support du String--- |
This file contains hidden or 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
| #THAT'S NOT THE MAIN PYHTON FILE ON THE RASPBERRY , please check the main python file at first. | |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import json | |
| import requests #The REQUESTS LIB WORK WITH PYTHON3 | |
| def crypto_news_live(): | |
This file contains hidden or 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
| #Aides: https://circuitpython.readthedocs.io/en/latest/shared-bindings/displayio/__init__.html | |
| import board #Lib pour la communication avec le Hardware de la carte | |
| import displayio #Lib pour la communication avec l'ecran TFT integrer | |
| import time #Lib python classique pour en rapport avec le temps | |
| import pulseio #Lib pour la communication avec l'ecran TFT integrer | |
| #---Configuration de l'ecran--- | |
| backlight = pulseio.PWMOut(board.TFT_BACKLIGHT) | |
| splash = displayio.Group() |
This file contains hidden or 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
| //AIDES: http://recitmst.qc.ca/arduino/capteur-humidite-et-temperature-ambiante/ | |
| //------- | |
| #include <dht.h> //Lib utilise pour le capteur DHT11 | |
| #define dht_apin A5 //Capteur connecté à A5 pour analogique | |
| // #define dht_apin 8 //Capteur connecté à 8 pour numérique | |
| dht DHT; //Objet dht de type DHT | |
| //------- | |
| #include "U8glib.h" //Lib pour la gestion de l'affichage de l'ecran OLED | |
| //------- | |
| U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE); //Constructeur de mon ecran a moi --> https://amzn.to/2GuxYdT |