tarou onsen

Bluetooth一体型のHRM1017でIoTを試作しています。

tarou’s public repositories

  • LCD表示

    #include "mbed.h" #include "TextLCD.h" TextLCD l(P0_25,P0_28,P0_29,P0_30,P0_0,P0_7); int main(){ l.cls(); l.locate(0,0); l.printf("Hello World!"); int i=0; while(1){ l.locate(0,1); l.printf("%d",i++); wait(1.0); } }

    Last updated: 06 Apr 2015 52
  • SDカード記録

    #include "mbed.h" #include "TextLCD.h" #include "SDFileSystem.h" int main(){ TextLCD l(P0_25,P0_28,P0_29,P0_30,P0_0,P0_7); SDFileSystem s(P0_12,P0_13,P0_15,P0_14,"sdhc"); FILE *f; int r=-1; l.cls(); l.locate(0,0); l.printf(".1 "); if((f=fopen("/sdhc/s2.txt","w"))==NULL){ r=1; goto stop; } l.printf(".2 "); if(fprintf(f,"%s %.3f %.3f\r\n","1234",1.23,0.4567)<0){ …

    Last updated: 06 Apr 2015 239
See all repositories