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
with distributeurUtilities; use distributeurUtilities; | |
with Ada.Text_IO; use Ada.Text_IO; | |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; | |
with Ada.Float_Text_IO; use Ada.Float_Text_IO; | |
procedure distributeurBoissons is | |
p20: Integer; -- Nombre de pieces de 20 centimes disponibles | |
p10: Integer; -- Nombre de pieces de 10 centimes disponibles | |
p5: Integer; -- Nombre de pieces de 5 centimes disponibles |
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
with Traceur; use Traceur; | |
with ada.text_io; use ada.text_io; | |
with ada.integer_text_io; use ada.integer_text_io; | |
procedure eponge is | |
baseX: Integer := -250; | |
baseY: Integer := -250; | |
baseLen: Integer := 300; |
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
#define TRIGGER_PIN 4 // Broche TRIGGER | |
#define ECHO_PIN 8 // Broche ECHO | |
#define ANE_PIN 2 // Broche ANEMOMETRE | |
#define ledV_ouv 9 // Broche LED OUVERTURE | |
#define ledR_ferm 10 // Broche LED FERMETURE | |
#define BP_ouv 12 // Broche BOUTTON OUVERTURE | |
#define BP_ferm 11 // Broche BOUTTON FERMETURE | |
#define Motor_mli 3 // Broche MOTEUR MLI | |
#define Motor_ouv 5 // Broche MOTEUR IN_1 | |
#define Motor_ferm 6 // Broche MOTEUR IN_2 |
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 tkinter import Tk, Label, IntVar, Radiobutton, PhotoImage, Canvas, Button, CENTER, NW | |
from tkinter.messagebox import showinfo | |
from PIL import Image, ImageTk | |
import sys | |
from random import randint | |
import time | |
""" Position des cases """ | |
casex = [44,124,207,290,373,456,540,621,703,789,789,789,709,621,540,456,377,294,207,130,43,43,43,125,202,291,371,454,538,618,704,787,787,787,705,622,541,459,376,294,211,125,43,43,43,126,207,291,370,456,539,617,705,788] | |
casey = [560,560,560,560,560,560,560,560,560,560,494,425,425,425,425,425,425,425,425,425,425,362,293,293,293,293,293,293,293,293,293,293,232,162,162,162,162,162,162,162,162,162,162,97,30,30,30,30,30,30,30,30,30,30] |
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
#define TRIGGER_PIN 4 // Broche TRIGGER | |
#define ECHO_PIN 8 // Broche ECHO | |
#define ANE_PIN 2 // Broche ANEMOMETRE | |
#define ledV_ouv 9 // LED verte (ouverture) | |
#define ledR_ferm 10 // LED rouge (fermeture) | |
#define BP_ouv 12 | |
#define BP_ferm 11 | |
#define Motor_mli 3 // mli (enable l298) | |
#define Motor_ouv 5 | |
#define Motor_ferm 6 |
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 tkinter import * | |
from PIL import Image, ImageTk | |
import sys | |
def launch(): | |
lw = Tk() | |
lw.title('Chasles Game - Page de début de partie') | |
lw.geometry('600x310') | |
lw.resizable(False, False) |