Skip to content

Instantly share code, notes, and snippets.

//**************************************************************//
// 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 //
//**************************************************************//
//**************************************************************//
@mitchmyburgh
mitchmyburgh / script.py
Last active May 27, 2016 07:24
Script for generating config files for GridSim
# 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")