mirror of
https://github.com/cnlohr/lolra.git
synced 2026-06-17 00:09:31 +00:00
Fix formatting + Prevent LCD from failing at startup
This commit is contained in:
+1
-1
Submodule ch32v/ch32v003fun updated: 31a231ff27...f41db0dc30
@@ -636,7 +636,10 @@ int main()
|
|||||||
//ssd1306_drawPixel( i+1, i, 1 );
|
//ssd1306_drawPixel( i+1, i, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Not sure why, need to do it a few times to make it stick?
|
||||||
ssd1306_refresh();
|
ssd1306_refresh();
|
||||||
|
ssd1306_refresh();
|
||||||
|
|
||||||
|
|
||||||
uint8_t force_two_row_mode[] = {
|
uint8_t force_two_row_mode[] = {
|
||||||
0xa8, 0, // Set MUX ratio (Actually # of lines to scan) (But it's this + 1) You can make this 1 for wider.
|
0xa8, 0, // Set MUX ratio (Actually # of lines to scan) (But it's this + 1) You can make this 1 for wider.
|
||||||
|
|||||||
@@ -328,8 +328,8 @@ async function sendLoop()
|
|||||||
xActionSecAvg = xActionSecAvg * 0.9 + xActionSec * 0.1;
|
xActionSecAvg = xActionSecAvg * 0.9 + xActionSec * 0.1;
|
||||||
|
|
||||||
document.getElementById( "StatusPerf" ).innerHTML =
|
document.getElementById( "StatusPerf" ).innerHTML =
|
||||||
(kBsecAvg).toFixed(2) + " kBytes/s<br>" +
|
(kBsecAvg).toFixed(2) + " kB/s<br>" +
|
||||||
(xActionSecAvg).toFixed(2) + "transactions/sec<br>";
|
(xActionSecAvg).toFixed(2) + "x/s<br>";
|
||||||
document.getElementById( "GeneralData" ).innerHTML =
|
document.getElementById( "GeneralData" ).innerHTML =
|
||||||
"Count: " + goodCount + " / " + badCount + "<br>Inten: " + ((Math.log( lastIntensity * lastIntensity )/Math.log(10)) * 10-120).toFixed(2) + "db (" + lastIntensity + ")";
|
"Count: " + goodCount + " / " + badCount + "<br>Inten: " + ((Math.log( lastIntensity * lastIntensity )/Math.log(10)) * 10-120).toFixed(2) + "db (" + lastIntensity + ")";
|
||||||
lastTime = thisTime;
|
lastTime = thisTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user