Thread: OBDuino Mega
View Single Post
Old 09-26-2009, 11:53 PM   #16 (permalink)
jonoxer
EcoModding Lurker
 
Join Date: Sep 2009
Location: Melbourne, Australia
Posts: 15
Thanks: 1
Thanked 10 Times in 8 Posts
nickdigger, you're a champion.

Code:
byte dr = 0x80 + x;
if (y&1)  dr+= 0x40;
if (y&2)  dr+= 0x14;
Tested on my 20x4 and works perfectly. I've committed that to my copy of the OBDuino32KMega tree.

Cheers :-)

Jonathan Oxer
http://jon.oxer.com.au/
  Reply With Quote
The Following User Says Thank You to jonoxer For This Useful Post:
dewasha (07-16-2013)