Nice work, I've got one of these hooked up to a temp/humidity sensor for fun.
Do you have a link to your source code for this project? I have an SGC version of this LCD and am trying to figure it out :). Did you use the arduino library the 4d site links to?
@oorcinus Thanks for that, I'm rather new to c style programming. I had to do some conversion to send a float to the lcd.drawstringblock() function with itoa(), which is somewhat different from what you did. It's nice to learn a new technique!
@doN0Evil Ah, yeah, converted the distance value to string manually instead of using itoa() because at some point i was playing with rounding the least significant digit to 5 cm, with decimal points etc. Left it like that in the end. itoa() basically does it the same way, so no harm done :)
@doN0Evil Oh, also, just noticed i've linked you the version of the code that also lights up a led bar graph via a shift register. In case you were wondering what's with the extra shiftOut lines.
Nice work, I've got one of these hooked up to a temp/humidity sensor for fun.
Do you have a link to your source code for this project? I have an SGC version of this LCD and am trying to figure it out :). Did you use the arduino library the 4d site links to?
doN0Evil 11 months ago
@doN0Evil Yeah, i've used this library: code.google.c o m/p/displayshield4d/
It's rather poorly documented and is missing a few crucial time-delays after some of the functions.
Here's the source: dl.dropbox.c o m/u/1702513/Distance.pde
oorcinus 11 months ago
@oorcinus Thanks for that, I'm rather new to c style programming. I had to do some conversion to send a float to the lcd.drawstringblock() function with itoa(), which is somewhat different from what you did. It's nice to learn a new technique!
doN0Evil 11 months ago
@doN0Evil Ah, yeah, converted the distance value to string manually instead of using itoa() because at some point i was playing with rounding the least significant digit to 5 cm, with decimal points etc. Left it like that in the end. itoa() basically does it the same way, so no harm done :)
oorcinus 10 months ago
@doN0Evil Oh, also, just noticed i've linked you the version of the code that also lights up a led bar graph via a shift register. In case you were wondering what's with the extra shiftOut lines.
oorcinus 10 months ago
great job ;)
letsrockbaby1 11 months ago