function save_settings(){
  var settings = {
    font : numeral_fonts[numeral_fonts_index].getName(),
    color_scheme : color_schemes[color_scheme_index].name,
    date: date_coords[date_coord_index].name
  };
  console.log("saving:" + JSON.stringify(settings));
  require("Storage").writeJSON("sweepclock.settings.json",settings);
  print_memoryusage();
}
/**
 * Called on button press to save down the last preference settings
 */
Called on button press to save down the last preference settings
Called on button press to save down the last preference settings
function save_settings(){
  var settings = {
    font : numeral_fonts[numeral_fonts_index].getName(),
    color_scheme : color_schemes[color_scheme_index].name,
    date: date_coords[date_coord_index].name
  };
  console.log("saving:" + JSON.stringify(settings));
  require("Storage").writeJSON("sweepclock.settings.json",settings);
  print_memoryusage();
}
function save_settings ( ) { var settings = { font : numeral_fonts [ numeral_fonts_index ] . getName ( ) , color_scheme : color_schemes [ color_scheme_index ] . name , date : date_coords [ date_coord_index ] . name } ; console . log ( "saving:" + JSON . stringify ( settings ) ) ; require ( "Storage" ) . writeJSON ( "sweepclock.settings.json" , settings ) ; print_memoryusage ( ) ; }
Called on button press to save down the last preference settings
Called on button press to save down the last preference settings