From: asterix Date: Tue, 11 Oct 2011 15:04:43 +0000 (+0000) Subject: Fix and update sd files. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2b54c715b0005288c4405d41f5a91d972fecec7e;p=bertos.git Fix and update sd files. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5153 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png index da4fd4be..3b517c4b 100644 Binary files a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png and b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png differ diff --git a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/style.css b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/style.css index 80d163ef..904b0c12 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/style.css +++ b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/style.css @@ -32,7 +32,7 @@ body { color:#3E9A3C; margin-top: 35px; text-shadow:3px 3px 1px #eee; - margin-bottom: -10px; + margin-bottom: 0px; } #header h3 { diff --git a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm index 14b926fb..bfb2aa07 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm +++ b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm @@ -18,6 +18,21 @@ $.each(data,function(k,v){ $('#'+k).text(v); }); + } + }); + $.ajax({ + url: "get_ledStatus", + dataType :'json', + success: function(data){ + $.each(data,function(k,v){ + + if (v == 1) { + $('#led-'+k).addClass('led-on').removeClass('led-off').text('ON').append(" "); + } else { + $('#led-'+k).addClass('led-off').removeClass('led-on').text('OFF').prepend(" "); + } + + }); } }); @@ -52,7 +67,7 @@ var options = { series: { shadowSize: 0 }, - yaxis: { min: 0, max: 100 }, + yaxis: { min: 0}, xaxis: {min:0} }; @@ -73,12 +88,12 @@ temperature_data.push([data['up_time'],data['temp']]); var o = plot_temperature.getAxes().xaxis.options; - o.max = Math.max(15,data['up_time']); - o.min = Math.max(0,(o.max - 15)); + o.max = Math.max(25,data['up_time']); + o.min = Math.max(0,(o.max - 25)); plot_temperature.setData([temperature_data]); - plot_temperature.setupGrid(); - plot_temperature.draw(); - setTimeout(updateStatus, 5000); + plot_temperature.setupGrid(); + plot_temperature.draw(); + setTimeout(updateStatus, 5000); } }); @@ -110,9 +125,9 @@ Hardware Info:
Core name: Arch name: - Sram size - Flash size - Mem boot type + Sram size: + Flash size: + Mem boot type:
@@ -121,7 +136,7 @@
Led status:
-  OFF OFF OFF + ------
Trigger Value:
@@ -133,7 +148,7 @@