Post Created date
Struct initialization
Really? I thought that struct foo s = { 0 }; would initialize all members to 0, regardless of lifetime, static/auto, whatever, and struct foo s2 = { 1 }; would assign 1 to...
Friday, 1 November 2013 - 23:21
finger protection for soldering
hobbss wrote:On topic: I have used a thin layer of superglue in the past. However, have never really examined the absorptive properties of said superglue. If you're worried...
Friday, 1 November 2013 - 20:04
table look up
Visovian wrote:I agree that when we make a mistake in the indexes, we get a bad result. But I do not think "PGM_P" is guilty. If we use "&" instead of "PGM_P", the situation...
Friday, 1 November 2013 - 19:58
atmega16a uart problem
JohanEkdahl wrote:HellsGuardian wrote: char flag; flag=UDR; this flag should be declared as volatile afaik and name it with some other stuff because this is not doing the job...
Friday, 1 November 2013 - 17:01
table look up
Minor quibble with a cast in the code: Visovian wrote:Quote:the goal: how to table look up? How about this? [...] const char PROGMEM key_matrix_table[][6][4] [...] strcpy_P(...
Friday, 1 November 2013 - 03:35
finger protection for soldering
Wash hands afterwards? Apparently skin exposure of inorganic lead is only minimally absorbed.
Friday, 1 November 2013 - 00:14
How to read/write an external SRAM?(i m a newer)
Make sram a pointer to a uint8_t. I recommend getting a book on the C language and googling .
Thursday, 31 October 2013 - 18:26
"Internal" Interrupt?
Do you mean for the above code to be conceptually what happens, e.g. the while loop is running continuously while your other code executes? If so, you need to convert...
Thursday, 31 October 2013 - 18:22
Frequency meassurment - how to increase accuracy?
Nice example of how polling is lower overhead in cases like this. Also, you probably wanted this for the loop, otherwise you'd go twice as far as you wanted: ptr...
Thursday, 31 October 2013 - 06:19
creating a loud buzzer
There's some way to use an inductor to boost the voltage. Those are still voodoo to me but that might help you track something down. I found a couple of links with some promising...
Thursday, 31 October 2013 - 02:49
table look up
You can use a typedef, which is trivial, or use some less-common type syntax: // start with your array declaration, add typedef, and change the name: typedef const uint8_t...
Thursday, 31 October 2013 - 02:39
Problem using template
What part of my previous message doesn't make sense?
Wednesday, 30 October 2013 - 04:16