This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //**************************************************************// | |
| // Name : Screen Control Code // | |
| // Author : Mitch Myburgh // | |
| // Date : 11 July 2016 // | |
| // Version : 1.0 // | |
| // Notes : Code for using a 74HC595 Shift Register // | |
| // : to control an 8x8 Matrix // | |
| //**************************************************************// | |
| //**************************************************************// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configuration file generator for GridSim | |
| # DSC Assignment 2 | |
| # Mitch Myburgh | |
| # 26 May 2016 | |
| from random import randint | |
| # create network config file in filename with num routers | |
| def create_network(filename, num): | |
| file = open(filename, "w") |