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: mbed
main.cpp
- Committer:
- glanier9
- Date:
- 2021-01-21
- Revision:
- 2:3ca6379931dd
- Parent:
- 1:f7aaf003cd11
File content as of revision 2:3ca6379931dd:
//  4180 Lab 1, Part 1
//  Gregory Lanier
#include "mbed.h"
/*
    This program lights up an LED with a pushbutton input.
*/
DigitalIn   button(p8);     // Turn on LED with button p8
DigitalOut  redLED(p21);    // Light up LED with pin 21
int main() 
{
    button.mode(PullUp);
    while(1) 
    {
        redLED = !button;
    }
}
// this is a test
// This is another test