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/generateSwitchElem.lua
- Revision:
- 20:f3e8319b7899
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Scripslua/generateSwitchElem.lua Thu May 09 10:06:16 2019 +0000
@@ -0,0 +1,10 @@
+#!/usr/local/bin/lua
+
+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",}
+
+--print(#listeElem)
+
+io.stdout:write("matrice *BS_Elem(int elem){\n matrice *ret = (matrice*) malloc(sizeof(matrice));\n switch(elem){\n")
+for i = 1,60 do
+ io.stdout:write(" case ",tonumber(i)," :\n ret=BS_",listElem[i],"();\n break;\n")
+end
