Prusa MINI Firmware overview
createSpeedLookupTable.py File Reference

Namespaces

 createSpeedLookupTable
 

Variables

 createSpeedLookupTable.parser = argparse.ArgumentParser(description=__doc__)
 
 createSpeedLookupTable.type
 
 createSpeedLookupTable.int
 
 createSpeedLookupTable.default
 
 createSpeedLookupTable.help
 
 createSpeedLookupTable.args = parser.parse_args()
 
int createSpeedLookupTable.cpu_freq = args.cpu_freq * 1000000
 
int createSpeedLookupTable.timer_freq = cpu_freq / args.divider
 
list createSpeedLookupTable.a = [ timer_freq / ((i*256)+(args.cpu_freq*2)) for i in range(256) ]
 
list createSpeedLookupTable.b = [ a[i] - a[i+1] for i in range(255) ]
 
 createSpeedLookupTable.end