Update storage-write.js

master
jeonlab 2024-06-21 13:38:59 -04:00 committed by GitHub
parent af50b2fdcd
commit 9b029afd6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,15 @@
f = require("Storage").open("course-data","a"); /*
A script to create, overwrite or append golf course GPS data
Format: latitude (6 decimal places), longitude (6 decimal places), par
There are two course data in below code, but you can put any number of course data.
Save this file to your computer and open it from Espruino Web IDE (https://www.espruino.com/ide/)
and run in RAM mode
Tip: In the Web IDE editor, enter GPS cordinates and par per hole, and then SHFT-ALT drag all line, hit HOME and type " and hit END and type \n"+
*/
f = require("Storage").open("course-data","a"); // "r" to create or overwrite, "a" to append
f.write( f.write(
"course name\n"+ "course name\n"+
"00.000000,00.000000,0\n"+ "00.000000,00.000000,0\n"+
@ -39,6 +50,3 @@ f.write(
"00.000000,00.000000,0\n"+ "00.000000,00.000000,0\n"+
"00.000000,00.000000,0\n" "00.000000,00.000000,0\n"
); );
// SHFT-ALT drag all line, hit HOME and type " and hit END and type \n"+
// run in RAM mode