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.
main.cpp
00001 //testando o funcionamento de uma porta OR 74HC32na placa , VCC em 3v3 e GND em GND PTE0 nas entrada A e PTE1 nas entradas B 00002 00003 #include "mbed.h" 00004 00005 DigitalOut pte0(PTE0); 00006 DigitalOut pte1(PTE1); 00007 00008 Serial pc(USBTX,USBRX); 00009 00010 00011 void setStatePins(bool a,bool b); 00012 00013 int main() { 00014 while(1) { 00015 00016 wait(5); 00017 setStatePins(0,0); 00018 pc.printf(" 0 0 "); 00019 00020 wait(5); 00021 setStatePins(0,1); 00022 pc.printf(" 0 1 "); 00023 00024 wait(5); 00025 setStatePins(1,0); 00026 pc.printf(" 1 0 "); 00027 00028 wait(5); 00029 setStatePins(1,1); 00030 pc.printf(" 1 1 "); 00031 00032 00033 } 00034 } 00035 00036 00037 void setStatePins(bool a,bool b){ 00038 00039 pte0 = a; 00040 00041 pte1 = b; 00042 00043 }
Generated on Mon Jul 25 2022 06:28:22 by
1.7.2