- Sun Oct 18, 2009 10:24 am
#83198
Hi, I am new to Arduino and just bought a 7 segment serial display this week. http://www.sparkfun.com/commerce/produc ... ts_id=9230
Instead of using SPI, I would like to use TTL level communication to control my display and my arduino is ATMega328. The wiring is easy, VCC to pin11, GND to GND and RX to TX(arduino).
I was told to use Serial.write() to display numbers but not succeed yet.
After hours of struggling, I'd like to ask your kindly help to help me with the coding. At this first stage, I just want to display four digits mannually.
Below is my code now:
Void Setup(){
Serial.begin(9600);
pinMode(11, OUTPUT);
}
Void loop(){
Serial.write(0x02);
Serial.write(0x03);
Serial.write(0x04);
Serial.write(0x05);
}
I really have no idea with my coding.
Thank you in advance!
Instead of using SPI, I would like to use TTL level communication to control my display and my arduino is ATMega328. The wiring is easy, VCC to pin11, GND to GND and RX to TX(arduino).
I was told to use Serial.write() to display numbers but not succeed yet.
After hours of struggling, I'd like to ask your kindly help to help me with the coding. At this first stage, I just want to display four digits mannually.
Below is my code now:
Void Setup(){
Serial.begin(9600);
pinMode(11, OUTPUT);
}
Void loop(){
Serial.write(0x02);
Serial.write(0x03);
Serial.write(0x04);
Serial.write(0x05);
}
I really have no idea with my coding.
Thank you in advance!