esd cell -> optional pull ups/down -> schmitt trigger.
19 karma · joined November 5, 2023
esd cell -> optional pull ups/down -> schmitt trigger.
So if you limit the input current (typically <5mA, and assuming the steered-to rail uses at least 5mA to sink it) it will survive any voltage. (Of course if it's a low power design or the device is off this wont work that well, then you want external clamping)
I have tested 24V AC applied to an stm32f0 pin with a 10K series resistor and it survives that indefinitetly.
That's precisley why official/standard build systems suck, they are extremly cumbersome to wrangle when you go off the beaten path.
So the irony is that standard build systems/package manager are whats good for hello worlds, non-trivial programs require custom build steps.
Just let me write a build.bat/build.sh per platform/compiler/configuration that are explicit and precise in compiler flags, paths, output files, pre/post processing, etc so nothing magical is happening under the hood.
Small scrappy team writing simple and consice code from scratch is likely to produce fewer bugs than enterprisey monstrosities.
His youtube is cringeworthy sometimes, but he is actually a serious scientist with a phd and some pretty decent cred in chemistry.
Scaling with changing dpi is the easiest thing in the world. Anyone who has written a program with some kind of 'zoom' feature (be it a game, image editor, image viewer, etc) knows how easy it is.
handle WM_DPICHANGED
recreate fonts with actual_dpi/reference_dpi scale factor and send WM_SETFONT
and apply scale factor to all DeferWindowPos() operations.