NHK2021_ikarashiSolenoidValve
Dependents: NHK2021_ikarashiSV_code NHK2021_ikarashiSV_code_withservo 2021NHK_B_syudo
Diff: ikarashiSV.cpp
- Revision:
- 8:f276fe03c43d
- Parent:
- 7:58da8ee2b38d
- Child:
- 9:252dd0bc8f93
diff -r 58da8ee2b38d -r f276fe03c43d ikarashiSV.cpp --- a/ikarashiSV.cpp Fri Oct 22 07:59:13 2021 +0000 +++ b/ikarashiSV.cpp Sat Oct 23 03:38:23 2021 +0000 @@ -43,13 +43,13 @@ { switch(solenoid_status) { case 1: - printf("1:push"); + printf("1:push\t"); break; case 2: - printf("1:pull"); + printf("1:pull\t"); break; case 0: - printf("1:open"); + printf("1:open\t"); break; } } @@ -74,7 +74,7 @@ port_f = 1; solenoid_status2 = 1; break; - case 0; + case 0: port_e = 1; port_f = 0; solenoid_status2 = 0; @@ -85,9 +85,9 @@ void ikarashiSV2::solenoid_show() { if(solenoid_status2) { - printf("2:push"); + printf("2:push\t"); } else { - printf("2:pull"); + printf("2:pull\t"); } }