Post Created date
Empty interrupt slows down _delay_ms()
because the delay function isn't looking at time elapsed, it's just running a certain amount of code that would take that long to execute in the absence of any interrupts.
Monday, 30 July 2018 - 00:00
Doen't work I2C LCD module.
It looks like this code is derived from the same basic code as Adafruit's i2c LCD backpack code, and it contains some fairly ridiculous code choices.   TWI_write((0x08 |...
Sunday, 29 July 2018 - 12:48
Rotate Image on TFT Display by any angle
You could probably write a thing on some other computer that does the computation and produces the byte arrays, but I would suggest at least looking at them once they're generated...
Saturday, 21 July 2018 - 20:54
Rotate Image on TFT Display by any angle
There's no FPU, so floating point math is going to be insanely bad. If you can possibly arrange to just store multiple precomputed images, you should. You can do 4x as many if you...
Saturday, 21 July 2018 - 17:06
0-5999 to 0-99h:59m
That's a very good point: ++minutes; if (minutes == 60) { minutes = 0; ++hours; }This is almost certainly a lot faster than division on AVR.
Saturday, 21 July 2018 - 16:53
hardware multiplication
Yes, they are types of multiplier. A hardware multiplier implements the multiplication in hardware -- there's actual gates on the chip to do the thing. A software multiplier uses...
Saturday, 21 July 2018 - 00:04
Reading EE value directly into multibyte-variables
"pointer to a variables name" is conceptually valid. Variable names are not objects in the executing program.   Don't try to alias it like this; it's possible to make it work...
Friday, 6 July 2018 - 23:36
why does the update_block not work?
sizeof(mapper) would have to be exactly 24. sizeof(char) is by-definition 1; this is not dependent on anything except "this language is C", and that holds for signed and unsigned...
Wednesday, 27 June 2018 - 05:26
RPN Calculator using LED displays: atof() not functioning and inaccurate rounding
I'd want to know more about the details of your problem with atof(); do you have a sample test program illustrating it? Do you have any way to investigate the contents of the...
Tuesday, 26 June 2018 - 00:23
Ubuntu Mate 18.04 LTS - issue with Atmel Toolchains
Changing locale can affect a number of things, like error messages; for instance, that's how you'd set things to request non-English error messages.   But it shouldn't affect...
Tuesday, 26 June 2018 - 00:13
SPI MISO spikes
I've usually seen pulldown resistors closer to 10k, at 150 you might start seeing problems because there's not *enough* resistance, and/or excessive power drain.
Saturday, 23 June 2018 - 11:28
Functions within functions (lambdas)
The advantage is the access to the local variables. Consider, for instance, if you have a function somewhere else that takes a function pointer. If you hand them the address of a...
Tuesday, 19 June 2018 - 19:25

Pages