Conversation
Individuato codice vecchio che gestisce la comunicazione seriale (quello funzionante). Risolto un piccolo problema che faceva crashare il programma. Creato un script di test per vedere se, con il simulatore Arduino, il codice funziona.
Riorganizzata struttura del progetto. La cartella oldtmp contiene i vecchi file, rimarrà solo per poter controllare ancora qualche file e poi essere rimossa. Aggiunto codice per la base della GUI in python.
Ora il progetto può essere buildato senza problemi (l'uso di pyinstaller era cambiato da come veniva utilizzato nel codice originale) Aggiunto comando yarn per eliminare tutti i file e le cartelle aggiuntive (node_modules, virtualenv, ecc) Migliorati file .spec, ora il nome viene preso dal file package.json
Ora sono presenti due comandi che controllano se il codice python presenta alcuni errori e uno per cercare di correggerli Aggiunto comando init per installare le dipendenze per i nuovi due comandi
Aggiunto import mancante per poter leggere la porta seriale
Creata una sottostruttura della cartella lib per avere una separazione tra le API per il front end e la parte che gestisce l'interazione con la porta seriale
Aggiunto un esempio di API che python offre a TS. TS può chiamare la funzione che espone python con la pressione di un bottone. Python ritorna a TS una Promise che deve essere risolta. Va specificato il tipo di dato che ritorna Python
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Definita struttura base del progetto con pywebview funzionante