-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for this brilliant idea #1
Comments
Salutations @m1cr0lab thanks for your feedback, I'm happy my work inspired you :-)
could it mean the whole channels list is off by one? this app was supposed to help me pick an idle wifi channel to have my ConBee dongle collect data from my Linky ... and I've been wondering why my zigbee network had such a big packet loss ratio 🤦 thanks for spotting that!
your changes seem to dramatically improve the frame rate 👍 pour ma défense I initially wanted to have the luminance vary depending on the display brightness but the min-max values weren't consistent across M5 devices and the code block to handle that was removed. however before removing this feature I found out there are 4 significant luminance levels (e.g. 1, 2, 4, 8) to map between max and min brightness in order to keep the graph horizon visible. I believe the ESPBoy could benefit from that tweak, all you need is to set those 1/2/1 values as variables too: static uint8_t rl, gl, bl; // don't forget to init in setup()!
void onBrightnessChanged( uint8_t brightness, uint8_t min_brightness=0x00, uint8_t max_brightness=0xff )
{
// on brightness change
uint8_t luminance = map( brightness, max_brightness, min_brightness, 1, 4 );
rl = luminance;
gl = luminance*2;
bl = luminance;
}
// (...)
for (uint16_t i = 0; i < len; ++i) {
if (fb[i]) {
// (... )
r = r > rl ? r - rl : 0;
g = g > gl ? g - gl : 0;
b = b > bl ? b - bl : 0;
// (...)
}
} be well |
Hello @tobozo,
That's precisely the case!
La chose la plus difficile c'est d'avoir l'idée la plus simple. Thanks for your tip about significant luminance values depending on the screen brightness. I'm keeping this in mind, even though no one uses the ESPboy's screen backlight LED. I think I'm the only one who does, but only in specific cases: to simulate fades between splash screens. Thanks again for your constructive feedback. Steph |
Salut @tobozo,
I liked the way you represented WiFi channel saturation with your
WiFiChanViz
app that I discovered on Twitter:So I challenged myself to try to remake it by myself for the ESPboy. I kept your idea of setting the height of the channels according to the number of access points occupying them. But I chose a different color scale depending on the best-observed signal quality for each channel.
And I added the ability to browse between channels to see the list of access points broadcasting a WiFi network.
Here is how it looks:
Well, the WiFi antenna of the M5Stack is probably of better quality than the one of the Wemos D1 mini that drives the ESPboy...
I then took a look at your code to compare our approaches. They are pretty similar, although we have a different way of calculating the luminance for the historical perspective fade:
LovyanGFX library is outstanding!
Oh, and I have to point out a slight error in your
WiFiChanViz.ino
code:Replace this:
By:
dpc[channel - 1]++;
If you are curious, you can have a look at my code.
En tout cas, merci pour ton travail inspirant ! 😉
Steph
The text was updated successfully, but these errors were encountered: