Post Created date
How do you like it?
AS6 is pretty darn good.
Thursday, 21 February 2013 - 06:05
Timer code works until placed in .h/.c
Compile all your sources as C++ The C++ compiler will prevent you from making many silly mistakes.
Wednesday, 20 February 2013 - 21:56
program shows indifferent behaviour
You're doing things like if(READ(C,4)==HIGH) if(READ(A,1)==LOW) That's not going to work. Try something like this: if (!!READ(C, 4)) if (!READ(A, 1))
Wednesday, 20 February 2013 - 17:28
Reading the state of a keymatrix into an array
Kartman wrote:Sid, seems you haven't read my tutorials! I discuss debouncing and the affect of noise on inputs. For any input that comes from the 'real world' whether it bounces...
Wednesday, 20 February 2013 - 03:14
Reading the state of a keymatrix into an array
Smiley, What do you mean "lots of ifs" ? There are only two of them. One of them comes from Bob, the other one comes from me. I am well aware that there are many threads about...
Wednesday, 20 February 2013 - 03:12
Reading the state of a keymatrix into an array
theusch wrote:After you get going, remember the buttons bounce. So in my stodgy old way I'd read a column every 1ms or 1.25ms and store all the results and then enter all (every...
Wednesday, 20 February 2013 - 01:53
Difference between |= and = in AVR C
skotti, You are right but you are talking about a race condition. That is a problem common to all multitasking with shared data regardless of platform. When you are accessing a...
Tuesday, 19 February 2013 - 22:02
c++ cross include
I have used OO since the eighties and I would never have a car frame "inheriting" wheels. That's just plain wrong, and it always has been. A Car has a Frame. It has a number of...
Tuesday, 19 February 2013 - 18:46
Array Size Allocation question
I don't think I've ever used a static const, although I can see how they are useful for constants that can't be represented as an enum value. One reason I prefer enums is that the...
Tuesday, 19 February 2013 - 01:05
Array Size Allocation question
Koshchi wrote:What a lame argument. Oh yeah ? Well, at least I don't have a huge ugly nose like you do.
Monday, 18 February 2013 - 22:51
Difference between |= and = in AVR C
david.prentice wrote:Most C compilers will generate a SBI instruction for this. That depends on how many bits you set.
Monday, 18 February 2013 - 17:53
Array Size Allocation question
#defines are handled by the preprocessor, enums are handled by the compiler. Make an error in one of your #defines and you will not know until you actually use it - maybe years...
Monday, 18 February 2013 - 17:49