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
Fork of Exercise4 by
main.cpp
- Committer:
- drewantech
- Date:
- 2020-02-24
- Revision:
- 2:28f6fe278532
- Parent:
- 1:245bc5eb1bbe
File content as of revision 2:28f6fe278532:
#include "mbed.h"
/****************************************************************
This is a slightly harder exercise but should be good majour hint use << and >>.
in this exercise i would like you to create a function that will take in an 8-bit, 1byre number and then display it on the leds in biary.
In the main I would like to see the code count up in binary.
***************************************************************/
// these functions initializes the led pins and functions associated with them these are technically c++ but dont worry to much about this yet
DigitalOut led1(D5);
DigitalOut led2(D6);
DigitalOut led3(D7);
DigitalOut led4(D8);
DigitalOut led5(D9);
DigitalOut led6(D10);
DigitalOut led7(D11);
DigitalOut led8(D12);
// this is your main function and is where the code starts good luck!
int main() {
}
