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: EthernetInterface NetworkAPI mbed-rtos mbed
Fork of NetRelais by
io.hpp
00001 #ifndef _IO_HPP_ 00002 #define _IO_HPP_ 00003 00004 #include "mbed.h" 00005 00006 namespace io 00007 { 00008 static DigitalOut led[4] = { 00009 DigitalOut(LED1), 00010 DigitalOut(LED2), 00011 DigitalOut(LED3), 00012 DigitalOut(LED4) 00013 }; 00014 00015 static DigitalOut ethernet[2] = { 00016 DigitalOut(p30), 00017 DigitalOut(p29) 00018 }; 00019 00020 static DigitalOut output[5] = { 00021 DigitalOut(p9), 00022 DigitalOut(p8), 00023 DigitalOut(p7), 00024 DigitalOut(p6), 00025 DigitalOut(p5) 00026 }; 00027 00028 static DigitalIn input[4] = { 00029 DigitalIn(p20), 00030 DigitalIn(p19), 00031 DigitalIn(p18), 00032 DigitalIn(p17) 00033 }; 00034 } 00035 00036 #endif // _IO_HPP_
Generated on Tue Jul 19 2022 10:03:11 by
