![](/media/cache/group/Bl7MzJTB.jpg.50x50_q85.jpg)
mit Buttons/PWM als einzelne cpp und init in main
Dependencies: mbed mbed-rtos X_NUCLEO_IHM02A1
ST_DUO.cpp
- Committer:
- scherfa2
- Date:
- 2019-04-24
- Revision:
- 34:0dee9a606869
- Parent:
- 33:de144094bdd1
File content as of revision 34:0dee9a606869:
#include "SETUP.h" int StatusDUO=DUO_DEFAULT; extern volatile bool buttonSTART_pressed; extern volatile bool buttonSTART_enabled; extern PwmOut Servo; void EntryDuoStart() { gotoxy(1,1); DisplaySendeString("Modus: DUO-Betrieb"); gotoxy(1,3); DisplaySendeString("Betrieb gestartet"); SpleisserMotorFWD(); //Test pwm ServoAusschuss(0.001, 0.5); StatusDUO=DUO_START; } void EntryDUO() { switch(StatusDUO) { case DUO_DEFAULT: printf("DUO_MODUS\r\n"); // SpleisserMotorFWD(); if(buttonSTART_pressed==true) { buttonSTART_pressed=false; buttonSTART_diable_cb(); EntryDuoStart(); } break; case DUO_START: printf("DUO_START\r\n"); break; case DUO_FilamentIN: break; case DUO_Schneiden1: break; case DUO_Schneiden2: break; case DUO_Spleissen: break; case DUO_Normalbetrieb: break; case DUO_Finish: break; case DUO_FERTIG: break; case DUO_STOERUNG: break; } }