V1
Dependencies: mbed 25LCxxx_SPI MCP23S17
Diff: main.c
- Revision:
- 1:ab2526b30b34
- Parent:
- 0:a9e3bce19b5d
diff -r a9e3bce19b5d -r ab2526b30b34 main.c --- a/main.c Sat Jan 16 16:17:05 2021 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -#include "mbed.h" - - -Serial pc(PA_2, PA_3); // I/O terminal PC -DigitalOut led(PA_15); // led -Ticker automate; -// -void autom(void) -{ - led=!led; -} -int main() -{ - automate.attach(&autom,1.0); - while(1); - - - - -} \ No newline at end of file