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.
Dependencies: PCAL955x mbed mbed-rtos AT45
Diff: src/task_pb3.cpp
- Revision:
- 0:d05a7158dbad
diff -r 000000000000 -r d05a7158dbad src/task_pb3.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/task_pb3.cpp Sun Feb 07 05:08:51 2021 +0000
@@ -0,0 +1,32 @@
+
+/******************* логическая задача 3 ************************/
+//
+//
+
+
+// подключаем глоб. переменные
+#include "ext_vars.h"
+
+
+// локальные переменные
+int test3 = 0 ;
+
+
+int task_pb3()
+{
+ int sts=0 ;
+
+
+ // test
+ if(x01==1){
+ test3=20;
+ }else{
+ test3=0;
+ }
+
+
+
+ sts=1;
+ return sts;
+}
+