Help for a newbie May 22, 2014 11:14PM |
Registered: 9 years ago Posts: 1 |
Re: Help for a newbie May 23, 2014 06:41AM |
Admin Registered: 11 years ago Posts: 351 |
fload("MX3_rookie.bas") flsave("") fload("bv513_rookie.bas") flsave("")
function main() print "\nChecking MX3_rookie.bas" if lookup("VERSION$") = 0 then print "\n** Loading MX3_rookie.bas **" fload("MX340_rookie1.bas") flsave("VERSION$") endif print "\nbv513_rookie.bas" if lookup("RTS") = 0 then print "\n** Loading MX3_rookie.bas **" fload("bv513_rookie.bas") flsave("RTS") endif endfThere should now be 3 files on the SD Card, MX3_rookie.bas, bv513_rookie.bas and main.bas. The last file 'main.bas' is special in that it will run any time the BP2 is reset. If rookie is already in flash then it will not be loaded again. Installing rookie using this method only takes a couple of seconds so don't think it hasn't worked. I have not actually tested this code so there may be some minor errors. There is a comprehensive example of automatic loading and using the SD Card in the software on the zip file for the Wi-Fi shield