Compare commits

..

No commits in common. "55ef22bd171374c3b5288394f9cbe08295aec05e" and "b9718589aed96029d2b90b1946c610d94ed9670b" have entirely different histories.

5 changed files with 18 additions and 39 deletions

View File

@ -0,0 +1,16 @@
/* Cette fonction est exécutée au démarrage du microcontrolleur */
void setup() {
/* La led embarquée est définie comme une sortie du microcontrolleur */
pinMode(LED_BUILTIN, OUTPUT);
}
/* Cette fonction est appellée après la fonction « setup ».
* Quand elle se termine, elle est à nouveau appellée, et ce à linfini.
*/
void loop() {
/* On fait clignoter la led pendant une seconde */
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,36 +0,0 @@
\documentclass[11pt,a4paper]{../../template_cours}
\usepackage{listings}
\usepackage{minted}
\title{Projet pluridisciplinaire — Le brassage de la bière}
\author{Adrian Amaglio}
\def\thesequence{Données structurées, web}
\begin{document}
Durée : 3h
%
% https://pimylifeup.com/raspberry-pi-temperature-sensor/
\section{Microcontrolleur programmable}
Nous travaillerons sur un raspberry pi pour récupérer les valeurs des capteurs.
\begin{exercice}
Connectez le capteur de température et la résistance au raspberry pi comme sur le shéma suivant :
\includegraphics[width=\textwidth]{circuit.png}
\end{exercice}
\begin{exercice}
Récupérez le fichier python à cette adresse : \url{https://git.jean-cloud.net/adrian/cours-snt/raw/branch/master/projet_bière/main.py}
\\
et exécutez-le sur votre raspberry pi.
Vérifiez quil affiche bien la valeur de la température chaque seconde
\end{exercice}
\subsection{Mesure de la température}
% En vrai on peut aussi mesurer la pression et le pH
\end{document}

View File

@ -21,7 +21,6 @@ TODO:
To bundle everything in one place.
This docker image is not a pretty one, we should split those services into several containers.
But that would be harder to run, so forget that.
Also, as this is poorly tested, the docker system make sure the environment is stable.
# Instructions
## Install docker
@ -31,7 +30,7 @@ CF the interweb TODO
```
docker build . -t pythonsandbox
```
or pull it
or pull the image
```
TODO: send image to hub
```