Skip to content

Instantly share code, notes, and snippets.

View Maxime6678's full-sized avatar
🎒
On workout

Maxime6678 Maxime6678

🎒
On workout
  • France
View GitHub Profile
@Maxime6678
Maxime6678 / distributeurBoissons.adb
Created October 28, 2019 16:25
distributeurBoissons Ada
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
@Maxime6678
Maxime6678 / eponge.ada
Last active October 2, 2019 18:17
Eponge de menger
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;
@Maxime6678
Maxime6678 / arduino.ino
Created April 24, 2019 10:13
ParaFun Projet
#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
@Maxime6678
Maxime6678 / plat.py
Last active May 13, 2019 11:07
ISN
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]
@Maxime6678
Maxime6678 / complet.ino
Created April 12, 2019 14:46
PARAFUN Projet
#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
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)