Show Posts
Pages: [1]
1  Using Arduino / Displays / Re: Futaba M12BY02AA VFD Display on: January 31, 2013, 07:50:45 am
OK, I've found some code on github from someone who has used this display before, unfortunately it was with a PIC not an AVR - https://github.com/Djhg2000/OpenHUDisplay/blob/master/m12by02aa.c

The code I am using so far is below, just to try to turn one of the three LED's on, before I try to get the display working -

Code:
#include <Wire.h>
byte I2C_add = B10100000; //address #0
byte disp_write = B01000000; //write to display memory
byte disp_bright = B10011111; //turn on display, maximum brightness
byte led_write = B01000101; //write to LED's


void setup() {
  Wire.begin();
}

void loop() {
  Wire.beginTransmission(0);
  Wire.write(I2C_add); //write to address #0
  Wire.write(disp_bright); //turn on display
  Wire.endTransmission();
  delay(250);
  Wire.beginTransmission(0);
  Wire.write(I2C_add);
  Wire.write(led_write); //write to LED
  Wire.write(B01000101); //turn LED 2 on
  Wire.endTransmission();
  delay(1000);
}

Any ideas??
2  Using Arduino / Displays / Futaba M12BY02AA VFD Display on: January 30, 2013, 07:15:19 am
I'm new here - be gentle smiley

I got a few of these displays pretty cheaply, and being I2C I thought they should be pretty easy to get working, problem is I'm stuck.  The datasheet for these displays is here - http://docs-asia.electrocomponents.com/webdocs/0f06/0900766b80f06185.pdf

I get that I need to send a device address byte, then a command or memory address byte, and then the data bytes, I presume with code resembling the following -

Wire.write(byte1);
Wire.write(byte2);
Wire.write(byte3);
etc, etc

The question is - how do I receive the acknowledge bits - the "0" that the display sends back after each byte is received.  Do I just do a Wire.read() line with a routine to look for a 0??

Any help or example code would be greatly appreciated.
Pages: [1]