Task 3.3.1

Fork of Task331 by Nicholas Outram

Committer:
noutram
Date:
Wed Sep 18 11:52:54 2019 +0000
Revision:
2:d6dfe854bb0a
Parent:
0:f2ac5564a731
2019

Who changed what in which revision?

UserRevisionLine numberNew contents of line
noutram 0:f2ac5564a731 1 #include "mbed.h"
noutram 0:f2ac5564a731 2
noutram 2:d6dfe854bb0a 3 #ifdef TARGET_NUCLEO_F429ZI
noutram 2:d6dfe854bb0a 4 //#define ONBOARD
noutram 2:d6dfe854bb0a 5 #endif
noutram 2:d6dfe854bb0a 6
noutram 2:d6dfe854bb0a 7 #ifdef ONBOARD
noutram 2:d6dfe854bb0a 8 BusOut binaryOutput(LED1, LED2, LED3);
noutram 2:d6dfe854bb0a 9 #else
noutram 0:f2ac5564a731 10 //lsb first
noutram 0:f2ac5564a731 11 BusOut binaryOutput(D5, D6, D7);
noutram 2:d6dfe854bb0a 12 #endif
noutram 2:d6dfe854bb0a 13
noutram 2:d6dfe854bb0a 14
noutram 0:f2ac5564a731 15
noutram 0:f2ac5564a731 16 int main() {
noutram 0:f2ac5564a731 17
noutram 0:f2ac5564a731 18 //Try different values
noutram 0:f2ac5564a731 19 binaryOutput = 3;
noutram 0:f2ac5564a731 20
noutram 0:f2ac5564a731 21 while (1) { }
noutram 0:f2ac5564a731 22 }