View RSS Feed

DroidsMaster

[990.014 MuIn LCD] Firmware update v2.2.4

Rate this Entry
An updated firmware released for the 990.014 MuIn LCD display, it reduces the delay needed between commands on Arduino code and similar devices.


Quote Originally Posted by Astrobeed View Post
attached the update to version 2.2.4 of the firmware.



I did the test with this sketch, is a bit more complex.
Code:
 
void setup()
{
  Serial.begin(19200); 
}
int i;
void loop()
{
   clear();
   for (i = 1; i < 101; i++)
   {
     bargraph(1,4,0,i);
     move(3,i/5);
     if(i>5) printchar(4);
     move(2,10);
     Serial.print(i);
     move(1,5);
     Serial.print(i);
     move(1,15);
     Serial.print(i);
     delay(5); 
   }
}
void changeBaud()
{
  Serial.write(0xFE);
  Serial.write(0x39);
  Serial.write(0x01); 
  delay(3);
}
void clear()
{
  Serial.write(0xFE);
  Serial.write(0x58);
  delay(5);
}
void graphinit()
{
  Serial.write(0xFE);
  Serial.write(0x68);
  delay(3);
}
void bargraph(byte col, byte row, byte dir, byte length)
{
  Serial.write(0xFE);
  Serial.write(0x7C);
  Serial.write(col);
  Serial.write(row);
  Serial.write(dir);
  Serial.write(length);
  delay(5);
}
void printmsg(char *msg)
{
  Serial.print(msg); 
}
void printchar(char c)
{
  Serial.print(c);
}
void move(byte row, byte col)
{
  Serial.write(0xFE);
  Serial.write(0x47);
  Serial.write(row); 
  Serial.write(col);
  delay(3);
}
Tags: 990.014, muin lcd Add / Edit Tags
Categories
Uncategorized

Comments