SparkFun Serial 7-Segment Display

SparkFun Serial 7-Segment Displayをお試し中。

http://www.switch-science.com/products/detail.php?product_id=375

http://www.sparkfun.com/products/9766

 

数字を表示させるだけなら、Serial myserial(p9,p10)としておいて、

myserial.baud(9600);
myserial.printf("1234");

の2行だけでOK。

 

この7-Segは、時計として使えるよう「:」や小数点も光らせられるが、

00110000 もしくは (0x30)

といったバイト値をシリアルで送る必要がある。

 

 

なお、Arduinoで試したときは、

Serial.print(0x30,BYTE);

と送っていた。

 

http://e-words.jp/p/r-ascii.html

 


1 comment

26 Dec 2010

こんにちはー。

僕もSerial 7-Segment Display買ったんですが、まだ繋いでなかったので試してみます!

You need to log in to post a comment