Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Global.cpp
- Revision:
- 26:a53c3208ac35
- Parent:
- 25:589742cd3137
- Child:
- 31:cef6ee7af014
--- a/Global.cpp Sat Jul 23 00:09:05 2016 +0000 +++ b/Global.cpp Sat Jul 23 00:50:47 2016 +0000 @@ -3,6 +3,8 @@ #include "rtos.h" +//クラスじゃなくてnamespaceのほうが綺麗にかけるかもね + Queue<char, 20> Global::initqueue; //----------------普段は変動しない変数------------------------------------------------------ @@ -62,12 +64,13 @@ DigitalOut Global::led[] = {LED1,LED2,LED3,LED4}; LocalFileSystem Global::local("local"); - +//ここでINIT.csvファイルが読み込まれる void Global::initialize(){ timer.start(); fileread(); } +//INITファイルの読み込み void Global::fileread(){ float a, b, c, d, e, f; @@ -102,6 +105,7 @@ fclose(fp); } +//INITファイルの書き込み void Global::filewrite(){ FILE* fp = fopen("/local/init.csv", "w"); if(fp == NULL) {