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
Scripslua/generateSwitchElem.lua@42:53780e5a6acb, 2019-05-23 (annotated)
- Committer:
- ascheriit
- Date:
- Thu May 23 09:42:38 2019 +0000
- Revision:
- 42:53780e5a6acb
- Parent:
- 20:f3e8319b7899
la connexion avec le pc est annulee.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ascheriit | 20:f3e8319b7899 | 1 | #!/usr/local/bin/lua |
| ascheriit | 20:f3e8319b7899 | 2 | |
| ascheriit | 20:f3e8319b7899 | 3 | listElem={"H","He","Li","Be","B","C","N","O","F","Ne","Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca","Sc","Ti","V","Cr","Mv","Fr","Co","Ni","Cu","Zn","Ga","Ge","As","Se","Br","Kr","Rb","Sr","Y","Zr","Nb","Mo","Tc","Ru","Rh","Pd","Ag","Cd","In","Sn","Sb","Te","I","Xe","Cs","Ba","La","Ce","Pr","Nd",} |
| ascheriit | 20:f3e8319b7899 | 4 | |
| ascheriit | 20:f3e8319b7899 | 5 | --print(#listeElem) |
| ascheriit | 20:f3e8319b7899 | 6 | |
| ascheriit | 20:f3e8319b7899 | 7 | io.stdout:write("matrice *BS_Elem(int elem){\n matrice *ret = (matrice*) malloc(sizeof(matrice));\n switch(elem){\n") |
| ascheriit | 20:f3e8319b7899 | 8 | for i = 1,60 do |
| ascheriit | 20:f3e8319b7899 | 9 | io.stdout:write(" case ",tonumber(i)," :\n ret=BS_",listElem[i],"();\n break;\n") |
| ascheriit | 20:f3e8319b7899 | 10 | end |
