Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: Scripslua/autoLettre.lua
- Revision:
- 17:c9b66df08920
- Parent:
- 16:b1bf03ee2878
- Child:
- 23:1d4562f7b639
--- a/Scripslua/autoLettre.lua Mon Apr 22 15:11:14 2019 +0000
+++ b/Scripslua/autoLettre.lua Wed Apr 24 11:42:10 2019 +0000
@@ -58,7 +58,7 @@
return rawString,tailleX,tailleY --on revoie la chaine de caractère et les dimmentionsrawString,tailleX,tailleY
end
-function lettreAutoLettre(nom,fichierEntree,FichierSortie)
+function lettreAutoLettre(nom,fichierEntree,FichierSortie) --transforme un fichier avec des 0 et des 1, comme décris dans le CR de la séance 5, en une fonction en C,
local tab=convertFichTable(fichierEntree)
local sortie={"matrice *"..nom.."(){"," matrice* ret = (matrice*) malloc(sizeof(matrice));"," (*ret).tailleX="..tostring(#tab[1])..";"," (*ret).tailleY="..tostring(#tab)..";"}
for y=1,#tab do
