New answers tagged

1 vote
Accepted

Can't get input from 4x4 keyboard

You need to watch out for what you return and if your variables are initialized. So, what happens here: In loop() you call getNumber(). There you declare two variables: userInput, which you ...
user avatar
  • 13.7k
2 votes

Compare interrupt enabled in overflow interrupt behavior is not as expected

I solved it. The points were: In the interrupt TIMER1_OVF_vect, I shouldn't turn off the ADC by resetting ADEN. Instead, I disabled the auto trigger by resetting ADATE. I use some wrong register ...
user avatar
  • 31
6 votes
Accepted

lcd.createChar() only allows for 8 custom characters

These displays only allow up to 8 custom defined characters. The hardware just only has the character RAM for at most 8 characters. They will be mapped to char codes 0 to 7 and 8 to 15. The character ...
user avatar
  • 1,059
2 votes
Accepted

How to process 20-bit sensor data

Other than the subscript [i], which looks suspicious, what you did seems perfectly correct to me. Now, if I go nitpicking, I may suggest: use a bit shift, as it is way cheaper than a division round ...
user avatar
  • 35.5k

Top 50 recent answers are included