
send blue pill
Revision 1:5443e92b08c8, committed 2021-10-11
- Comitter:
- THtakahiro702286
- Date:
- Mon Oct 11 07:23:07 2021 +0000
- Parent:
- 0:bc0103df8555
- Commit message:
- f303KB ver
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
pin_config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r bc0103df8555 -r 5443e92b08c8 main.cpp --- a/main.cpp Fri Oct 08 07:21:37 2021 +0000 +++ b/main.cpp Mon Oct 11 07:23:07 2021 +0000 @@ -6,10 +6,12 @@ FEP fep(FEP_TX, FEP_RX, 001); DigitalIn EmergencySW(Em_SW); DigitalOut led1(LED_0); +DigitalOut led(PB_3); int main() { uint8_t txdata[1], data[1]; + led = true; EmergencySW.mode(PullDown); while (1) { led1 = EmergencySW;
diff -r bc0103df8555 -r 5443e92b08c8 pin_config.h --- a/pin_config.h Fri Oct 08 07:21:37 2021 +0000 +++ b/pin_config.h Mon Oct 11 07:23:07 2021 +0000 @@ -4,15 +4,15 @@ #include "mbed.h" /*FEP接続*/ -static PinName const FEP_TX = PB_10; -static PinName const FEP_RX = PB_11; +static PinName const FEP_TX = PA_9; +static PinName const FEP_RX = PA_10; /*PC接続*/ static PinName const PC_TX = USBTX; /*LED接続*/ -static PinName const LED_0 = PB_0; +static PinName const LED_0 = PB_7; /*非常停止スイッチ接続*/ -static PinName const Em_SW = PB_1; +static PinName const Em_SW = PB_0; #endif \ No newline at end of file