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 FibonacciLFSR
main.cpp
00001 #include "mbed.h" 00002 #include "FibonacciLFSR.h" 00003 #include <bitset> 00004 #include <iostream> 00005 00006 Serial pc(USBTX, USBRX); 00007 FibonacciLFSR myLFSR(FibonacciLFSR::LFSR_4); 00008 00009 // Led order is mixed up to increase "random effect" at output 00010 BusOut myleds(LED2, LED4, LED3, LED1); // See also "PortOut" 00011 00012 int main() { 00013 while(1){ 00014 myleds = myLFSR.getRandom(); 00015 wait(0.08); 00016 } 00017 }
Generated on Sat Jul 30 2022 07:43:49 by
1.7.2