Post Created date
[ATMEGA324P] Input undetected
The macros look like they should be working, I think.   #define set_bit(byte, bit) ((byte) | (1 << (bit))) #define clear_bit(byte, bit) ((byte...
Friday, 21 September 2018 - 14:53
'Production Quality' AVR BASIC Interpreter?
I am not super fond of Python, and it's definitely an awful choice for something AVR-sized. Garbage-collected pointer-heavy languages are not a good fit.
Thursday, 13 September 2018 - 01:01
'Production Quality' AVR BASIC Interpreter?
Lua is a delightful language but WAY too big for AVR. Needs garbage collection and a fair bit of memory.
Friday, 7 September 2018 - 04:45
Double-checking, easy question...
The extra semicolon is a red flag for "someone didn't know what was happening", but it's harmless. You can always add null statements in C, they're only ever relevant in cases...
Saturday, 1 September 2018 - 18:19
Solved: Attiny85 Serial TTL with arduino IDE
The single biggest improvement in my development performance since I started programming was learning to stop when I'm tired.
Tuesday, 7 August 2018 - 03:32
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