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: MS9g_move_sin mbed-STM32F103C8T6 mbed
main.cpp
00001 #include "mbed.h" 00002 #include "stm32f103c8t6.h" 00003 #define id 1 //идентификатор узла 00004 00005 CAN mycan (PA_11, PA_12); 00006 DigitalOut myled (PC_13); 00007 Serial uart (PA_9, PA_10); 00008 00009 int main() { 00010 confSysClock(); 00011 00012 while(1) { 00013 if (mycan.write(CANMessage(id, &data, 1))){ 00014 myled =! myled; 00015 wait(1); 00016 } 00017 } 00018 }
Generated on Sat Jul 16 2022 06:35:22 by
1.7.2