In this project i used TEMT6000 Light Sensor, connected to 3.3v pin and ground pin of m5Stack, and signal to GPIO 35 (ADC). Measures light uniformity and determines, if present, PWM frequency (50-1000 Hz) and ligth falloff. Buttons A and C used to change smoothing coefficient to eliminate high frequency noise.
Link to sketch available lower.
https://drive.google.com/open?id=1yzKUHyzToneFyfjAOKV304vq7tPC8M7L
S
Posts made by Sergey_Urusov
-
PWM brightness meter
-
RE: How to avoid text flicker ?
Just save previous displayed value in global variable, before display compare with saved, and display only if they differs.
-
RE: Chess for M5Stack
@m5dude Thanks!
Sorry about comments absence in code - they was on local language, and dropped automatically when downloading. Code optimisations was only on chess engine, other parts made more rudely. -
RE: Chess for M5Stack
@jimit Hi!
Thanks. Looks like performance gain corresponds to growing frequency of processor.
Of course you may add it to your github list. -
Chess for M5Stack
Some time ago i joined to M5Stack users and try to adapt my arduino chess program. Absence of touch screen disappointed a little, but finally i decide processor to suggest possible moves for choosing with buttons.Link to Arduino Mega Chess for M5Stack on arduino.cc