example project to explain how to write a class library

Dependencies:   mbed test_LM75B

Information

Sample code to explain the class library development.
Each revisions of code in repository shows steps from hardware verification to publishing.

クラスライブラリ開発の手順を示したサンプルです.
リポジトリ内のコードを追うことによって,ハードウェアの検証から公開までの流れを説明しています.

Committer:
okano
Date:
Mon Nov 03 00:06:59 2014 +0000
Revision:
1:3c29c04cfeb2
Parent:
0:f947ed831c67
Child:
2:482581f76a1d
device access is made as a class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 0:f947ed831c67 1 #include "mbed.h"
okano 1:3c29c04cfeb2 2 #include "test_LM75B.h"
okano 0:f947ed831c67 3
okano 1:3c29c04cfeb2 4 test_LM75B temp( p28, p27 );
okano 0:f947ed831c67 5
okano 0:f947ed831c67 6 int main()
okano 0:f947ed831c67 7 {
okano 0:f947ed831c67 8 while(1) {
okano 1:3c29c04cfeb2 9 printf( "temp = %7.3f\r\n", temp.read() );
okano 0:f947ed831c67 10 wait( 1 );
okano 0:f947ed831c67 11 }
okano 0:f947ed831c67 12 }
okano 0:f947ed831c67 13