import dicoMatrice2D import comMorse import ledArduino print("tape une lettre") lettre = input() reponseMorse = comMorse.encode(lettre) print("le code morse est :", reponseMorse) reponse = comMorse.decode(reponseMorse) ledArduino.envoiCaractere(reponse)
import network import comMorse ADDRESS = "10.0.0.190" PORT = 1111 while True: socket = network.newClientSocket() socket.connect((ADDRESS, PORT)) print("ecris une lettre") lettre = input() morse = comMorse.encode(lettre) socket.send(morse.encode()) reponse = socket.recv(4096) print(reponse)