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
#include <Arduino.h> | |
int lecture = A7; // Broche de l'entrée analogique (0-1023) | |
int alim = 2; // Broche d'alimentation (0-5V) | |
int etat = 1; // Charge du condensateur | |
void setup() { | |
Serial.begin(9600) ; // Ouverture port série avec baudrate de 9600 (augmenter si besoin !) | |
pinMode(lecture, INPUT); // Entrée des valeurs analogiques | |
pinMode(alim, OUTPUT); // Mode sortie pour D2 |
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 serial # Librairie pour récupérer les données de la communication série | |
import matplotlib.pyplot as plt # Librairie graphique | |
import drawnow # Librairie pour rafraîchir une figure matplotlib | |
my_title = 'Charge et décharge d\'un circuit RC' # Préciser ici votre titre de graphique | |
my_ylabel = 'Tension uC (V)' # Titre des ordonnées | |
my_xlabel = 'Nombre de points (1/500 ms)' # Titre des abscisses | |
my_style = 'ro-' # Style de la courbe matplotlib | |
nb_points = 30 # Nombre de points sur le graphique | |
arduino_port = '/dev/ttyUSB0' # Préciser ici le port série. Ex. : sous Windows "COM4", sous linux "/dev/ttyACM0" ou "/dev/ttyUSB0" |
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
\documentclass[11pt,a4paper]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
% Appel du paquet | |
\usepackage{multiaudience} | |
% On définit les deux audicences que l'on souhaite | |
\SetNewAudience{prof} |
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 re | |
from subprocess import call | |
import os | |
from pathlib import Path | |
# On precise le dossier contenant le tex (attention à la syntaxe !) ainsi que le nom du fichier | |
compiler = 'lualatex' | |
tex_path = r'./exemple/' | |
tex_file = r'master.tex' | |
full_path = str(Path(tex_path+tex_file)) |