Scott Allen
Scott Allen
> if such an implementation proved to be faster, and hypothetically let's assume it's larger and thus increases the library's progmem usage, _would such a function be of interest?_ It...
> This rounding uses addition, masking and a single branch, which should be relatively cheap overall. One goal of the Arduboy2 library has been to optimize for size and/or speed...
I see no problem with adding this. I'll add it to the ToDo for the next release.
Looks like a good idea. I'll add this for the next release.
My question is: What mechanism causes the savings? It's counterintuitive that, more or less, duplicating code that is already provided in a function would reduce code size. The only difference...
> I can't make any predictions of future compilers. but if code size would be increased it would likely not be limited to this piece of code. What I'm saying...
Based on the 32u4 datasheet, I'm skeptical that the bandgap voltage will be precise enough from unit to unit to provide a meaningful low battery indication, without needing some calibration...
If we're going to be checking the battery constantly in a loop, such as from _nextFrameWhatever()_, it would be better not to always wait on the conversion to complete, which...
> docs.arduboy.com? Suggestions? Why create a _docs_ subdomain? What's wrong with a directory under the main domain? _arduboy.com/docs/_
> > but you could pair it with a beep or something for "on" at least I think. > > Actually I think a 8x8 icon could probably be squeezed...