diff --git a/ch32v/ch32v003fun b/ch32v/ch32v003fun index 31a231f..f41db0d 160000 --- a/ch32v/ch32v003fun +++ b/ch32v/ch32v003fun @@ -1 +1 @@ -Subproject commit 31a231ff279d9c60bf9bd6628e891e031371ef3a +Subproject commit f41db0dc304fd855e8e806282a9a250661708a72 diff --git a/ch32v/ch32v203-goertzel/adcgoertzel.c b/ch32v/ch32v203-goertzel/adcgoertzel.c index 8d5f3f7..9687fb6 100644 --- a/ch32v/ch32v203-goertzel/adcgoertzel.c +++ b/ch32v/ch32v203-goertzel/adcgoertzel.c @@ -636,7 +636,10 @@ int main() //ssd1306_drawPixel( i+1, i, 1 ); } + // Not sure why, need to do it a few times to make it stick? ssd1306_refresh(); + ssd1306_refresh(); + 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. diff --git a/ch32v/lib/webhidcontrol.js b/ch32v/lib/webhidcontrol.js index 806ce4f..777a602 100644 --- a/ch32v/lib/webhidcontrol.js +++ b/ch32v/lib/webhidcontrol.js @@ -328,8 +328,8 @@ async function sendLoop() xActionSecAvg = xActionSecAvg * 0.9 + xActionSec * 0.1; document.getElementById( "StatusPerf" ).innerHTML = - (kBsecAvg).toFixed(2) + " kBytes/s
" + - (xActionSecAvg).toFixed(2) + "transactions/sec
"; + (kBsecAvg).toFixed(2) + " kB/s
" + + (xActionSecAvg).toFixed(2) + "x/s
"; document.getElementById( "GeneralData" ).innerHTML = "Count: " + goodCount + " / " + badCount + "
Inten: " + ((Math.log( lastIntensity * lastIntensity )/Math.log(10)) * 10-120).toFixed(2) + "db (" + lastIntensity + ")"; lastTime = thisTime;